Skip to content

Multi-Account Management

JiraMCP supports multiple Jira/Confluence accounts simultaneously. You can configure accounts through environment variables, MCP configuration, or runtime tools.

Install the same package twice with different names and credentials:

{
"mcpServers": {
"company-jira": {
"command": "npx",
"args": ["-y", "@bodywave/jira-mcp"],
"env": {
"JIRA_URL": "https://company.atlassian.net",
"JIRA_EMAIL": "[email protected]",
"JIRA_API_KEY": "token-1"
}
},
"personal-jira": {
"command": "npx",
"args": ["-y", "@bodywave/jira-mcp"],
"env": {
"JIRA_URL": "https://personal.atlassian.net",
"JIRA_EMAIL": "[email protected]",
"JIRA_API_KEY": "token-2"
}
}
}
}

Add and switch accounts using built-in tools:

"Add my work Jira account at https://work.atlassian.net"
"Switch to my personal Jira account"
"List all configured Jira accounts"
ToolDescription
jira_list_accountsList all configured accounts with active indicator
jira_add_accountAdd a new Jira/Confluence account at runtime
jira_remove_accountRemove a configured account
jira_switch_accountSwitch the active account
jira_test_accountTest connection and verify credentials

The AccountManager class maintains a registry of accounts, each with:

  • A unique ID (derived from the Atlassian domain or user-specified)
  • Separate JiraClient and ConfluenceClient instances
  • In-memory credential storage (never persisted to disk)

When you switch accounts, all subsequent API calls use the new account’s credentials.

  • Credentials are stored in-memory only — never written to disk
  • Each account gets its own isolated client instances
  • Account IDs must be lowercase alphanumeric with hyphens
  • The default account is initialized from environment variables on startup