Skip to main content
This guide covers IDE integration, environment variables, and advanced configuration options.

IDE Integration

Configuration File Locations

Basic Configuration (uvx)

Docker with Environment File

Server/Data Center Configuration

For mTLS, replace the personal token variables with client certificate variables. Use a combined certificate-and-private-key PEM in *_CLIENT_CERT, or use *_CLIENT_CERT and the matching *_CLIENT_KEY for separate files:
JIRA_CLIENT_CERT and CONFLUENCE_CLIENT_CERT can point to combined PEM files. If the private key is separate, set JIRA_CLIENT_KEY or CONFLUENCE_CLIENT_KEY as appropriate. Encrypted private keys aren’t supported by the requests library, so decrypt them before starting MCP Atlassian instead of setting JIRA_CLIENT_KEY_PASSWORD or CONFLUENCE_CLIENT_KEY_PASSWORD.

Single Service Configuration

Environment Variables

Connection Settings

Encrypted private keys are not supported. Setting JIRA_CLIENT_KEY_PASSWORD or CONFLUENCE_CLIENT_KEY_PASSWORD to a non-empty value will raise a configuration error at startup. Decrypt the key first:

Private CA bundle

When REQUESTS_CA_BUNDLE (or, if that is unset, CURL_CA_BUNDLE) is set and SSL verification is on, the Jira and Confluence sessions verify server certificates against that bundle instead of the default CA set. This also covers PAT and OAuth sessions, which ignore other environment-provided requests settings so that .netrc cannot override explicit credentials. Because the bundle replaces the default CAs, it must also contain the public roots if you connect to Atlassian Cloud. The path must be an existing file or directory. If it is not, the Jira or Confluence client refuses to start with CA bundle configuration is invalid; see server logs. and the offending path is logged server-side only. The check runs when the client is created, so check the server logs if the first tool call fails this way. The variables have no effect when JIRA_SSL_VERIFY or CONFLUENCE_SSL_VERIFY is false. For the OAuth proxy paths, which use httpx, also set SSL_CERT_FILE to the same bundle. See HTTP Transport for the HTTPS listener setup (MCP_SSL_CERTFILE / MCP_SSL_KEYFILE), which requires MCP_ATLASSIAN_USE_SYSTEM_TRUSTSTORE=false and usually goes together with a private CA bundle.

Deferred Credentials

Use a *_COMMAND variable instead of storing its token directly. MCP Atlassian runs the command on the first tool call for that service, trims its standard output, and reuses the result for the rest of the process. Startup and tool listing don’t run the command.
The plain token variable takes precedence over its *_COMMAND counterpart. API token commands still require the matching *_USERNAME. Commands run without an implicit shell; invoke one explicitly (for example, sh -c '...') if you need pipes or redirects. Standard input is closed, so a helper can’t read from it — this keeps it from consuming the MCP stdio transport. On Server/Data Center, *_PERSONAL_TOKEN_COMMAND outranks static username/API-token basic auth, matching the precedence a plain *_PERSONAL_TOKEN would have. If the command then fails, the eagerly loaded configuration is used instead, so a locked secret store can’t take down a server that has other working credentials. On Cloud, OAuth still outranks *_API_TOKEN_COMMAND, and the command is never run in that case.
On Windows the command string is passed to CreateProcess unparsed, so use double quotes (op read "op://Vault/Jira PAT/credential") — POSIX single quotes don’t quote there. .bat, .cmd, and PowerShell helpers need an explicit cmd /c or powershell -NoProfile -Command prefix. On POSIX, arguments follow shlex rules.

Filtering Options

Jira Key Validation

Jira tools validate their issue_key / project_key arguments before calling the API. The defaults match the Cloud key format, which cannot be changed. On Server/Data Center the format is an instance setting (jira.projectkey.pattern), so widen these patterns if your instance allows keys the defaults reject — a leading digit, a single character, or lowercase. An invalid regex is ignored (a warning is logged) and the default is kept. Both are read once at startup.

Server Options

See .env.example for all available options.

HTTP Hardening

These safeguards are useful for protecting self-hosted Server/Data Center instances from runaway request loops. Read requests are retried a few times by default; the other safeguards are disabled by default.
Upgrading to v0.24.0: earlier releases also used the Atlassian client library’s built-in retry, which slept for the server’s Retry-After value and retried without a limit. A gateway that sent Retry-After: 0 could cause an endless retry loop. That retry is now turned off, and the ATLASSIAN_RETRY_* settings below are the only retry layer. By default, read requests (GET/HEAD/OPTIONS) that get 429/502/503/504 or a connection error are retried up to 3 times with exponential backoff. When the server sends Retry-After, the wait honors it up to 60 seconds but is never shorter than the backoff (1 s, 2 s, 4 s), so Retry-After: 0 cannot cause a tight loop. Writes are not retried unless ATLASSIAN_RETRY_INCLUDE_WRITES=true. Other errors such as 401 and 403 are never retried. Set ATLASSIAN_RETRY_TOTAL=0 to turn retries off.

Proxy Configuration

MCP Atlassian supports routing API requests through HTTP/HTTPS/SOCKS proxies, with optional PAC/WPAD auto-configuration. Service-specific variables override global ones. PAC/WPAD is opt-in and is only evaluated when no explicit proxy is configured for that service. PAC/WPAD support is provided by the optional wpad extra. Install it with pip install "mcp-atlassian[wpad]" or uv add "mcp-atlassian[wpad]" before enabling the feature. The published Docker image includes this extra.

Custom HTTP Headers

Add custom HTTP headers to all API requests. Useful in corporate environments. Format: Static custom headers use comma-separated key=value pairs. Passthrough headers use comma-separated header names.
Passthrough headers are request-scoped and only apply to HTTP transports. If a passthrough header name conflicts with a static custom header, the incoming request header value is used for that request. Only configure headers that are set by a trusted proxy or gateway. Clients can control any passthrough header they are allowed to send to the MCP endpoint. When external auth uses a client-supplied Jira or Confluence URL, configure MCP_ALLOWED_URL_DOMAINS; dynamic URLs are rejected without this allowlist so trusted session headers cannot be forwarded to an attacker-controlled host. Header-based PAT requests (X-Atlassian-*-Url with a personal token) forward passthrough headers only when the URL host is the configured JIRA_URL / CONFLUENCE_URL host or matches MCP_ALLOWED_URL_DOMAINS; other destinations receive the caller’s token without any passthrough header.
Header values are masked in debug logs for security.

Tool Filtering

Control which tools are available:
Command-line alternative:

Toolset Filtering

Toolsets provide group-level tool control. Instead of listing individual tool names, enable entire groups of related tools at once using the TOOLSETS environment variable.
Command-line alternative:
Core toolsets (included with TOOLSETS=default): jira_issues, jira_fields, jira_comments, jira_transitions, confluence_pages, confluence_comments The opt-in legacy toolset contains deprecated tools retained while users migrate to their replacement tools. Use TOOLSETS=legacy to expose only those tools, or combine it with another selection such as TOOLSETS=default,legacy. It is not included in TOOLSETS=default. When both TOOLSETS and ENABLED_TOOLS are set, they intersect — a tool must pass both filters. If TOOLSETS is not set, all toolsets are currently enabled.
In v0.22.0, the default will change from all toolsets to 6 core toolsets only. Set TOOLSETS=all explicitly to preserve current behavior.
Unknown toolset names are silently ignored. If all names are unknown, no tools are enabled (fail-closed behavior to prevent accidental exposure).
See Toolset Groups for the full list of available toolsets.