Authenticate with a service account
Use a service account when an automated workflow, such as a CI/CD pipeline or a scheduled job, needs to call the Atlassian Rovo MCP server without a person signing in. A service account can authenticate in one of two ways:
OAuth 2.0 client credentials (recommended): your workflow exchanges a client ID and secret for a short-lived access token. This doesn't require API token authentication to be turned on for your organization.
API key: your workflow sends a long-lived API key. This requires your organization admin to turn on API token authentication. See Configure authentication via API token.
Both options use the endpoint https://mcp.atlassian.com/v2/mcp.
Before you begin
You need to be an organization admin to create a service account and its credentials.
Authenticate with OAuth 2.0 client credentials
Step 1. Create a service account and give it access
In Atlassian Administration, go to Directory > Service accounts, then select Create a service account.
Give it a name and a description.
Add only the app roles it needs, for example Jira: User on the site your workflow uses.
The service account can only reach the sites and apps you give it a role on.
Step 2. Create an OAuth 2.0 credential
Open the service account and go to Credentials > Create credentials.
Select OAuth 2.0, then Client secret.
Select scopes. Filter the app types to Rovo MCP to see the MCP scopes. Select:
the product scopes your workflow needs, for example
read:jira:agent-interfaceandsearch:jira:agent-interfaceread:meread:account
Review the scopes and create the credential.
Copy the client ID and client secret. The secret is shown only once. Store it in a secrets manager or your CI/CD secret store.
You can't change the scopes after you create the credential. To change them, create a new credential and revoke the old one.
Step 3. Get an access token
curl -s -X POST https://auth.atlassian.com/oauth/token \
-H "Content-Type: application/x-www-form-urlencoded" \
-d grant_type=client_credentials \
-d client_id=$CLIENT_ID \
-d client_secret=$CLIENT_SECRETThe response contains access_token and expires_in. Request a new token before it expires.
Step 4. Configure your MCP client
{
"mcpServers": {
"atlassian": {
"url": "https://mcp.atlassian.com/v2/mcp",
"headers": { "Authorization": "Bearer <access_token>" }
}
}
}Limitations
v2 only: client credentials don't work with the v1 endpoint.
Granted sites only: requests for any other site are rejected.
Scopes limit the tools: the tool list includes only tools the credential's scopes allow.
No domain allowlist check: there is no redirect URI, so domain allowlists don't apply. Your IP allowlist and MCP toolset settings still apply.
Was this helpful?