MCP-Confluence server provides access to Confluence content through the Model Context Protocol. It currently offers prompts designed for use as slash commands in Zed, allowing you to fetch Confluence pages and blog posts directly.
Install the MCP-Confluence server globally using npm:
npm install -g mcp-confluence
Before using the server, you need to set up the following environment variables:
API_KEY
: Your Confluence account API key for authenticationDOMAIN_NAME
: Your Confluence domain (e.g., example.atlassian.net
)EMAIL
: The email address associated with your Confluence accountYou can configure the server with the required environment variables:
"confluence-context-server": {
"command": "node",
"args": [
"node_modules/mcp-confluence/dist/index.js"
],
"env": {
"API_TOKEN": "your-api-token",
"DOMAIN_NAME": "your-domain.atlassian.net",
"EMAIL": "[email protected]"
}
}
To use the server with Zed:
"context_servers": {
"confluence-context-server": {
"settings": {
"api_token": "your-api-token",
"domain_name": "your-domain.atlassian.net",
"email": "[email protected]"
}
}
}
You can interact with the server using the MCP Inspector:
npm install @modelcontextprotocol/sdk
npx -y @modelcontextprotocol/inspector npx mcp-confluence
Retrieve a Confluence page by its ID:
confluence-page
pageId
: The id of the confluence pageRetrieve a Confluence blog post by its ID:
blog-post
blogId
: The id of the blog postThere 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.