Basic information
About Atlassian Confluence MCP Server
Integrate Jira with Atlassian Confluence to list, retrieve, and search spaces and pages, plus convert content to Markdown easily.
Atlassian Confluence is a MCP server in the Productivity category listed in the AddMCP.net directory, published by aashari. It exposes 5 tools, including conf_get, conf_post, conf_put, conf_patch and more. Supported transport: stdio, streamable-http. Runtime: TypeScript. License: ISC. The repository has 59 GitHub stars. Source code is hosted on github.com. Related topics: ai, ai-connector, ai-integration, anthropic, atlassian.
Setup
{
"mcpServers": {
"confluence": {
"command": "npx",
"args": [
"-y",
"@aashari/mcp-server-atlassian-confluence"
],
"env": {
"ATLASSIAN_SITE_NAME": "your-company",
"ATLASSIAN_USER_EMAIL": "[email protected]",
"ATLASSIAN_API_TOKEN": "your_api_token"
}
}
}
}
{
"mcpServers": {
"confluence": {
"command": "npx",
"args": [
"-y",
"@aashari/mcp-server-atlassian-confluence"
],
"env": {
"ATLASSIAN_SITE_NAME": "your-company",
"ATLASSIAN_USER_EMAIL": "[email protected]",
"ATLASSIAN_API_TOKEN": "your_api_token"
}
}
}
}
{
"servers": {
"confluence": {
"command": "npx",
"args": [
"-y",
"@aashari/mcp-server-atlassian-confluence"
],
"env": {
"ATLASSIAN_SITE_NAME": "your-company",
"ATLASSIAN_USER_EMAIL": "[email protected]",
"ATLASSIAN_API_TOKEN": "your_api_token"
}
}
}
}
Atlassian Confluence MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"confluence": {
"command": "npx",
"args": [
"-y",
"@aashari/mcp-server-atlassian-confluence"
],
"env": {
"ATLASSIAN_SITE_NAME": "your-company",
"ATLASSIAN_USER_EMAIL": "[email protected]",
"ATLASSIAN_API_TOKEN": "your_api_token"
}
}
}
}
Atlassian Confluence MCP Server tools
- conf_get — Read any Confluence data. Returns TOON format by default (30-60% fewer tokens than JSON). **IMPORTANT - Cost Optimization:** - ALWAYS use `jq` param to filter response fields. Unfiltered responses are very expensive! - Use `limit` query param to restrict result count (e.g., `limit: "5"`) - If unsure about available fields, first fetch ONE item with `limit: "1"` and NO jq filter to explore the schema, then use jq in subsequent calls **Schema Discovery Pattern:** 1. First call: `path: "/wiki/api/v2/spaces", queryParams: {"limit": "1"}` (no jq) - explore available fields 2. Then use: `jq: "results[*].{id: id, key: key, name: name}"` - extract only what you need **Output format:** TOON (default, token-efficient) or JSON (`outputFormat: "json"`) **Common paths:** - `/wiki/api/v2/spaces` - list spaces - `/wiki/api/v2/pages` - list pages (use `space-id` query param) - `/wiki/api/v2/pages/{id}` - get page details - `/wiki/api/v2/pages/{id}/body` - get page body (`body-format`: storage, atlas_doc_format, view) - `/wiki/rest/api/search` - search content (`cql` query param) **JQ examples:** `results[*].id`, `results[0]`, `results[*].{id: id, title: title}` API reference: https://developer.atlassian.com/cloud/confluence/rest/v2/
- conf_post — Create Confluence resources. Returns TOON format by default (token-efficient). **IMPORTANT - Cost Optimization:** - Use `jq` param to extract only needed fields from response (e.g., `jq: "{id: id, title: title}"`) - Unfiltered responses include all metadata and are expensive! **Output format:** TOON (default) or JSON (`outputFormat: "json"`) **Common operations:** 1. **Create page:** `/wiki/api/v2/pages` body: `{"spaceId": "123456", "status": "current", "title": "Page Title", "parentId": "789", "body": {"representation": "storage", "value": "<p>Content</p>"}}` 2. **Create blog post:** `/wiki/api/v2/blogposts` body: `{"spaceId": "123456", "status": "current", "title": "Blog Title", "body": {"representation": "storage", "value": "<p>Content</p>"}}` 3. **Add label:** `/wiki/api/v2/pages/{id}/labels` - body: `{"name": "label-name"}` 4. **Add comment:** `/wiki/api/v2/pages/{id}/footer-comments` API reference: https://developer.atlassian.com/cloud/confluence/rest/v2/
- conf_put — Replace Confluence resources (full update). Returns TOON format by default. **IMPORTANT - Cost Optimization:** - Use `jq` param to extract only needed fields from response - Example: `jq: "{id: id, version: version.number}"` **Output format:** TOON (default) or JSON (`outputFormat: "json"`) **Common operations:** 1. **Update page:** `/wiki/api/v2/pages/{id}` body: `{"id": "123", "status": "current", "title": "Updated Title", "spaceId": "456", "body": {"representation": "storage", "value": "<p>Content</p>"}, "version": {"number": 2}}` Note: version.number must be incremented 2. **Update blog post:** `/wiki/api/v2/blogposts/{id}` Note: PUT replaces entire resource. Version number must be incremented. API reference: https://developer.atlassian.com/cloud/confluence/rest/v2/
- conf_patch — Partially update Confluence resources. Returns TOON format by default. **IMPORTANT - Cost Optimization:** Use `jq` param to filter response fields. **Output format:** TOON (default) or JSON (`outputFormat: "json"`) **Common operations:** 1. **Update space:** `/wiki/api/v2/spaces/{id}` body: `{"name": "New Name", "description": {"plain": {"value": "Desc", "representation": "plain"}}}` 2. **Update comment:** `/wiki/api/v2/footer-comments/{id}` Note: Confluence v2 API primarily uses PUT for updates. API reference: https://developer.atlassian.com/cloud/confluence/rest/v2/
- conf_delete — Delete Confluence resources. Returns TOON format by default. **Output format:** TOON (default) or JSON (`outputFormat: "json"`) **Common operations:** - `/wiki/api/v2/pages/{id}` - Delete page - `/wiki/api/v2/blogposts/{id}` - Delete blog post - `/wiki/api/v2/pages/{id}/labels/{label-id}` - Remove label - `/wiki/api/v2/footer-comments/{id}` - Delete comment - `/wiki/api/v2/attachments/{id}` - Delete attachment Note: Most DELETE endpoints return 204 No Content on success. API reference: https://developer.atlassian.com/cloud/confluence/rest/v2/
Overview
What is Atlassian Confluence?
A server that connects AI assistants (Claude, Cursor AI, and other MCP clients) directly to a Confluence knowledge base, enabling natural language queries to search, read, create, and update pages, spaces, comments, and blog posts.
How to use Atlassian Confluence?
Install via npx (npx -y @aashari/mcp-server-atlassian-confluence) and set the required environment variables: ATLASSIAN_SITE_NAME, ATLASSIAN_USER_EMAIL, and ATLASSIAN_API_TOKEN. Configure the server in Claude Desktop’s config file (~/.claude/claude_desktop_config.json) or in another MCP‑compatible client. Alternatively, use the CLI commands (get, post, put, patch, delete) directly from the terminal.
Key features of Atlassian Confluence
- Five generic tools (
conf_get,conf_post,conf_put,conf_patch,conf_delete) for any Confluence API endpoint - Optional JMESPath (
jq) filtering to extract only the needed fields and reduce token costs - TOON (Token‑Oriented Object Notation) output format, which uses 30–60% fewer tokens than JSON
- Automatic truncation of responses larger than ~40,000 characters, with a notice
- Supports all common Confluence API paths: spaces, pages, comments, blog posts, and search
Use cases of Atlassian Confluence
- Ask AI about your documentation (e.g., “What’s our API authentication process?”)
- Search across all Confluence spaces using natural language or CQL queries
- Retrieve and display page content, labels, and child pages
- Create new pages and add comments to existing documents
- Update or delete pages, spaces, and comments via the API
Frequently asked questions
1 How do I authenticate with Confluence?
Set the environment variables ATLASSIAN_SITE_NAME (your company’s subdomain), ATLASSIAN_USER_EMAIL, and ATLASSIAN_API_TOKEN. Generate an API token from your Atlassian account settings.
2 What tools are available?
The server provides five tools that mirror standard HTTP methods: conf_get, conf_post, conf_put, conf_patch, and conf_delete. Each accepts a path (the API endpoint), optional queryParams, a jq filter expression, and an outputFormat (TOON or JSON).
3 How can I reduce token costs?
By default responses are returned in the TOON format, which is more token‑efficient than JSON. You can further reduce costs by using the jq parameter to filter the response to only the fields you need.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In