Confluence MCP Server
Provides tools for reading and analyzing Confluence document content, including extracting and converting text, tables, code blocks, and images, with capabilities to retrieve page content, structure, child pages, and attachments.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Confluence MCP Server get the content of our API documentation page for analysis"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Confluence MCP Server
An MCP Server for reading and analyzing Confluence documentation content. Supports extraction and conversion of text, tables, code blocks, images, and more.
Features
get_confluence_page — Retrieve the full page content (in Markdown format) for Q&A and analysis
get_page_structure — Get an overview of the page structure (table of contents, presence of tables/code/images)
get_child_pages — Get a list of child pages
get_page_attachments — Get a list of attachments
Related MCP server: Confluence MCP Server
Installation
1. Create a virtual environment and install
cd confluence-mcp
python -m venv .venv
# Windows
.venv\Scripts\activate
# Linux/Mac
source .venv/bin/activate
pip install -e .2. Configure environment variables
Copy .env.example to .env and edit it:
cp .env.example .env# Confluence Server 地址(不要尾部斜杠)
CONFLUENCE_BASE_URL=https://confluence.yourcompany.com
# Personal Access Token
# 获取方式: Confluence → 右上角头像 → 设置 → Personal Access Tokens → 创建
CONFLUENCE_PAT=your_token_here
# 内网自签证书时设为 false
CONFLUENCE_VERIFY_SSL=true3. Test run
# 直接运行看是否正常启动
python -m confluence_mcp.server
# 或使用 mcp dev 工具调试
mcp dev confluence_mcp/server.pyIntegration with VS Code / Copilot Chat
Add the following to your VS Code settings.json:
{
"mcp": {
"servers": {
"confluence": {
"command": "python",
"args": ["-m", "confluence_mcp.server"],
"cwd": "C:\\Users\\wang2\\mcp\\confluence-mcp",
"env": {
"CONFLUENCE_BASE_URL": "https://confluence.yourcompany.com",
"CONFLUENCE_PAT": "your_token_here",
"CONFLUENCE_VERIFY_SSL": "true"
}
}
}
}
}You can also omit the env settings in
settings.jsonand let the server read from the.envfile instead.
Integration with Claude Desktop
Add the following to claude_desktop_config.json:
{
"mcpServers": {
"confluence": {
"command": "C:\\Users\\wang2\\mcp\\confluence-mcp\\.venv\\Scripts\\python.exe",
"args": ["-m", "confluence_mcp.server"],
"cwd": "C:\\Users\\wang2\\mcp\\confluence-mcp",
"env": {
"CONFLUENCE_BASE_URL": "https://confluence.yourcompany.com",
"CONFLUENCE_PAT": "your_token_here"
}
}
}
}Usage
Once configured, simply ask in Copilot Chat or Claude:
帮我看一下这个文档的内容:https://confluence.yourcompany.com/display/TEAM/Some+Page
这个文档里关于部署流程是怎么写的?
总结一下这个页面:https://confluence.yourcompany.com/pages/viewpage.action?pageId=12345The LLM will automatically call get_confluence_page to retrieve the content and then answer your questions based on that content.
Regarding Intranet Request Blocking
This tool uses a browser User-Agent and full browser request headers in its HTTP requests to bypass potential non-browser request blocking. If you are still being blocked, you may need to:
Whitelist the request source IP
Or contact IT to confirm if the REST API requires additional configuration
Supported URL Formats
https://confluence.example.com/pages/viewpage.action?pageId=12345https://confluence.example.com/display/SPACE/Page+Titlehttps://confluence.example.com/spaces/SPACE/pages/12345/Page+Titlehttps://confluence.example.com/wiki/spaces/SPACE/pages/12345/...
Available Tools
6 toolsget_child_pagesB
获取 Confluence 页面的子页面列表。 适合浏览文档树结构,找到需要的子页面。
Args: url: Confluence 父页面的完整 URL
Inputs: url (required). Returns: result
get_confluence_pageA
获取 Confluence 页面的完整内容,转换为 Markdown 格式。
支持的 URL 格式:
https://confluence.example.com/pages/viewpage.action?pageId=12345
https://confluence.example.com/spaces/SPACE/pages/12345/Page+Title
返回的 Markdown 保留了文档结构(标题、表格、代码块、列表等)。 拿到内容后,你可以根据内容回答用户的问题,如果内容中找不到答案就回复不知道。
Args: url: Confluence 页面的完整 URL
Inputs: url (required). Returns: result
get_page_attachmentsC
获取 Confluence 页面的附件列表(图片、文档等)。
Args: url: Confluence 页面的完整 URL
Inputs: url (required). Returns: result
get_page_imagesA
Download images from a Confluence page and return them for visual analysis.
The LLM can directly see and describe the image content (diagrams, screenshots, architecture charts, etc.).
Use this when:
The user asks about diagrams or screenshots in the page
You need to understand visual content (flowcharts, architecture, UI)
The text content alone is insufficient to answer the question
Each image is returned along with its filename, alt text, and the heading section it belongs to, so you can correlate images with document structure.
Args: url: Full Confluence page URL max_images: Maximum number of images to download (default 10)
Inputs: url (required), max_images.
get_page_structureA
获取 Confluence 页面的结构概览,包括目录大纲、是否包含表格/代码/图片等信息。 适合在获取完整内容前,先了解页面结构。
Args: url: Confluence 页面的完整 URL
Inputs: url (required). Returns: result
search_in_pageA
在 Confluence 页面中搜索与问题相关的内容片段。
使用 BM25 关键词检索(不依赖 embedding 模型),将文档切分为段落/表格/代码块, 然后找出与问题最相关的片段返回。适合在长文档中精准定位信息。
对于较短的文档(<5000字),建议直接使用 get_confluence_page 获取全文。 对于较长的文档,使用此工具可以更精准地找到相关内容。
Args: url: Confluence 页面的完整 URL question: 用户的问题或搜索关键词 top_k: 返回最相关的片段数量,默认5个
Inputs: url (required), question (required), top_k. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a clearly distinct purpose with no overlap. get_child_pages lists child pages, get_confluence_page fetches full content, get_page_attachments lists attachments, get_page_images downloads images, get_page_structure provides an overview, and search_in_page searches within a page. The descriptions make it easy to differentiate them.
All tool names follow a consistent verb_noun pattern (e.g., get_child_pages, get_confluence_page, get_page_attachments). The naming is uniform across all six tools, using snake_case and starting with a verb that describes the action.
With 6 tools, the server is well-scoped for its purpose of interacting with Confluence pages. Each tool serves a specific function in browsing, retrieving, and analyzing page content, making the count appropriate without being too sparse or overwhelming.
The toolset provides comprehensive coverage for reading and analyzing Confluence pages, including structure, content, attachments, images, and search. A minor gap is the lack of write operations (e.g., create or update pages), but for a read-focused server, the surface is nearly complete.
Related MCP Connectors
Unofficial Confluence MCP — wraps the Confluence Cloud REST API v2 (OAuth)
Convert PDFs, Office docs, websites and audio into AI-ready Markdown, then search and ask your docs.
Converts PDF, scans, DOCX, XLSX and PPTX to Markdown with tables and page-aware RAG chunks.
Convert PDF, Word, Excel and scanned documents to Markdown, tables and RAG chunks. OCR.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables querying and retrieving content from Confluence through CQL searches and page content fetching, allowing Claude to seamlessly access information stored in Confluence workspaces.314MIT
- FlicenseNot gradedqualityDmaintenanceProvides tools for AI agents to interact with Atlassian Confluence, enabling search, space listing, and CRUD operations on pages via natural language.6-
- FlicenseNot gradedqualityCmaintenanceProvides read access to Confluence Server/Data Center pages, sections, tables, and search via the Confluence REST API v1.-
- FlicenseNot gradedqualityDmaintenanceEnables Claude Code to read and search Confluence pages, with support for images and multi-site configurations.1-