atlassian-browser-mcp
MCP server that enables accessing Jira and Confluence using browser cookies captured via a Chrome extension, avoiding the need for API tokens or browser automation. It wraps the mcp-atlassian toolset and works with Atlassian Cloud and Server/Data Center behind SSO.
README
<p align="center"> <img src="docs/images/banner.svg" alt="atlassian-browser-mcp banner" width="900"/> </p>
atlassian-browser-mcp
MCP server that wraps the upstream mcp-atlassian toolset with browser-cookie authentication. Cookies are captured from your real Chrome by a bundled Chrome extension — no Playwright, no browser automation. Works for Atlassian Cloud (*.atlassian.net) and Server/Data Center behind corporate SSO (Okta, SAML, etc.) where API tokens are not available.
How it works
Capturing cookies and serving data are separate, and there is no browser automation anywhere — this is what keeps the MCP server from hanging:
- Capture cookies with the Chrome extension. Load
chrome-extension/unpacked. After a one-timeatlassian-cli install-host, open a Jira/Confluence tab and click Sync cookies — cookies for the current tab’s domain go to a local Native Messaging host that writes per-service jars. - The MCP server serves data only. It reads the saved cookies via a custom
requests.Sessionsubclass and never opens a browser. On a missing/expired session it fails fast with anAuthRequiredErrortelling you to re-sync — it does not block.
⚠️ Earlier versions launched a Playwright login browser from inside the server. Because the server is detached and async, that blocked tool calls for minutes (often forever) and could deadlock Playwright's sync API on the event loop. Moving capture to the extension removes that failure mode — and removes the need to read Chrome's on-disk cookie DB, which Chrome 127+ "app-bound" encryption blocks.
The server monkey-patches JiraClient and ConfluenceClient constructors in mcp-atlassian to inject the browser-cookie session, giving full parity with the upstream tool surface.
Files
| File | Purpose |
|---|---|
atlassian_browser_mcp_full.py |
MCP entrypoint. Patches upstream clients, registers atlassian_login tool, runs the MCP server |
atlassian_browser_auth.py |
Shared auth core: BrowserCookieSession, saved-jar loading, write_storage_state/probe_live, SSO detection. Never opens a browser |
atlassian_cli.py + atlassian-cli |
Command-line front-end (install-host, import, Jira/Confluence get/search). See AGENT_USAGE.md |
atlassian_cookie_import.py |
Shared cookie → jar import + liveness probe (CLI and native host) |
atlassian_native_host.py + atlassian-native-host |
Chrome Native Messaging host for one-click Sync |
chrome-extension/ |
Manifest V3 extension: Sync current-tab cookies via native host — see chrome-extension/README.md |
run-atlassian-browser-mcp.sh |
MCP launcher: creates venv, installs deps via uv, runs compatibility check, starts server |
pyproject.toml |
Dependency pins |
Reusing your real Chrome session (the Chrome extension)
Modern Chrome (127+) encrypts cookies with an app-bound key that can't be read off disk, so the reliable way to reuse your Chrome SSO session is the bundled extension — it reads cookies from Chrome's live cookie store, no password or MFA re-prompt:
export JIRA_URL=… CONFLUENCE_URL=…then./atlassian-cli install-host(registers the native host; freezes URLs for Chrome-launched processes).chrome://extensions→ enable Developer mode → Load unpacked → selectchrome-extension/→ reload after install-host.- Open a Jira/Confluence tab, click the extension → Sync cookies.
Cookie jars are never auto-deleted on an auth failure. Jira and Confluence
keep separate jars; on Atlassian Cloud they share one host, so a single sync
covers both. See chrome-extension/README.md for
details and the managed-Chrome caveat.
CLI usage
export JIRA_URL="https://yourco.atlassian.net"
export CONFLUENCE_URL="https://yourco.atlassian.net" # Cloud: same host
./atlassian-cli install-host # once per machine
# then: open Jira/Confluence tab → extension → Sync cookies
./atlassian-cli jira get PROJ-123 --comments
./atlassian-cli jira search 'project = PROJ AND status = "In Progress"'
./atlassian-cli confluence get 123456789 --markdown -o page.md
./atlassian-cli confluence search 'release process' --space DEV
Usage
./run-atlassian-browser-mcp.sh
MCP server configuration
Add to your Claude Code, Cursor, or other MCP client configuration:
{
"mcpServers": {
"atlassian": {
"command": "/path/to/atlassian-browser-mcp/run-atlassian-browser-mcp.sh",
"env": {
"JIRA_URL": "https://yourco.atlassian.net",
"CONFLUENCE_URL": "https://yourco.atlassian.net"
}
}
}
}
The server never opens a browser. Capture cookies once with the extension Sync
(or import); all MCP tool calls then proceed using the saved session, and a
missing/expired session fails fast with a clear re-sync message.
Environment variables
| Variable | Default | Description |
|---|---|---|
JIRA_URL |
(required) | Jira base URL (e.g. https://yourco.atlassian.net) |
CONFLUENCE_URL |
(required) | Confluence base URL (e.g. https://yourco.atlassian.net). For Cloud (*.atlassian.net) the /wiki context path is appended automatically |
ATLASSIAN_BROWSER_AUTH_ENABLED |
true |
Enable browser-cookie auth (set false to fall back to token auth) |
ATLASSIAN_STORAGE_STATE |
./.atlassian-browser-state-{service}.json |
Cookie-jar file. Per-service by default; an explicit value is still namespaced per service |
ATLASSIAN_SSO_MARKERS |
(auto) | Comma-separated URL/text markers for SSO redirect detection. Defaults cover Okta, ADFS, Azure AD, PingOne, Google SAML |
ATLASSIAN_BROWSER_USER_AGENT |
(Chrome 136) | Custom User-Agent string for API requests and liveness probes |
TOOLSETS |
all |
Which upstream toolsets to enable |
Requirements
- Python 3.11+
- uv (for dependency management)
- Google Chrome (or another Chromium-family browser) to run the extension and capture the session
- Network access to your Atlassian instance
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
Tools return AuthRequiredError / "not authenticated" |
No saved session (jar missing or expired) | Extension Sync (after install-host), or atlassian-cli import <file> |
import reports HTTP 401/302 (not live) |
Exported cookies are already expired | Sign into Jira/Confluence in Chrome, re-Export, and import again |
No cookies match your hosts on import |
JIRA_URL/CONFLUENCE_URL don't match the exported cookies' domain |
Fix the env vars to point at the same instance you exported from |
| "Load unpacked" is greyed out | Managed/corporate Chrome blocks unpacked extensions | Ask IT to allowlist the extension, or pack & self-host it (see chrome-extension/README.md) |
| "Upstream compatibility check failed" | mcp-atlassian version changed its internal API |
Pin to a compatible version or update the wrapper |
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。