8.6 KiB
Atlassian Jira Cloud MCP Server Configuration
This guide provides detailed instructions for configuring the MCP Atlassian server to connect to Jira Cloud in MCPHub.
Prerequisites
- Jira Cloud Account: You need access to a Jira Cloud instance
- API Token: Generate an API token from your Atlassian account
- Python/UV: The mcp-atlassian server requires Python and
uvx(UV package manager)
Step 1: Generate Jira API Token
- Go to Atlassian Account Settings
- Click "Create API token"
- Give it a label (e.g., "MCPHub Integration")
- Copy the generated token (you won't be able to see it again!)
- Save it securely
Step 2: Get Your Jira Information
You'll need the following information:
- JIRA_URL: Your Jira Cloud URL (e.g.,
https://your-company.atlassian.net) - JIRA_USERNAME: Your Atlassian account email (e.g.,
your.email@company.com) - JIRA_TOKEN: The API token you generated in Step 1
Step 3: Set Environment Variables
Create or update your .env file in the MCPHub root directory:
# Jira Configuration
JIRA_URL=https://your-company.atlassian.net
JIRA_USERNAME=your.email@company.com
JIRA_TOKEN=your_api_token_here
Important Security Note: Never commit your .env file to version control. It should be listed in .gitignore.
Step 4: Configure MCPHub
Option 1: Using Environment Variables (Recommended)
Update your mcp_settings.json:
{
"mcpServers": {
"atlassian": {
"command": "uvx",
"args": [
"mcp-atlassian",
"--jira-url=${JIRA_URL}",
"--jira-username=${JIRA_USERNAME}",
"--jira-token=${JIRA_TOKEN}"
],
"env": {}
}
}
}
Option 2: Direct Configuration (Not Recommended)
If you prefer not to use environment variables (less secure):
{
"mcpServers": {
"atlassian": {
"command": "uvx",
"args": [
"mcp-atlassian",
"--jira-url=https://your-company.atlassian.net",
"--jira-username=your.email@company.com",
"--jira-token=your_api_token_here"
],
"env": {}
}
}
}
Option 3: Jira Only (Without Confluence)
If you only want to use Jira and not Confluence:
{
"mcpServers": {
"jira": {
"command": "uvx",
"args": [
"mcp-atlassian",
"--jira-url=${JIRA_URL}",
"--jira-username=${JIRA_USERNAME}",
"--jira-token=${JIRA_TOKEN}"
],
"env": {}
}
}
}
Option 4: Both Jira and Confluence
To use both Jira and Confluence, you'll need API tokens for both:
# .env file
JIRA_URL=https://your-company.atlassian.net
JIRA_USERNAME=your.email@company.com
JIRA_TOKEN=your_jira_api_token
CONFLUENCE_URL=https://your-company.atlassian.net/wiki
CONFLUENCE_USERNAME=your.email@company.com
CONFLUENCE_TOKEN=your_confluence_api_token
{
"mcpServers": {
"atlassian": {
"command": "uvx",
"args": [
"mcp-atlassian",
"--confluence-url=${CONFLUENCE_URL}",
"--confluence-username=${CONFLUENCE_USERNAME}",
"--confluence-token=${CONFLUENCE_TOKEN}",
"--jira-url=${JIRA_URL}",
"--jira-username=${JIRA_USERNAME}",
"--jira-token=${JIRA_TOKEN}"
],
"env": {}
}
}
}
Note: For Atlassian Cloud, you can often use the same API token for both Jira and Confluence.
Step 5: Install UV (if not already installed)
The mcp-atlassian server uses uvx to run. Install UV if you haven't already:
On macOS/Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
On Windows:
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
Using pip:
pip install uv
Step 6: Start MCPHub
Using Docker:
docker run -p 3000:3000 \
-v ./mcp_settings.json:/app/mcp_settings.json \
-v ./data:/app/data \
-e JIRA_URL="${JIRA_URL}" \
-e JIRA_USERNAME="${JIRA_USERNAME}" \
-e JIRA_TOKEN="${JIRA_TOKEN}" \
samanhappy/mcphub
Using Development Mode:
pnpm install
pnpm dev
Using Production Mode:
pnpm install
pnpm build
pnpm start
Verification
After starting MCPHub:
-
Open
http://localhost:3000in your browser -
Log in with default credentials:
admin/admin123⚠️ SECURITY WARNING: Change the default admin password immediately in production!
To change the password:
- Option 1: Use the dashboard after logging in (Settings → Users → Change Password)
- Option 2: Generate a bcrypt hash and update
mcp_settings.json:node -e "console.log(require('bcrypt').hashSync('your-new-password', 10))"
-
Check the dashboard to see if the Atlassian server is connected
-
Look for the server status - it should show as "Connected" or "Running"
-
Check the logs for any connection errors
Troubleshooting
Error: "uvx command not found"
Solution: Install UV as described in Step 5 above.
Error: "Traceback (most recent call last): File ... mcp-atlassian"
This error usually indicates:
- Missing or incorrect API credentials
- Network connectivity issues
- Python dependency issues
Solutions:
- Verify your API token is correct
- Ensure your Jira URL doesn't have trailing slashes
- Check that your username is the email address you use for Atlassian
- Verify network connectivity to your Jira instance
- Try regenerating your API token
Error: "401 Unauthorized"
Solution:
- Double-check your API token is correct
- Ensure you're using the email address associated with your Atlassian account
- Regenerate your API token if needed
Error: "403 Forbidden"
Solution:
- Check that your account has appropriate permissions in Jira
- Verify your Jira administrator hasn't restricted API access
Error: Downloading cryptography errors
Solution:
- This is usually a transient network or Python package installation issue
- Wait a moment and try restarting MCPHub
- Ensure you have a stable internet connection
- If the issue persists, try installing mcp-atlassian manually:
uvx mcp-atlassian --help
Server shows as "Disconnected"
Solution:
- Check MCPHub logs for specific error messages
- Verify all environment variables are set correctly
- Test the connection manually:
uvx mcp-atlassian \ --jira-url=https://your-company.atlassian.net \ --jira-username=your.email@company.com \ --jira-token=your_token
Using the Jira MCP Server
Once connected, you can use the Jira MCP server to:
- Search Issues: Query Jira issues using JQL
- Read Issues: Get detailed information about specific issues
- Access Projects: List and retrieve project metadata
- View Comments: Read issue comments and discussions
- Get Transitions: Check available status transitions for issues
Access the server through:
- All servers:
http://localhost:3000/mcp - Specific server:
http://localhost:3000/mcp/atlassian - Server groups:
http://localhost:3000/mcp/{group}(if configured)
Additional Resources
- MCP Atlassian GitHub Repository
- Atlassian API Token Documentation
- Jira Cloud REST API
- MCPHub Documentation
Security Best Practices
- ✅ Always use environment variables for sensitive credentials
- ✅ Never commit
.envfiles to version control - ✅ Rotate API tokens regularly
- ✅ Use separate tokens for different environments (dev, staging, prod)
- ✅ Restrict API token permissions to only what's needed
- ✅ Monitor token usage in Atlassian account settings
- ✅ Revoke unused tokens immediately
Example Use Cases
Example 1: Search for Issues
Query: "List all open bugs assigned to me"
- Tool:
jira_search_issues - JQL:
project = MYPROJECT AND status = Open AND assignee = currentUser() AND type = Bug
Example 2: Get Issue Details
Query: "Show me details of issue PROJ-123"
- Tool:
jira_get_issue - Issue Key:
PROJ-123
Example 3: List Projects
Query: "What Jira projects do I have access to?"
- Tool:
jira_list_projects
Need Help?
If you're still experiencing issues:
- Check the MCPHub Discord community
- Review MCPHub GitHub Issues
- Check mcp-atlassian Issues
- Contact your Jira administrator for API access questions