Atlassian Confluence MCP Server
An open-source MCP server that lets AI assistants read, create, search, and manage Confluence wiki pages. Supports Cloud, Server, and Data Center deployments with 28 tools.
README
Atlassian Confluence MCP Server
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.
Why atlassian-confluence-mcp-server?
- ✅ Only MCP server supporting Cloud + Server + Data Center in one package
- ✅ 28 tools — most comprehensive Confluence MCP available
- ✅ Zero config via
npx— no install needed - ✅ PAT, Basic Auth, and API token support
- ✅ Actively maintained with provenance-signed releases
Why use this instead of Atlassian's official MCP server?
| Feature | This package | Atlassian Official |
|---|---|---|
| Confluence Cloud | ✅ | ✅ |
| On-premise Server | ✅ | ❌ |
| Data Center | ✅ | ❌ |
| Zero config via npx | ✅ | ❌ |
| 28 tools | ✅ | Limited |
| Open source | ✅ MIT | ✅ |
| Works offline/intranet | ✅ | ❌ |
Features
- Space Management — List and inspect spaces
- Page CRUD — Create, read, update, and delete pages
- Search — Full CQL and text search
- Labels — Add, list, and remove page labels
- Comments — Read and post page comments
- Attachments — List page attachments
- Page Hierarchy — Navigate parent/child relationships
- Version History — Browse and inspect page versions
- Personal Space — Create pages in your personal space
- URL Parsing — Retrieve page content from a Confluence URL
Prerequisites
- Node.js 18+
- A Confluence instance (Cloud or Server/Data Center 7.9+)
- Authentication credentials (PAT or username/password)
Installation
Via npx (no install required)
npx atlassian-confluence-mcp-server
Global install
npm install -g atlassian-confluence-mcp-server
From source
git clone https://github.com/anuragagrawal0430/atlassian-confluence-mcp-server.git
cd atlassian-confluence-mcp-server
npm install
npm run build
Configuration
All configuration is passed through environment variables. Never hard-code credentials.
| Variable | Required | Description |
|---|---|---|
CONFLUENCE_BASE_URL |
Yes | Root URL of your Confluence instance |
PAT |
See below | API token (Cloud) or Personal Access Token (Server/DC) |
CONFLUENCE_USERNAME |
Cloud only | Your Atlassian account email |
CONFLUENCE_PASSWORD |
Alt auth | Password or API token for Basic Auth |
Confluence Cloud
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
CONFLUENCE_USERNAME=you@example.com
PAT=your-api-token
- Go to https://id.atlassian.com/manage-profile/security/api-tokens
- Click Create API token, give it a label, and copy the value
- Set
CONFLUENCE_USERNAMEto your Atlassian account email - Set
PATto the copied API token
Confluence Server / Data Center (7.9+)
Server 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
- Navigate to Profile > Settings > Personal Access Tokens
- Create a token with the required permissions
- Copy the token value
Basic Authentication (fallback)
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
MCP Client Configuration
Cloud (npx)
{
"mcpServers": {
"confluence": {
"command": "npx",
"args": ["-y", "atlassian-confluence-mcp-server"],
"env": {
"CONFLUENCE_BASE_URL": "https://your-site.atlassian.net",
"CONFLUENCE_USERNAME": "you@example.com",
"PAT": "your-api-token"
}
}
}
}
Server / Data Center (npx)
{
"mcpServers": {
"confluence": {
"command": "npx",
"args": ["-y", "atlassian-confluence-mcp-server"],
"env": {
"CONFLUENCE_BASE_URL": "https://confluence.example.com",
"PAT": "your-personal-access-token"
}
}
}
}
Global install
{
"mcpServers": {
"confluence": {
"command": "atlassian-confluence-mcp-server",
"env": {
"CONFLUENCE_BASE_URL": "https://confluence.example.com",
"PAT": "your-personal-access-token"
}
}
}
}
From source
{
"mcpServers": {
"confluence": {
"command": "node",
"args": ["./dist/index.js"],
"env": {
"CONFLUENCE_BASE_URL": "https://confluence.example.com",
"PAT": "your-personal-access-token"
}
}
}
}
Available Tools (28)
Connection
| Tool | Description |
|---|---|
confluence_test_connection |
Test connection to Confluence API |
Spaces
| Tool | Description |
|---|---|
confluence_get_spaces |
List all spaces |
confluence_get_space |
Get space details by key |
confluence_get_space_by_key |
Alias for get_space |
Pages
| Tool | Description |
|---|---|
confluence_get_pages |
List pages, optionally filtered by space |
confluence_get_page |
Get page by ID |
confluence_get_page_by_title |
Get page by title within a space |
confluence_create_page |
Create a new page |
confluence_update_page |
Update an existing page |
confluence_delete_page |
Delete a page |
Search
| Tool | Description |
|---|---|
confluence_search |
Search using CQL |
confluence_search_pages |
Search pages by text |
Labels
| Tool | Description |
|---|---|
confluence_get_page_labels |
Get labels on a page |
confluence_add_page_label |
Add a label to a page |
confluence_delete_page_label |
Remove a label from a page |
Comments
| Tool | Description |
|---|---|
confluence_get_page_comments |
Get comments on a page |
confluence_add_page_comment |
Add a comment to a page |
Attachments
| Tool | Description |
|---|---|
confluence_get_page_attachments |
List attachments on a page |
Page Hierarchy
| Tool | Description |
|---|---|
confluence_get_child_pages |
Get child pages of a parent |
confluence_get_page_ancestors |
Get ancestor pages |
Version History
| Tool | Description |
|---|---|
confluence_get_page_versions |
Get page version history |
confluence_get_page_version |
Get a specific page version |
Properties
| Tool | Description |
|---|---|
confluence_get_page_properties |
Get content properties of a page |
User
| Tool | Description |
|---|---|
confluence_get_current_user |
Get current authenticated user |
Utilities
| Tool | Description |
|---|---|
confluence_get_page_by_url |
Get page from a Confluence URL |
Personal Space
| Tool | Description |
|---|---|
confluence_get_personal_space_key |
Get current user's personal space key |
confluence_create_page_in_personal_space |
Create page in personal space |
confluence_create_private_space |
Create a private space |
Resources
| URI | Description |
|---|---|
confluence://spaces |
List of all Confluence spaces |
Example CQL Queries
# 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()
Page Body Format
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>
Security
- Credentials are read exclusively from environment variables — never hard-coded.
- Input validation — all user-supplied parameters are validated and sanitized before use.
- CQL injection prevention — user input interpolated into CQL queries is escaped.
- URL path encoding — all dynamic path segments are encoded with
encodeURIComponent. - Request timeouts — all HTTP requests have a 30-second timeout to prevent hanging.
- Error sanitization — API error responses are truncated and stripped of HTML before surfacing.
- Pagination limits — query limits are clamped to a safe maximum (100) to prevent abuse.
Contributing
Please see CONTRIBUTING.md for guidelines on how to contribute to this project.
Security Policy
For security policies and vulnerability reporting, see SECURITY.md.
Changelog
See CHANGELOG.md for a history of changes.
License
Acknowledgments
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。