Confluence MCP server

Integrates Atlassian Confluence content for retrieving page and blog post data, enabling knowledge base querying and content analysis.
Back to servers
Provider
Mouhamad Al Mounayar
Release date
Jan 24, 2025
Language
TypeScript
Package
Stats
400 downloads
9 stars

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.

Installation

Install the MCP-Confluence server globally using npm:

npm install -g mcp-confluence

Configuration

Before using the server, you need to set up the following environment variables:

  • API_KEY: Your Confluence account API key for authentication
  • DOMAIN_NAME: Your Confluence domain (e.g., example.atlassian.net)
  • EMAIL: The email address associated with your Confluence account

Usage

Basic Server Configuration

You 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]"
  }
}

Using with Zed Editor

To use the server with Zed:

  1. Install the confluence-context-server extension
  2. Add the following to your Zed settings:
"context_servers": {
  "confluence-context-server": {
    "settings": {
      "api_token": "your-api-token",
      "domain_name": "your-domain.atlassian.net",
      "email": "[email protected]"
    }
  }
}

Using with MCP Inspector

You can interact with the server using the MCP Inspector:

npm install @modelcontextprotocol/sdk

npx -y @modelcontextprotocol/inspector npx mcp-confluence

Available Prompts

Confluence Page

Retrieve a Confluence page by its ID:

  • Name: confluence-page
  • Description: Get a confluence page by its id
  • Arguments:
    • pageId: The id of the confluence page

Blog Post

Retrieve a Confluence blog post by its ID:

  • Name: blog-post
  • Description: Get a blog post by its id
  • Arguments:
    • blogId: The id of the blog post

How to add this MCP server to Cursor

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.

Adding an MCP server to Cursor globally

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

Adding an MCP server to a project

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.

How to use the MCP server

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.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later