Skip to main content
Glama
Confluence MCP Server
by Olson3R

Confluence MCP Server

A Model Context Protocol (MCP) server that provides secure access to Atlassian Confluence through its REST API.

Using with Claude Code

To use this MCP server with Claude Code, add it to your MCP configuration file:

The easiest way to add this server is using the claude mcp add-json command:

# First, build the server
npm run build

# Then add it using claude mcp add-json
claude mcp add-json confluence

When prompted, paste the following JSON configuration:

{
  "command": "node",
  "args": ["/path/to/confluence_mcp/dist/index.js"],
  "env": {
    "CONFLUENCE_BASE_URL": "https://your-domain.atlassian.net",
    "CONFLUENCE_USERNAME": "your-email@domain.com",
    "CONFLUENCE_API_TOKEN": "your-api-token",
    "ALLOWED_SPACES": "SPACE1,SPACE2,SPACE3"
  }
}

Option 2: Manual configuration

Alternatively, you can manually edit your MCP configuration file (~/.config/claude-code/mcp_servers_config.json):

{
  "mcpServers": {
    "confluence": {
      "command": "node",
      "args": ["/path/to/confluence_mcp/dist/index.js"],
      "env": {
        "CONFLUENCE_BASE_URL": "https://your-domain.atlassian.net",
        "CONFLUENCE_USERNAME": "your-email@domain.com",
        "CONFLUENCE_API_TOKEN": "your-api-token",
        "ALLOWED_SPACES": "SPACE1,SPACE2,SPACE3"
      }
    }
  }
}

Option 3: Using tsx for development

For development or if you prefer running TypeScript directly:

{
  "command": "npx",
  "args": ["tsx", "/path/to/confluence_mcp/src/index.ts"],
  "env": {
    "CONFLUENCE_BASE_URL": "https://your-domain.atlassian.net",
    "CONFLUENCE_USERNAME": "your-email@domain.com",
    "CONFLUENCE_API_TOKEN": "your-api-token",
    "ALLOWED_SPACES": "SPACE1,SPACE2,SPACE3"
  }
}

Configuration Notes

  • Replace the environment variables with your actual Confluence credentials

  • The ALLOWED_SPACES should be a comma-separated list of space keys you want to allow access to

  • Restart Claude Code after updating the configuration

  • Make sure you have built the project first with npm run build if using Option 1

Once configured, you can use commands like:

  • "Search for API documentation in Confluence"

  • "Create a new page in the DEV space"

  • "Show me all pages in the PROJ space"

Related MCP server: Confluence MCP

Quick Start

  1. Install dependencies:

    npm install
  2. Configure environment:

    cp .env.example .env
    # Edit .env with your Confluence credentials
  3. Build and run:

    npm run build
    npm start

    Or for development:

    npm run dev

Configuration

Create a .env file with your Confluence credentials:

CONFLUENCE_BASE_URL=https://your-domain.atlassian.net
CONFLUENCE_USERNAME=your-email@domain.com
CONFLUENCE_API_TOKEN=your-api-token
ALLOWED_SPACES=SPACE1,SPACE2,SPACE3
DEBUG=false

Getting an API Token

  1. Go to Atlassian Account Settings

  2. Click "Create API token"

  3. Give it a descriptive label

  4. Copy the generated token (save it securely!)

Available Tools

  • search_confluence - Search content across allowed spaces

  • get_page - Retrieve a specific page by ID

  • create_page - Create a new page

  • update_page - Update an existing page

  • delete_page - Delete a page

  • list_spaces - List accessible spaces

  • get_space_content - Get pages from a specific space

Security Features

  • API Token Authentication - Secure access using Atlassian API tokens

  • Space Restrictions - Configurable allowed spaces list

  • Permission Validation - Respects Confluence permissions

  • Request Validation - Input validation and sanitization

Development

# Type checking
npm run typecheck

# Linting
npm run lint

# Testing
npm test

# Build
npm run build

Available Tools

10 tools
create_pageC

Create a new Confluence page

Inputs: content (required), spaceKey (required), title (required), parentId.

get_pageC

Retrieve a specific Confluence page by ID

Inputs: pageId (required), bodyFormat.

get_page_childrenC

Get child pages of a specific page

Inputs: pageId (required), bodyFormat, limit, start.

get_space_by_idC

Get detailed information about a specific Confluence space by ID

Inputs: spaceId (required).

get_space_by_keyB

Get detailed information about a specific Confluence space by key

Inputs: spaceKey (required).

get_space_contentC

Get pages from a specific space

Inputs: spaceKey (required), bodyFormat, limit, start.

list_spacesC

List all accessible Confluence spaces (filtered by allowed spaces)

Inputs: cursor, limit.

move_pageC

Move a Confluence page to a different space or parent

Inputs: pageId (required), targetSpaceKey (required), parentId.

search_confluenceB

Search for content across allowed Confluence spaces by text and/or title

Inputs: bodyFormat, limit, query, spaceKey, +2 more.

update_pageC

Update an existing Confluence page

Inputs: content (required), pageId (required), title (required), version (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 10 tools

    Disambiguation4/5

    Most tools have distinct purposes, but there is some potential confusion between get_space_by_id and get_space_by_key which serve similar functions with different identifiers, and get_space_content overlaps conceptually with listing pages in a space. However, descriptions clarify the distinctions, preventing major misselection.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern with clear, descriptive actions (e.g., create_page, get_page, list_spaces). There are no deviations in style or convention, making the set predictable and easy to understand.

    Tool Count5/5

    With 10 tools, the server is well-scoped for managing Confluence content, covering core operations like CRUD for pages, space management, and search. Each tool has a clear role without bloat or redundancy.

    Completeness4/5

    The tool set provides strong coverage for page and space operations, including create, read, update, move, and search. Minor gaps exist, such as no delete_page tool or advanced space management (e.g., create_space), but agents can handle most workflows effectively.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Model Context Protocol server that integrates with Atlassian Confluence and Jira, enabling AI assistants to search, create, and update content in these platforms through natural language interactions.
      1
      MIT