A Node.js/TypeScript Model Context Protocol (MCP) server for Atlassian Confluence Cloud that enables AI systems to securely interact with your Confluence spaces, pages, and content in real time. This server provides a standardized way for AI assistants to access and search your Confluence knowledge base with minimal configuration.
mcp-confluence-access
)Edit or create ~/.mcp/configs.json
:
{
"confluence": {
"environments": {
"ATLASSIAN_SITE_NAME": "<YOUR_SITE_NAME>",
"ATLASSIAN_USER_EMAIL": "<YOUR_ATLASSIAN_EMAIL>",
"ATLASSIAN_API_TOKEN": "<YOUR_COPIED_API_TOKEN>"
}
}
}
<YOUR_SITE_NAME>
: Your Confluence site name (e.g., mycompany
for mycompany.atlassian.net
)<YOUR_ATLASSIAN_EMAIL>
: Your Atlassian account email<YOUR_COPIED_API_TOKEN>
: The API token from the previous stepexport ATLASSIAN_SITE_NAME="<YOUR_SITE_NAME>"
export ATLASSIAN_USER_EMAIL="<YOUR_EMAIL>"
export ATLASSIAN_API_TOKEN="<YOUR_API_TOKEN>"
npx
npx -y @aashari/mcp-server-atlassian-confluence ls-spaces
npm install -g @aashari/mcp-server-atlassian-confluence
mcp-atlassian-confluence ls-spaces
Configure your MCP-compatible client (e.g., Claude, Cursor AI):
{
"mcpServers": {
"confluence": {
"command": "npx",
"args": ["-y", "@aashari/mcp-server-atlassian-confluence"]
}
}
}
The following tools are available for AI assistants to interact with your Confluence content:
{ "type": "global", "status": "current", "limit": 10 }
{ "spaceKey": "DEV" }
{
"spaceKeys": ["DEV"],
"title": "API Documentation",
"status": ["current"],
"sort": "-modified-date"
}
{ "pageId": "12345678" }
{
"query": "release notes Q1",
"spaceKey": "PRODUCT",
"contentType": "page",
"limit": 5
}
You can also use command-line commands directly:
mcp-atlassian-confluence ls-spaces --type global --status current --limit 10
mcp-atlassian-confluence get-space --space-key DEV
mcp-atlassian-confluence ls-pages --space-keys DEV HR MARKETING --limit 15 --sort "-modified-date"
mcp-atlassian-confluence get-page --page-id 12345678
mcp-atlassian-confluence search --query "security best practices" --space-key DOCS --type page --limit 5
This server supports two transport modes:
# Run with STDIO transport (default for AI assistants)
TRANSPORT_MODE=stdio npx @aashari/mcp-server-atlassian-confluence
# Run with HTTP transport (default when no CLI args)
TRANSPORT_MODE=http npx @aashari/mcp-server-atlassian-confluence
TRANSPORT_MODE
: Set to stdio
or http
PORT
: HTTP server port (default: 3000)DEBUG
: Enable debug logging (default: false)ATLASSIAN_SITE_NAME
: Your Confluence site nameATLASSIAN_USER_EMAIL
: Your Atlassian account emailATLASSIAN_API_TOKEN
: Your Atlassian API tokenTo add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "confluence" '{"command":"npx","args":["-y","@aashari/mcp-server-atlassian-confluence"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"confluence": {
"command": "npx",
"args": [
"-y",
"@aashari/mcp-server-atlassian-confluence"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"confluence": {
"command": "npx",
"args": [
"-y",
"@aashari/mcp-server-atlassian-confluence"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect