Confluence MCP Server

Confluence MCP Server

A Model Context Protocol server that provides secure access to Atlassian Confluence, allowing users to search, create, update, and manage Confluence pages and spaces through natural language commands.

Category
Visit Server

README

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:

Option 1: Using the built version (recommended)

  1. First, build the server:

    npm run build
    
  2. Add to 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 2: Using tsx for development

For development or if you prefer running TypeScript directly:

{
  "mcpServers": {
    "confluence": {
      "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"

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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured