A TypeScript MCP (Model Context Protocol) server for integration with Atlassian Confluence.
- 🔧 Automatic Configuration: Interactive setup without manual configuration files
- 🔐 Secure Authentication: API token-based authentication with automatic renewal
- 🔍 Complete Search Functions: CQL-based search and full-text search
- 📄 Page and Space Management: Access to Confluence content and structures
- 🚀 STDIO Transport: Runs over Standard Input/Output for MCP compatibility
- ⚡ Rate Limiting: Built-in protection against API overload
- ✍️ Write Operations: Create and update pages with Atlassian Markup Format validation
The easiest way to use the MCP Confluence server is with npx. The configuration is automatically saved in your home directory and persists between runs.
- Install Node.js (version 18 or higher)
-
Add to Claude Desktop configuration:
-
Open your Claude Desktop config file:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Linux:
~/.config/Claude/claude_desktop_config.json
- Windows:
-
Add the "confluence" entry to your
mcpServers
configuration:
{ "mcpServers": { "confluence": { "command": "npx", "args": ["@aiondadotcom/mcp-confluence-server"] } } }
-
-
Restart Claude Desktop:
- Close Claude Desktop completely
- On Windows, also end the Claude process in Task Manager (it runs in the background)
- Restart Claude Desktop
-
Configure your Confluence credentials:
- The MCP server will prompt you for your credentials on first use
- You'll need to create an API token in Confluence:
- Go to Atlassian API Tokens
- Click "Create API token"
- Give it a name (e.g., "MCP")
- Copy the token
- The AI will ask for:
- Your Confluence URL (e.g.,
https://your-company.atlassian.net
) - Your email address
- Your API token
- Your Confluence URL (e.g.,
- The configuration will be automatically saved in
~/.mcp-confluence-config.json
That's it! The server will now work with Claude Desktop and your configuration will persist between sessions.
Alternative installation method for users who prefer manual setup:
-
Install the package globally:
npm install -g @aiondadotcom/mcp-confluence-server
-
Create a directory for the server:
mkdir C:\mcp-confluence cd C:\mcp-confluence
-
Create a batch file
start-server.bat
:@echo off mcp-confluence-server
-
Add to Claude Desktop configuration (
%APPDATA%\Claude\claude_desktop_config.json
):{ "mcpServers": { "confluence": { "command": "C:\\mcp-confluence\\start-server.bat", "cwd": "C:\\mcp-confluence", "args": [], "env": {} } } }
-
Initial setup:
- Start Claude Desktop
- Use the
setup_confluence
tool to configure your Confluence credentials - The
config.json
will be saved inC:\mcp-confluence
and persist between runs
git clone https://github.com/AiondaDotCom/mcp-confluence.git
cd mcp-confluence
npm install
npm run build
Add the server to your MCP configuration using npx:
{
"mcpServers": {
"confluence": {
"command": "npx",
"args": ["@aiondadotcom/mcp-confluence-server"],
"env": {}
}
}
}
- Copy the
mcp.json
to your MCP configuration directory - Or add the server to your existing MCP configuration:
{
"mcpServers": {
"confluence": {
"command": "/path/to/mcp-confluence/start-server.sh",
"cwd": "/path/to/mcp-confluence",
"args": [],
"env": {}
}
}
}
# NPX
npx @aiondadotcom/mcp-confluence-server
# Local development
./start-server.sh
The server automatically handles configuration through the setup_confluence
tool. Configuration is saved in ~/.mcp-confluence-config.json
and persists between sessions.
When you first use the server, it will prompt you for:
- Your Confluence URL (e.g.,
https://your-company.atlassian.net
) - Your email address
- Your API token
The configuration is automatically validated and saved.
You can also manually create ~/.mcp-confluence-config.json
:
{
"confluenceBaseUrl": "https://your-company.atlassian.net",
"confluenceEmail": "your.email@example.com",
"confluenceApiToken": "Your-API-Token"
}
setup_confluence
: Set up or update configurationaction: "setup"
: Initial configurationaction: "update_token"
: Renew tokenaction: "validate"
: Validate configuration
search_confluence
: CQL-based searchsearch_pages
: Full-text search in pagesget_recent_pages
: Recently modified pages
get_page
: Retrieve specific pageget_space
: Space informationlist_spaces
: All available spaces
create_page
: Create new Confluence pages⚠️ IMPORTANT: Content MUST be in Atlassian Markup Format!
update_page
: Update existing Confluence pages⚠️ IMPORTANT: Content MUST be in Atlassian Markup Format!
h1. Heading
*bold text*
_italic text_
{info}This is an info box{info}
{panel}This is a panel{panel}
{code}code block{code}
confluence://spaces
: All available spacesconfluence://recent-pages
: Recently modified pagesconfluence://user
: Current user information
The configuration is automatically saved in ~/.mcp-confluence-config.json
in your home directory. This ensures the configuration persists between sessions and works with npx. No manual editing required.
- Go to https://id.atlassian.com/manage-profile/security/api-tokens
- Click "Create API token"
- Give the token a descriptive name
- Copy the token (it will only be displayed once)
- Use the token when configuring the server
# Development mode
npm run dev
# Build
npm run build
# Tests
npm test
# Linting
npm run lint
The server automatically detects expired or invalid tokens and prompts you to renew them.
Delete ~/.mcp-confluence-config.json
and restart the server for reconfiguration.
Check:
- Your permissions for the Confluence instance
- The validity of the Base URL
- Your network connection
If you encounter errors when creating or updating pages:
- Ensure content is in Atlassian Markup Format, not Markdown
- The tools will automatically detect common Markdown syntax and provide helpful error messages
- Refer to the Atlassian Markup Format examples above
This server is published as @aiondadotcom/mcp-confluence-server
on NPM.
- Package: https://www.npmjs.com/package/@aiondadotcom/mcp-confluence-server
- Repository: https://github.com/AiondaDotCom/mcp-confluence
- NPX (No installation):
npx @aiondadotcom/mcp-confluence-server
- Global installation:
npm install -g @aiondadotcom/mcp-confluence-server
- Local installation:
npm install @aiondadotcom/mcp-confluence-server
MIT