atlassian-mcp
Atlassian MCP
一个自定义的 Model Context Protocol 服务器,可让 AI 代理与 Atlassian Cloud 上的 Jira 和 Confluence 进行交互。它在后台使用 Jira REST API v3 和 Confluence REST API v2 发起纯 REST 调用。
设置
安装依赖并构建:
npm install npm run build将服务器暴露为全局命令,以便可以从任何工作区启动(使用
package.json中的bin入口):npm link这会将
atlassian-mcp命令加入你的PATH。代码更改后重新运行npm run build;链接的命令始终指向当前的dist。在 https://id.atlassian.com/manage-profile/security/api-tokens 创建 API 令牌。
通过环境变量提供凭据(参见 .env.example):
Variable | 描述 |
| 你的站点,例如 |
| 你的 Atlassian 账户的电子邮件地址 |
| 上面创建的 API 令牌 |
Related MCP server: jira-mcp
连接客户端
VS Code(推荐)
此仓库附带一个标准的 .vscode/mcp.json。它通过登录 + 交互式 zsh(zsh -lic)启动服务器,从而继承你在 ~/.zshrc(或 ~/.zshenv)中导出的 Atlassian 凭据——配置中不包含任何机密——并调用全局链接的 atlassian-mcp 命令,因此无论打开哪个仓库都能正常工作:
{
"servers": {
"atlassian": {
"type": "stdio",
"command": "zsh",
"args": ["-lic", "exec atlassian-mcp"]
}
}
}此处避免使用
${workspaceFolder}:它会解析为当前打开的任何仓库,因此当服务器从其他工作区使用时会被破坏。相反,npm link命令名称是从你的 shellPATH中解析的。
要使服务器在每个工作区中都可用,请将相同的 servers 块添加到你的用户级 MCP 配置中(命令面板 → MCP: Open User Configuration)。
备选方案:使用绝对路径运行 node
如果你不希望 npm link,可以直接使用绝对路径(不是 ${workspaceFolder},它会随工作区变化)将 node 指向构建后的入口文件。VS Code 的 ${userHome} 变量使其在跨机器时保持可移植:
{
"servers": {
"atlassian": {
"type": "stdio",
"command": "zsh",
"args": ["-lic", "exec node \"${userHome}/Sites/atlassian-mcp/dist/index.js\""]
}
}
}如果你将仓库克隆到其他位置,请调整路径。zsh -lic 包装器仍会从你的 shell 配置文件中提供凭据。
在你的 shell 配置文件中导出变量,而不是在配置文件中:
export ATLASSIAN_SITE_URL="https://your-domain.atlassian.net"
export ATLASSIAN_EMAIL="you@example.com"
export ATLASSIAN_API_TOKEN="your-api-token"更改 shell 配置文件后,重新加载 VS Code 窗口,以便新值生效。
其他客户端(Claude Desktop、Cline、Cursor)
不通过你的 shell 运行的客户端可以使用相同的 zsh -lic 包装器,也可以显式设置变量:
{
"mcpServers": {
"atlassian": {
"command": "atlassian-mcp",
"env": {
"ATLASSIAN_SITE_URL": "https://your-domain.atlassian.net",
"ATLASSIAN_EMAIL": "you@example.com",
"ATLASSIAN_API_TOKEN": "your-api-token"
}
}
}
}如果没有 npm link,请使用 node 并携带指向构建入口文件的绝对路径:
{
"mcpServers": {
"atlassian": {
"command": "node",
"args": ["/absolute/path/to/atlassian-mcp/dist/index.js"],
"env": {
"ATLASSIAN_SITE_URL": "https://your-domain.atlassian.net",
"ATLASSIAN_EMAIL": "you@example.com",
"ATLASSIAN_API_TOKEN": "your-api-token"
}
}
}
}对于本地开发,你可以直接用 npm run dev 运行服务器。
工具
Jira
Tool | 描述 |
| 使用 JQL 搜索问题 |
| 按 key/id 获取单个问题 |
| 创建问题 |
| 更新问题上的字段 |
| 向问题添加评论 |
| 列出可用的工作流转换 |
| 将问题移到新状态 |
| 列出/搜索项目 |
| 获取已认证用户(包括 |
Confluence
Tool | 描述 |
| 使用 CQL 搜索内容 |
| 列出空间 |
| 获取页面(含正文) |
| 列出页面(可选按空间) |
| 列出直接子页面 |
| 创建页面(存储格式正文) |
| 更新页面(需要新版本) |
| 删除页面 |
| 列出页面上的页脚评论 |
| 向页面添加页脚评论 |
说明
Jira 富文本字段(描述、评论)接受纯文本,并会自动转换为 Atlassian Document Format (ADF)。
Confluence 页面/评论正文使用存储格式(XHTML),例如
<p>Hi</p>。你的 API 令牌继承你账户的所有权限。请保密,切勿提交。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables AI agents to interact with Jira Cloud, including listing boards and issues, adding comments, and searching users.7362MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with Jira Cloud and Confluence through natural language, performing JQL searches, issue management, and Confluence page creation.141MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to interact with Atlassian Cloud (Jira, Confluence, Bitbucket) through natural language, providing CRUD operations for issues, pages, pull requests, and more.8626MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Atlassian Confluence and Jira for searching, updating, and managing content and issues.MIT
Related MCP Connectors
Connect to Atlassian Jira, Confluence, and Compass to search, create, and manage your work.
Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.
Streamline your Attio workflows using natural language to search, create, update, and organize com…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/callum-smith-mns/atlassian-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server