Confluence MCP
The Confluence MCP server enables AI assistants to interact with Confluence content programmatically through a standardized interface. With this server, you can:
Authenticate to Confluence using a personal API token
Retrieve specific pages by ID and search using CQL (Confluence Query Language)
List all available spaces
Create new pages (including child pages) and update existing content
Retrieve and add comments, including threaded replies
Retrieve and add attachments using base64 encoded content
Clean and transform Confluence content for AI consumption
Benefit from built-in API communication, error handling, and data transformation
Protection through basic rate limiting to prevent API abuse
Enables retrieving, searching, creating, and updating Confluence pages and spaces, as well as handling content transformation for AI consumption.
Referenced as a separate MCP server available from another repository, indicating integration capabilities with Jira.
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 MCPsearch for pages about API documentation in the DEV space"
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
A Model Context Protocol (MCP) server for Confluence, enabling AI assistants to interact with Confluence content through a standardized interface.
ℹ️ There is a separate MCP server for Jira
Features
Authenticate to Confluence using a personal API token
Retrieve and search Confluence pages and spaces
Create and update Confluence content
Retrieve and add comments to pages
Retrieve and add attachments to pages
Clean and transform Confluence content for AI consumption
Handle API communication, error handling, and data transformation
Basic rate limiting to prevent API abuse
Related MCP server: Confluence MCP Server
Prerequisites
Bun (v1.0.0 or higher)
Confluence account with API access
Installation
# Clone the repository
git clone https://github.com/cosmix/confluence-mcp.git
cd confluence-mcp
# Install dependencies
bun install
# Build the project
bun run buildConfiguration
To use this MCP server, you need to set the following environment variables:
CONFLUENCE_API_TOKEN=your_api_token
CONFLUENCE_BASE_URL=your_confluence_instance_url # e.g., https://your-domain.atlassian.net/wiki
CONFLUENCE_USER_EMAIL=your_emailClaude Desktop / Cline Configuration
Add this configuration to your settings file:
{
"mcpServers": {
"confluence": {
"command": "bun",
"args": ["/absolute/path/to/confluence-mcp/dist/index.js"],
"env": {
"CONFLUENCE_API_TOKEN": "your_api_token",
"CONFLUENCE_BASE_URL": "your_confluence_instance_url/wiki",
"CONFLUENCE_USER_EMAIL": "your_email"
}
}
}
}Development
# Run in development mode
bun run dev
# Run tests
bun testAvailable Tools
The Confluence MCP server exposes the following tools:
get_page
Retrieve a Confluence page by ID. Format refers to the return format of the content and can be text or markdown. The includeMarkup parameter allows retrieving the original Confluence Storage Format (XHTML) markup, which is useful for updating pages while preserving formatting.
{
"pageId": "123456",
"format": "text",
"includeMarkup": true
}search_pages
Search for Confluence pages using CQL (Confluence Query Language). Format refers to the return format of the content and can be text or markdown. The includeMarkup parameter allows retrieving the original Confluence Storage Format (XHTML) markup for each page.
{
"query": "space = DEV and label = documentation",
"limit": 10,
"format": "text",
"includeMarkup": true
}get_spaces
List all available Confluence spaces.
{
"limit": 50
}create_page
Create a new Confluence page. The parentId is optional and can be used to create a child page under an existing page.
{
"spaceKey": "DEV",
"title": "New Page Title",
"content": "<p>Page content in Confluence Storage Format (XHTML)</p>",
"parentId": "123456"
}update_page
Update an existing Confluence page.
{
"pageId": "123456",
"title": "Updated Page Title",
"content": "<p>Updated content in Confluence Storage Format (XHTML)</p>",
"version": 1
}get_comments
Retrieve comments for a specific Confluence page. Format refers to the return format of the content and can be text or markdown.
{
"pageId": "123456",
"limit": 25,
"format": "text"
}add_comment
Add a comment to a Confluence page. The parentId is optional for creating threaded replies.
{
"pageId": "123456",
"content": "<p>This is a new comment.</p>",
"parentId": "789012"
}get_attachments
Retrieve attachments for a specific Confluence page.
{
"pageId": "123456",
"limit": 25
}add_attachment
Add an attachment to a Confluence page. The fileContentBase64 should be the base64 encoded string of the file content.
{
"pageId": "123456",
"filename": "document.pdf",
"fileContentBase64": "JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFI+P...",
"comment": "Uploaded new version of the document"
}LICENCE
This project is licensed under the MIT License - see the LICENCE file for details.
Available Tools
9 toolsadd_attachmentC
Add an attachment to a Confluence page
Inputs: pageId (required), filename (required), fileContentBase64 (required), comment.
add_commentB
Add a comment to a Confluence page
Inputs: pageId (required), content (required), parentId.
create_pageC
Create a new Confluence page
Inputs: title (required), content (required), spaceKey (required), parentId.
get_attachmentsB
Retrieve attachments for a specific Confluence page
Inputs: pageId (required), limit.
get_commentsA
Retrieve comments for a specific Confluence page
Inputs: pageId (required), limit, format.
get_pageB
Retrieve a Confluence page by ID
Inputs: pageId (required), format, includeMarkup.
get_spacesC
List all available Confluence spaces
Inputs: limit.
search_pagesA
Search for Confluence pages using CQL (Confluence Query Language): query := expression [operator expression]* expression := field | function() | function | "phrase" | term operator := AND | OR | NOT | space field := date | after | before | during | lastmodified | modifiedafter | modifiedbefore | creator | from | to | content | title | body | subject | filename function() := now() | today() | yesterday() | this_week() | last_week() | this_month() | last_month() | this_year() | last_year() function := has | is | is | is | label | type | in value := string | quoted_string | date_format date_format := YYYY-MM-DD | YYYY-MM | YYYY quoted_string := "string with spaces" term := alphanumeric_string
Inputs: query (required), limit, format, includeMarkup.
update_pageB
Update an existing Confluence page
Inputs: title (required), pageId (required), content (required), version (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
TDQS
Scored across 9 tools
Each tool targets a distinct resource (page, comment, attachment, space) and action (create, get, update, list, search, add), with no overlap in purpose.
All tools follow a consistent verb_noun pattern in snake_case, such as create_page, get_spaces, search_pages, making them predictable.
9 tools is well-scoped for a Confluence integration, covering essential operations without being overwhelming or sparse.
The tool set covers most core workflows for pages, attachments, comments, and search, but lacks deletion operations (e.g., delete_page) and update/delete for comments and attachments.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
The Cortex MCP server provides read-only access to real-time engineering context from the Cortex developer portal, allowing AI coding assistants to answer natural language questions about your organization's catalog (microservices, libraries, domains, teams, infrastructure), scorecards (engineering standards and best practices), initiatives (goals and deadlines), and Engineering Intelligence metrics. It includes tools for querying documentation, tracking personal entities, and accessing AI-assisted insights across the entire Cortex ecosystem.
Related MCP Servers
- AlicenseAqualityDmaintenanceA Model Context Protocol server that enables AI assistants like Claude to access and search Atlassian Confluence content, allowing integration with your organization's knowledge base.57,951 npm62ISC
- AlicenseBqualityDmaintenanceA Model Context Protocol server that provides secure access to Atlassian Confluence, allowing users to search, create, update, and manage Confluence pages and spaces through natural language commands.108 npm3MIT
- AlicenseNot gradedqualityDmaintenanceModel Context Protocol server that integrates with Atlassian Confluence and Jira, enabling AI assistants to search, create, and update content in these platforms through natural language interactions.1MIT
- -licenseNot gradedqualityNot gradedmaintenanceA Model Context Protocol server that enables interaction with Atlassian products (Confluence and Jira), supporting both Cloud and Server/Data Center deployments for searching, creating, and managing content through natural language.-