home / mcp / confluence mcp server
This repository contains the source code for a confluence context server, it provides prompts that can be used as slash commands for clients like Zed Editor, in order to add page contents as context to the AI assistant.
Configuration
View docs{
"mcpServers": {
"mouhamadalmounayar-mcp-confluence": {
"command": "node",
"args": [
"node_modules/mcp-confluence/dist/index.js"
]
}
}
}You can run an MCP Confluence context server that provides prompts to fetch Confluence pages and blog posts by ID. This server enables your MCP client to traverse Confluence content and retrieve specific items securely through configured credentials.
To use this MCP server with your MCP client, install the server globally, run it locally, and supply your Confluence credentials. The server exposes prompts such as confluence-page and blog-post that take an ID and return the corresponding content from your Confluence workspace.
Prerequisites: Ensure you have Node.js installed on your system. You will also need access to a Confluence account with the necessary permissions.
Install the MCP Confluence server globally using npm.
npm install -g mcp-confluenceSet the following environment variables to authenticate against your Confluence account.
Required environment variables are shown in the example configuration:
"confluence-context-server": {
"command": "node",
"args": [
"node_modules/mcp-confluence/dist/index.js"
],
"env": {
"API_TOKEN": "",
"DOMAIN_NAME": "",
"EMAIL": ""
}
}If you use Zed, install the confluence-context-server extension and add these settings to your Zed config to connect to the MCP server.
{
"context_servers": {
"confluence-context-server": {
"settings": {
"api_token": ,
"domain_name": ,
"email":
}
}
}
}Confluence Page prompt retrieves a Confluence page by its ID and requires a pageId argument.
Blog Post prompt retrieves a blog post by its ID and requires a blogId argument.
You can also interact with the server using the MCP Inspector. Install the SDK and run the inspector against the Confluence MCP server.
npm install @modelcontextprotocol/sdk
npx -y @modelcontextprotocol/inspector npx mcp-confluenceFetch a Confluence page by its ID using the confluence-page prompt.
Fetch a blog post by its ID using the blog-post prompt.