confluence-mcp
Provides tools for interacting with Confluence, enabling page lookup, CQL search, page creation/update, comments, and space discovery.
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 search for pages about API authentication in the DevOps 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 local MCP server for Confluence (Data Center/Server compatible) with token-based auth.
This server exposes a compact set of tools for page lookup, CQL search, page creation/updates, comments, and space discovery.
What this server provides
confluence_get_page— get a page by ID, or by spaceKey + titleconfluence_search— search content with CQLconfluence_create_page— create a pageconfluence_update_page— update a page's title/body (auto-increments version)confluence_add_comment— add a comment to a pageconfluence_list_spaces— list spaces (useful to discover space keys)
Related MCP server: inhouse_confluence_mcp
Requirements
Node.js
>=20Confluence account with API access
Space/page permissions matching your actions (create, update, comment, etc.)
Configuration
Set environment variables (for example in .env):
# Required
CONFLUENCE_BASE_URL=https://your-confluence-host
# Optional (defaults shown)
CONFLUENCE_AUTH_TYPE=bearer
CONFLUENCE_DEFAULT_SPACE_KEY=
# For bearer auth (Data Center/Server personal access token)
CONFLUENCE_PAT=
# For basic auth (Confluence Cloud email + API token)
CONFLUENCE_EMAIL=
CONFLUENCE_API_TOKEN=Auth modes
CONFLUENCE_AUTH_TYPE=bearer(default)Requires
CONFLUENCE_PAT(Data Center/Server personal access token)
CONFLUENCE_AUTH_TYPE=basicRequires
CONFLUENCE_EMAIL+CONFLUENCE_API_TOKEN
Page and comment bodies use Confluence storage format (XHTML-based), for example <p>Hello world</p>.
Install and run
npm install
npm run build
npm startDevelopment mode:
npm run devSmoke test:
npm run test:confluenceMCP client config example
{
"mcpServers": {
"confluence": {
"command": "node",
"args": ["/absolute/path/to/confluence-mcp/dist/index.js"],
"env": {
"CONFLUENCE_BASE_URL": "https://confluence.your-company.local",
"CONFLUENCE_AUTH_TYPE": "bearer",
"CONFLUENCE_PAT": "your-personal-access-token",
"CONFLUENCE_DEFAULT_SPACE_KEY": "YOUR_SPACE_KEY"
}
}
}
}Tool inputs
confluence_get_page
By ID:
{ "pageId": "123456" }By space + title:
{ "spaceKey": "YOUR_SPACE_KEY", "title": "Sprint Planning Notes" }confluence_search
Input:
{
"cql": "space = YOUR_SPACE_KEY AND type = page ORDER BY lastmodified DESC",
"start": 0,
"limit": 20
}confluence_create_page
Required fields:
titlebody(storage format)
Optional fields:
spaceKey(falls back toCONFLUENCE_DEFAULT_SPACE_KEY)parentId(create as a child page)
Example input:
{
"title": "[MCP] Example page",
"body": "<p>Created from confluence-mcp</p>",
"parentId": "123456"
}confluence_update_page
Provide at least one of title or body. The current version is fetched automatically and incremented.
{
"pageId": "123456",
"body": "<p>Updated content</p>"
}confluence_add_comment
Input:
{
"pageId": "123456",
"comment": "<p>Investigation started</p>"
}confluence_list_spaces
Input:
{ "limit": 25 }Troubleshooting
Update fails with version conflict (409)
Another edit happened concurrently. Re-fetch the page (
confluence_get_page) and retry.
Create page fails with space permission errors (403)
These are Confluence permission-scheme restrictions for your user/token, not MCP runtime errors.
CQL search returns no results
Confirm the space key casing and that
type = page(ortype = comment, etc.) matches what you expect.
Available Tools
6 toolsconfluence_add_commentC
Add a comment to a Confluence page.
Inputs: pageId (required), comment (required).
confluence_create_pageC
Create a Confluence page.
Inputs: body (required), title (required), parentId, spaceKey.
confluence_get_pageA
Get a Confluence page by ID, or by spaceKey + title.
Inputs: title, pageId, spaceKey.
confluence_list_spacesA
List Confluence spaces (useful to discover valid space keys).
Inputs: limit, start.
confluence_searchC
Search Confluence content with CQL.
Inputs: cql (required), limit, start.
confluence_update_pageA
Update a Confluence page's title and/or body. Automatically increments the page version.
Inputs: pageId (required), body, title.
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 clear, distinct purpose: retrieving, searching, creating, updating, commenting, and listing spaces. There is no overlap or ambiguity between them.
Most tools follow the verb_noun pattern (get_page, create_page, update_page, add_comment, list_spaces), but 'search' lacks a noun complement, creating a minor inconsistency.
With 6 tools, the server is well-scoped for Confluence operations without being bloated or sparse. Each tool covers an essential action.
The set covers core page lifecycle (create, read, update) and adds useful search, comment, and space discovery capabilities. However, there is no delete page operation, a notable gap in CRUD completeness.
Maintenance
Related MCP Connectors
Unofficial Confluence MCP — wraps the Confluence Cloud REST API v2 (OAuth)
Search and manage your team's knowledge from MCP clients.
Unofficial community ClickUp MCP via personal API token. Not affiliated with ClickUp.
Read and write Mission Control state via MCP — projects, tasks, subtasks, templates, status updates.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables integration with Atlassian Confluence to browse spaces, search content using CQL, and manage pages directly from MCP-compatible applications. It automatically converts Confluence storage formats into markdown for seamless interaction with AI-driven editors and tools.56 npm2MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server implementation for interacting with self-hosted Confluence Data Center or Server instances via search, content retrieval, and optional write operations. It features space auto-discovery, audit logging, and granular access control for secure enterprise collaboration.-
- AlicenseAqualityDmaintenanceMCP server for Confluence Cloud/Server/Data Center, enabling page search, CQL queries, page CRUD, attachment upload, and user identity lookup.23485 npm5MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for searching and retrieving pages from Atlassian Confluence.1MIT