Provides document search and content retrieval functionality for Confluence, enabling access to page content, metadata, and search capabilities across Confluence workspaces.
Click on "Install 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 Serversearch for API documentation about user authentication"
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
基于 Model Context Protocol (MCP) 的 Confluence 文档访问服务,提供文档搜索和内容获取功能。
功能特性
文档搜索
支持标题和全文搜索
限制返回结果数量
返回匹配内容片段和文档基本信息
文档内容获取
获取完整的页面内容
包含元数据(标题、空间信息、版本等)
创建和修改信息
页面标签
Related MCP server: McpDocServer
快速开始
环境配置
创建 .env 文件配置 Confluence 访问信息:
安装依赖
运行服务
MCP 接口说明
Tools (工具)
search_confluence
# 搜索 Confluence 内容 Input: - query: str # 搜索关键词 - limit: int = 10 # 返回结果数量限制 Output: { "success": true, "query": "搜索词", "total": 5, "results": [ { "id": "12345", "title": "页面标题", "type": "page", "url": "页面URL", "excerpt": "匹配内容片段" } ] }get_confluence_page
# 获取页面详细信息 Input: - page_id: str # 页面ID Output: { "success": true, "page": { "id": "12345", "title": "页面标题", "space": { "key": "SPACE", "name": "空间名称" }, "version": 1, "content": "页面内容", "url": "页面URL", "created": { "date": "创建时间", "by": "创建者" }, "modified": { "date": "修改时间", "by": "修改者" }, "labels": ["标签1", "标签2"] } }
Resources (资源)
confluence://pages/{page_id}
通过页面ID直接获取页面内容和元数据
返回 JSON 格式数据
confluence://search/{query}
通过关键词直接搜索内容
返回 JSON 格式的搜索结果
错误处理
所有接口在出错时返回统一格式:
使用示例
搜索文档
获取页面内容
使用资源URI