Confluence MCP Server

Confluence MCP server for Cloud/Server/Data Center search/read/create/update

Local serverstdio

What is the Confluence MCP server?

Confluence MCP server for Cloud/Server/Data Center search/read/create/update. That is what the confluence mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

The short version

一个面向 Confluence Cloud / Server / Data Center 的 MCP 服务,提供页面搜索、CQL 查询、读取、创建、更新、附件上传和用户身份查询能力。

The tools it exposes

The server publishes 14 tools. What each one is for:

  • confluence_search_pages — 按关键词搜索页面
  • confluence_execute_cql_search — 执行原生 CQL 查询
  • confluence_get_page — 按页面 ID 获取内容(storage 格式)
  • confluence_get_page_outline — 获取页面标题目录,适合低 token 导航
  • confluence_get_page_section — 按标题读取单个 section,避免把整页正文返回给模型
  • confluence_get_page_anchor_block — 按 Anchor 起止边界读取块内容
  • confluence_create_page — 创建页面(支持可选 parentId)
  • confluence_update_page — 更新页面内容并自动递增版本
  • confluence_update_page_section — 按标题更新单个 section,由 MCP 服务端完成整页替换与提交
  • confluence_preview_page_section_update — 预览按标题更新的命中范围,返回旧内容和确认 hash
  • confluence_update_page_section_confirmed — 带 hash 确认提交按标题更新,避免 preview 后内容已变化
  • confluence_add_anchor_block_to_section — 给一个标题 section 自动加上起止 Anchor,便于后续稳定更新

Getting it running

Installation goes through your MCP client rather than a global install: point it at npm on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

What it needs from you

Configuration is passed through the environment: CONF_MODE, CONF_BASE_URL, CONF_USERNAME, CONF_TOKEN, CONF_DEFAULT_SPACE. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

How it compares

Plenty of file and storage access servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Confluence's toolset — confluence_search_pages, confluence_execute_cql_search, confluence_get_page and 11 more — is a fair guide to whether it matches your workflow. It is maintained by qihaze; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Confluence.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
confluence_search_pages按关键词搜索页面
confluence_execute_cql_search执行原生 CQL 查询
confluence_get_page按页面 ID 获取内容(storage 格式)
confluence_get_page_outline获取页面标题目录,适合低 token 导航
confluence_get_page_section按标题读取单个 section,避免把整页正文返回给模型
confluence_get_page_anchor_block按 Anchor 起止边界读取块内容
confluence_create_page创建页面(支持可选 parentId)
confluence_update_page更新页面内容并自动递增版本
confluence_update_page_section按标题更新单个 section,由 MCP 服务端完成整页替换与提交
confluence_preview_page_section_update预览按标题更新的命中范围,返回旧内容和确认 hash
confluence_update_page_section_confirmed带 hash 确认提交按标题更新,避免 preview 后内容已变化
confluence_add_anchor_block_to_section给一个标题 section 自动加上起止 Anchor,便于后续稳定更新
confluence_preview_page_anchor_block_update预览按 Anchor 范围更新的命中块,返回旧内容和确认 hash
confluence_update_page_anchor_block_confirmed带 hash 确认提交 Anchor 范围更新

How to install the Confluence MCP server

也可以不在客户端配置里写连接信息,先只启动 MCP 服务:

```json
{
  "mcpServers": {
    "confluence": {
      "command": "npx",
      "args": ["-y", "confluence-mcp-server"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
CONF_MODEConfiguration value read at startup.Optional
CONF_BASE_URLEndpoint or connection string the server talks to.Yes
CONF_USERNAMEConfiguration value read at startup.Optional
CONF_TOKENCredential the server authenticates with.Yes
CONF_DEFAULT_SPACEConfiguration value read at startup.Optional

Example prompts to try

  • Use Confluence to confluence search pages.
  • Use Confluence to confluence execute cql search.
  • Use Confluence to confluence get page.

Frequently asked questions

It connects Confluence to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (confluence_search_pages, confluence_execute_cql_search, confluence_get_page, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Confluence directly.