接入你的智能体
發布者自己的指令。不是 PlugMCP 端點。
用我們的金鑰與日誌託管一份副本。
npx -y [email protected]Claude Code 沒有本機指令的安裝連結。複製下方指令並在終端機中執行。
claude mcp add atlassian-confluence-mcp-server -- npx -y atlassian-confluence-mcp-server@2.0.2在終端機中執行。
{ "mcpServers": { "atlassian-confluence-mcp-server": { "command": "npx", "args": [ "-y", "[email protected]" ] } }}claude_desktop_config.json
遠端 URL 還是本機指令? 兩種安裝方式的差異
An open-source Model Context Protocol (MCP) server for Atlassian Confluence that lets AI assistants like Claude and Windsurf read, create, search, and manage Confluence wiki pages. Works with Confluence Cloud, on-premise Server, and Data Center deployments — connect your AI coding agent to your team's knowledge base in seconds via npx.
npx — no install needednpx atlassian-confluence-mcp-server
npm install -g atlassian-confluence-mcp-server
git clone https://github.com/anuragagrawal0430/atlassian-confluence-mcp-server.git
cd atlassian-confluence-mcp-server
npm install
npm run build
All configuration is passed through environment variables. Never hard-code credentials.
Cloud API tokens are generated from your Atlassian account and require both your email and the token:
CONFLUENCE_BASE_URL=https://your-site.atlassian.net
[email protected]
PAT=your-api-token
CONFLUENCE_USERNAME to your Atlassian account emailPAT to the copied API tokenServer and Data Center instances use a Personal Access Token with Bearer authentication. Only the token is needed:
CONFLUENCE_BASE_URL=https://confluence.example.com
PAT=your-personal-access-token
For older Server versions without PAT support, use username/password:
CONFLUENCE_BASE_URL=https://confluence.example.com
CONFLUENCE_USERNAME=your-username
CONFLUENCE_PASSWORD=your-password
The server now uses secure defaults to reduce prompt-injection blast radius and credential leakage risk:
CONFLUENCE_READ_ONLY=true by default
CONFLUENCE_READ_ONLY=false.CONFLUENCE_ENABLE_DESTRUCTIVE_TOOLS=false by default
confluence_delete_page, confluence_delete_space, and confluence_set_page_permissions remain disabled unless explicitly enabled.CONFLUENCE_ENABLED_TOOLS (optional)
CONFLUENCE_ALLOWED_SPACES (optional)
spaceKey / destinationSpaceKey to an approved set.CONFLUENCE_ALLOW_INSECURE_HTTP=false by default
true.CONFLUENCE_MAX_ATTACHMENT_BYTES (optional, default 50 MB)
confluence_upload_attachment will read before calling Confluence.CONFLUENCE_UPLOAD_ALLOWED_DIRS (optional, defaults to empty)
Example (enable safe writes, keep destructive tools disabled):
CONFLUENCE_READ_ONLY=false
CONFLUENCE_ENABLE_DESTRUCTIVE_TOOLS=false
Example (strict allowlist):
CONFLUENCE_ENABLED_TOOLS=confluence_get_page,confluence_search_pages,confluence_get_page_body_chunk
Example (space-level allowlist):
CONFLUENCE_ALLOWED_SPACES=ENG,SECURITY
{
"mcpServers": {
"confluence": {
"command": "npx",
"args": ["-y", "atlassian-confluence-mcp-server"],
"env": {
"CONFLUENCE_BASE_URL": "https://your-site.atlassian.net",
"CONFLUENCE_USERNAME": "[email protected]",
"PAT": "your-api-token"
}
}
}
}
{
"mcpServers": {
"confluence": {
"command": "npx",
"args": ["-y", "atlassian-confluence-mcp-server"],
"env": {
"CONFLUENCE_BASE_URL": "https://confluence.example.com",
"PAT": "your-personal-access-token"
}
}
}
}
{
"mcpServers": {
"confluence": {
"command": "atlassian-confluence-mcp-server",
"env": {
"CONFLUENCE_BASE_URL": "https://confluence.example.com",
"PAT": "your-personal-access-token"
}
}
}
}
{
"mcpServers": {
"confluence": {
"command": "node",
"args": ["./dist/index.js"],
"env": {
"CONFLUENCE_BASE_URL": "https://confluence.example.com",
"PAT": "your-personal-access-token"
}
}
}
}
Note: tool exposure depends on security configuration. With the default CONFLUENCE_READ_ONLY=true, mutating tools are intentionally hidden/blocked.
# Pages in a specific space
type=page AND space=TEAM
# Pages with a label
type=page AND label=documentation
# Recently modified pages
type=page AND lastModified > now("-7d")
# Title search
type=page AND title~"Meeting Notes"
# Pages created by current user
type=page AND creator=currentUser()
Pages use Confluence storage format (XHTML):
<p>This is a paragraph.</p>
<h1>Heading 1</h1>
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
<ac:structured-macro ac:name="code">
<ac:parameter ac:name="language">javascript</ac:parameter>
<ac:plain-text-body><![CDATA[console.log("Hello");]]></ac:plain-text-body>
</ac:structured-macro>
When a page body is very large (for example hundreds of KB), avoid sending the full body through confluence_update_page.
Recommended workflow:
confluence_get_page_body_chunk to inspect the relevant part of the page.confluence_patch_page for exact find/replace edits.confluence_replace_page_range for replacing a specific middle range.confluence_append_to_page for incremental append/prepend updates.Notes:
encodeURIComponent.Please see CONTRIBUTING.md for guidelines on how to contribute to this project.
For security policies and vulnerability reporting, see SECURITY.md.
See CHANGELOG.md for a history of changes.
Model Context Protocol (MCP) server for Atlassian Confluence. Enables AI assistants like Claude and Windsurf to read, create, search, and manage wiki pages on Cloud, on-premise Server, and Data Center
{ "mcpServers": { "atlassian-confluence-mcp-server": { "command": "npx", "args": [ "-y", "[email protected]" ] } }}總覽
Model Context Protocol (MCP) server for Atlassian Confluence. Enables AI assistants like Claude and Windsurf to read, create, search, and manage wiki pages on Cloud, on-premise Server, and Data Center.
工具
尚無工具清單。遠端伺服器會在首次健康檢查後取得工具清單。
常見問題
在本頁複製適用於 Cursor、Claude Desktop、Claude Code 或 VS Code 的 stdio 設定。它使用發布者的安裝方式,而不是 PlugMCP 代理伺服器。
這筆記錄未列出必要的環境變數。
Atlassian Confluence 透過 stdio 在本機執行。
上次檢查時間:2026-11-10。 Model Context Protocol (MCP) server for Atlassian Confluence. Enables AI assistants like Claude and Windsurf to read, create, search, and manage wiki pages on Cloud, on-premise Server, and Data Center.