The Atlassian Confluence MCP Server is a Node.js/TypeScript implementation of the Model Context Protocol that allows AI systems to securely interact with your Confluence spaces, pages, and content in real time. It enables AI assistants to access and query your Confluence knowledge base with simple commands.
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>
with your site name (e.g., mycompany
for mycompany.atlassian.net
)<YOUR_ATLASSIAN_EMAIL>
with your Atlassian account email<YOUR_COPIED_API_TOKEN>
with the API token you generatedexport ATLASSIAN_SITE_NAME="<YOUR_SITE_NAME>"
export ATLASSIAN_USER_EMAIL="<YOUR_EMAIL>"
export ATLASSIAN_API_TOKEN="<YOUR_API_TOKEN>"
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) with:
{
"mcpServers": {
"confluence": {
"command": "npx",
"args": ["-y", "@aashari/mcp-server-atlassian-confluence"]
}
}
}
The MCP server provides several tools that use snake_case
names, camelCase
parameters, and return Markdown-formatted responses.
{ "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
}
The server also provides CLI commands that use kebab-case
names. You can run --help
for details on any command.
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
All responses are well-formatted in Markdown and typically include:
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 > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
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 explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.