Confluence MCP server

Integrates with Atlassian Confluence to enable direct querying and retrieval of wiki content using CQL (Confluence Query Language) for seamless documentation access within conversations.
Back to servers
Provider
Kevin Meyvaert
Release date
Mar 21, 2025
Language
TypeScript
Stats
1 star

This MCP server implementation enables AI assistants to interact with Confluence resources and perform operations programmatically through the Model Context Protocol (MCP). It serves as a bridge allowing AI tools to access and manipulate Confluence content.

Installation

To set up the Confluence MCP server:

  1. Install dependencies:

    npm install
    
  2. Configure environment variables:

    cp .env.example .env
    
  3. Open the .env file and set the following required variables:

    • CONFLUENCE_BASE_URL: Your Confluence instance URL
    • CONFLUENCE_USERNAME: Your Confluence username (email)
    • CONFLUENCE_API_TOKEN: Your Confluence API token
    • CONFLUENCE_DEFAULT_SPACE_KEY: Your default Confluence space key
    • PORT: Server port (default: 3000)

    You can obtain your Confluence API token from https://id.atlassian.com/manage-profile/security/api-tokens

  4. Start the server:

    npm start
    

Integration with Cursor AI

To connect the MCP server with Cursor AI:

  1. Open Cursor AI settings
  2. Add the server endpoint URL:
    http://localhost:3000/sse
    

Usage

Once running, the server enables AI tools to:

  • Access Confluence documents
  • Search through Confluence content
  • Perform operations on Confluence resources

The server implements the Model Context Protocol, allowing compatible AI assistants to interact with your Confluence instance automatically.

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