While setting up the MCP server for Atlassian Bitbucket using the guide at aashari/mcp-server-atlassian-bitbucket, I encountered this error:
Missing Atlassian credentials. Please set either ATLASSIAN_SITE_NAME, ATLASSIAN_USER_EMAIL, and ATLASSIAN_API_TOKEN environment variables, or ATLASSIAN_BITBUCKET_USERNAME and ATLASSIAN_BITBUCKET_APP_PASSWORD for Bitbucket-specific auth.
The Issue
The error occurred because the configuration used the incorrect key environments instead of env. The original configuration was:
{
"mcpServers": {
"aashari/mcp-server-atlassian-bitbucket": {
"command": "npx",
"args": ["-y", "@aashari/mcp-server-atlassian-bitbucket"],
"environments": {
"ATLASSIAN_SITE_NAME": "bitbucket",
"ATLASSIAN_USER_EMAIL": "",
"ATLASSIAN_API_TOKEN": ""
}
}
}
}
The system only accepts env for environment variables.
The Fix
I updated the Claude configuration by changing environments to env:
{
"mcpServers": {
"aashari/mcp-server-atlassian-bitbucket": {
"command": "npx",
"args": ["-y", "@aashari/mcp-server-atlassian-bitbucket"],
"env": {
"ATLASSIAN_SITE_NAME": "bitbucket",
"ATLASSIAN_USER_EMAIL": "",
"ATLASSIAN_API_TOKEN": ""
}
}
}
}
After this change and ensuring the variables ATLASSIAN_SITE_NAME, ATLASSIAN_USER_EMAIL, and ATLASSIAN_API_TOKEN were correctly set, the error was resolved.
Takeaway
Always verify the configuration syntax and use the correct env key for environment variables to avoid authentication issues during MCP Bitbucket setup.