Confluence MCP Server
The Confluence MCP Server provides secure, AI-driven access to Atlassian Confluence through its REST API, enabling comprehensive content and space management operations:
Content Management
Search for content using text queries, titles, or space keys with customizable limits and formats
Retrieve, create, update, and move Confluence pages
Get child pages of a specific parent page
Space Management
List all accessible Confluence spaces with pagination
Retrieve detailed space information by ID or key
Get all pages within a specific space
Security & Integration
Secure access using Atlassian API tokens
Respect Confluence permissions and configurable space restrictions
Designed for integration with AI tools via Model Context Protocol
Provides secure access to Atlassian Confluence through its REST API, enabling search across spaces, retrieving, creating, updating, and deleting pages, listing spaces, and getting content from specific spaces.
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 Server search for API documentation in Confluence"
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 Server
A Model Context Protocol (MCP) server that provides secure access to Atlassian Confluence through its REST API.
Using with Claude Code
To use this MCP server with Claude Code, add it to your MCP configuration file:
Option 1: Using claude mcp add-json (recommended)
The easiest way to add this server is using the claude mcp add-json command:
# First, build the server
npm run build
# Then add it using claude mcp add-json
claude mcp add-json confluenceWhen prompted, paste the following JSON configuration:
{
"command": "node",
"args": ["/path/to/confluence_mcp/dist/index.js"],
"env": {
"CONFLUENCE_BASE_URL": "https://your-domain.atlassian.net",
"CONFLUENCE_USERNAME": "your-email@domain.com",
"CONFLUENCE_API_TOKEN": "your-api-token",
"ALLOWED_SPACES": "SPACE1,SPACE2,SPACE3"
}
}Option 2: Manual configuration
Alternatively, you can manually edit your MCP configuration file (~/.config/claude-code/mcp_servers_config.json):
{
"mcpServers": {
"confluence": {
"command": "node",
"args": ["/path/to/confluence_mcp/dist/index.js"],
"env": {
"CONFLUENCE_BASE_URL": "https://your-domain.atlassian.net",
"CONFLUENCE_USERNAME": "your-email@domain.com",
"CONFLUENCE_API_TOKEN": "your-api-token",
"ALLOWED_SPACES": "SPACE1,SPACE2,SPACE3"
}
}
}
}Option 3: Using tsx for development
For development or if you prefer running TypeScript directly:
{
"command": "npx",
"args": ["tsx", "/path/to/confluence_mcp/src/index.ts"],
"env": {
"CONFLUENCE_BASE_URL": "https://your-domain.atlassian.net",
"CONFLUENCE_USERNAME": "your-email@domain.com",
"CONFLUENCE_API_TOKEN": "your-api-token",
"ALLOWED_SPACES": "SPACE1,SPACE2,SPACE3"
}
}Configuration Notes
Replace the environment variables with your actual Confluence credentials
The
ALLOWED_SPACESshould be a comma-separated list of space keys you want to allow access toRestart Claude Code after updating the configuration
Make sure you have built the project first with
npm run buildif using Option 1
Once configured, you can use commands like:
"Search for API documentation in Confluence"
"Create a new page in the DEV space"
"Show me all pages in the PROJ space"
Related MCP server: Confluence MCP
Quick Start
Install dependencies:
npm installConfigure environment:
cp .env.example .env # Edit .env with your Confluence credentialsBuild and run:
npm run build npm startOr for development:
npm run dev
Configuration
Create a .env file with your Confluence credentials:
CONFLUENCE_BASE_URL=https://your-domain.atlassian.net
CONFLUENCE_USERNAME=your-email@domain.com
CONFLUENCE_API_TOKEN=your-api-token
ALLOWED_SPACES=SPACE1,SPACE2,SPACE3
DEBUG=falseGetting an API Token
Click "Create API token"
Give it a descriptive label
Copy the generated token (save it securely!)
Available Tools
search_confluence - Search content across allowed spaces
get_page - Retrieve a specific page by ID
create_page - Create a new page
update_page - Update an existing page
delete_page - Delete a page
list_spaces - List accessible spaces
get_space_content - Get pages from a specific space
Security Features
API Token Authentication - Secure access using Atlassian API tokens
Space Restrictions - Configurable allowed spaces list
Permission Validation - Respects Confluence permissions
Request Validation - Input validation and sanitization
Development
# Type checking
npm run typecheck
# Linting
npm run lint
# Testing
npm test
# Build
npm run buildAvailable Tools
10 toolscreate_pageC
Create a new Confluence page
Inputs: content (required), spaceKey (required), title (required), parentId.
get_pageC
Retrieve a specific Confluence page by ID
Inputs: pageId (required), bodyFormat.
get_page_childrenC
Get child pages of a specific page
Inputs: pageId (required), bodyFormat, limit, start.
get_space_by_idC
Get detailed information about a specific Confluence space by ID
Inputs: spaceId (required).
get_space_by_keyB
Get detailed information about a specific Confluence space by key
Inputs: spaceKey (required).
get_space_contentC
Get pages from a specific space
Inputs: spaceKey (required), bodyFormat, limit, start.
list_spacesC
List all accessible Confluence spaces (filtered by allowed spaces)
Inputs: cursor, limit.
move_pageC
Move a Confluence page to a different space or parent
Inputs: pageId (required), targetSpaceKey (required), parentId.
search_confluenceB
Search for content across allowed Confluence spaces by text and/or title
Inputs: bodyFormat, limit, query, spaceKey, +2 more.
update_pageC
Update an existing Confluence page
Inputs: content (required), pageId (required), title (required), version (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Most tools have distinct purposes, but there is some potential confusion between get_space_by_id and get_space_by_key which serve similar functions with different identifiers, and get_space_content overlaps conceptually with listing pages in a space. However, descriptions clarify the distinctions, preventing major misselection.
All tool names follow a consistent verb_noun pattern with clear, descriptive actions (e.g., create_page, get_page, list_spaces). There are no deviations in style or convention, making the set predictable and easy to understand.
With 10 tools, the server is well-scoped for managing Confluence content, covering core operations like CRUD for pages, space management, and search. Each tool has a clear role without bloat or redundancy.
The tool set provides strong coverage for page and space operations, including create, read, update, move, and search. Minor gaps exist, such as no delete_page tool or advanced space management (e.g., create_space), but agents can handle most workflows effectively.
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
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.
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
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
- AlicenseAqualityFmaintenanceA Model Context Protocol server that enables AI assistants to interact with Confluence content, supporting operations like retrieving, searching, creating, and updating pages and spaces.97 npm12MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server for accessing Confluence API using Personal Access Tokens, enabling users to retrieve space lists, view pages, create new pages, and update existing content.422 npm1MIT
- 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