confluence-adf-mcp
An MCP server for reading and writing Confluence pages in native Atlassian Document Format (ADF), enabling precise edits at the document node level without loss of formatting.
README
confluence-adf-mcp
MCP server for reading and writing Confluence pages in native ADF (Atlassian Document Format).
Why this exists
Confluence stores pages in ADF (Atlassian Document Format), a structured JSON format. Most tools convert to/from HTML or plain text, losing structure, formatting, and metadata in the process. This MCP server works with ADF directly, so edits are precise — find/replace, table updates, and mention swaps happen at the document node level without corrupting the surrounding content.
Setup
Requirements
- Python 3.12+
- A Confluence Cloud instance with API access
Environment variables
export CONFLUENCE_URL="https://your-domain.atlassian.net/wiki"
export CONFLUENCE_USERNAME="you@example.com"
export CONFLUENCE_API_TOKEN="your-api-token"
Generate an API token at https://id.atlassian.com/manage-profile/security/api-tokens.
OAuth 2.0 (optional)
Instead of basic auth, you can use OAuth 2.0 (3LO). Set these three environment variables:
export CONFLUENCE_OAUTH_CLIENT_ID="your-oauth-client-id"
export CONFLUENCE_OAUTH_CLIENT_SECRET="your-oauth-client-secret"
export CONFLUENCE_OAUTH_REFRESH_TOKEN="your-initial-refresh-token"
If all three are set, the server uses OAuth automatically; otherwise it falls back to basic auth (CONFLUENCE_USERNAME / CONFLUENCE_API_TOKEN).
Rotating refresh tokens are persisted to .cache/confluence/.oauth_tokens.json so the server can restart without re-authorizing.
See Atlassian OAuth 2.0 (3LO) documentation for how to create an OAuth app and obtain the initial refresh token.
Claude Code configuration
Copy .env.example to .env and fill in your credentials. The server loads .env automatically.
Add to .claude/settings.json:
{
"mcpServers": {
"confluence-adf": {
"command": "uvx",
"args": ["--from", "git+https://github.com/karbassi/confluence-adf-mcp", "confluence-adf-mcp"]
}
}
}
Tools
Pages
| Tool | Description |
|---|---|
confluence_get_page |
Fetch a page and cache it locally |
confluence_create_page |
Create a new page with ADF content |
confluence_push_page |
Push cached page edits to Confluence |
confluence_extract_text |
Extract plain text from a page |
confluence_copy_page |
Duplicate a page |
confluence_archive_page |
Archive a page (with confirmation) |
confluence_move_page |
Move a page to a new parent (with confirmation) |
confluence_revert_page |
Revert a page to a previous version |
Editing
| Tool | Description |
|---|---|
confluence_edit_page |
Find/replace text in cached page |
confluence_find_replace |
Fetch, find/replace, and push in one step |
confluence_regex_replace |
Regex find/replace on a page |
confluence_replace_mention |
Swap @mentions between users |
confluence_add_link |
Add a hyperlink to a page |
Tables
| Tool | Description |
|---|---|
confluence_update_table_cell |
Update a single table cell |
confluence_insert_table_row |
Insert a row into a table |
confluence_delete_table_row |
Delete a row from a table |
Tasks
| Tool | Description |
|---|---|
confluence_update_task |
Toggle task checkbox state (DONE/TODO) |
Discovery
| Tool | Description |
|---|---|
confluence_search_pages |
Search pages with CQL |
confluence_list_pages |
List pages in a space |
confluence_get_child_pages |
Get child pages |
confluence_get_ancestors |
Get parent chain |
confluence_list_spaces |
List spaces |
confluence_get_contributors |
Get unique page contributors |
confluence_get_user |
Resolve account ID to display name |
Labels
| Tool | Description |
|---|---|
confluence_get_labels |
Get labels on a page |
confluence_add_labels |
Add labels to a page |
confluence_remove_label |
Remove a label from a page |
Versions
| Tool | Description |
|---|---|
confluence_list_versions |
List version history |
confluence_compare_versions |
Diff two versions as text |
Comments
| Tool | Description |
|---|---|
confluence_add_comment |
Add a footer comment |
confluence_list_comments |
List footer comments |
confluence_add_inline_comment |
Add an inline annotation comment |
confluence_list_inline_comments |
List inline comments |
Attachments
| Tool | Description |
|---|---|
confluence_list_attachments |
List attachments on a page |
confluence_upload_attachment |
Upload a file as an attachment |
confluence_download_attachment |
Download an attachment to a local file |
confluence_delete_attachment |
Delete an attachment (with confirmation) |
Properties
| Tool | Description |
|---|---|
confluence_get_page_properties |
Get content properties |
confluence_set_page_property |
Set a content property |
Access Control
| Tool | Description |
|---|---|
confluence_set_restrictions |
Set read/update restrictions |
confluence_watch_page |
Watch or unwatch a page |
Cache
| Tool | Description |
|---|---|
confluence_list_cache |
List locally cached pages |
confluence_clear_cache |
Clear page cache |
Contributing
See CONTRIBUTING.md.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
mcp-server-qdrant
这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器