home / mcp / confluence mcp server

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.

Installation
Add the following to your MCP client configuration file.

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.

How to use

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.

How to install

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-confluence

Configuration and usage notes

Set 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": ""
  }
}

Zed integration

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": 
      }
    }
  }
}

Prompts

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.

MCP Inspector

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-confluence

Available tools

confluence-page

Fetch a Confluence page by its ID using the confluence-page prompt.

blog-post

Fetch a blog post by its ID using the blog-post prompt.