Confluence MCP

Confluence MCP

A Model Context Protocol server that enables AI assistants to interact with Confluence content, supporting operations like retrieving, searching, creating, and updating pages and spaces.

Category
Visit Server

README

Confluence MCP

A Model Context Protocol (MCP) server for Confluence, enabling AI assistants to interact with Confluence content through a standardized interface.

ℹ️ There is a separate MCP server for Jira

Features

  • Authenticate to Confluence using a personal API token
  • Retrieve and search Confluence pages and spaces
  • Create and update Confluence content
  • Retrieve and add comments to pages
  • Retrieve and add attachments to pages
  • Clean and transform Confluence content for AI consumption
  • Handle API communication, error handling, and data transformation
  • Basic rate limiting to prevent API abuse

Prerequisites

  • Bun (v1.0.0 or higher)
  • Confluence account with API access

Installation

# Clone the repository
git clone https://github.com/yourusername/confluence-mcp.git
cd confluence-mcp

# Install dependencies
bun install

# Build the project
bun run build

Configuration

To use this MCP server, you need to set the following environment variables:

CONFLUENCE_API_TOKEN=your_api_token
CONFLUENCE_BASE_URL=your_confluence_instance_url  # e.g., https://your-domain.atlassian.net/wiki
CONFLUENCE_USER_EMAIL=your_email

Claude Desktop / Cline Configuration

Add this configuration to your settings file:

{
  "mcpServers": {
    "confluence": {
      "command": "bun",
      "args": ["/absolute/path/to/confluence-mcp/dist/index.js"],
      "env": {
        "CONFLUENCE_API_TOKEN": "your_api_token",
        "CONFLUENCE_BASE_URL": "your_confluence_instance_url/wiki",
        "CONFLUENCE_USER_EMAIL": "your_email"
      }
    }
  }
}

Development

# Run in development mode
bun run dev

# Run tests
bun test

Available Tools

The Confluence MCP server exposes the following tools:

get_page

Retrieve a Confluence page by ID. Format refers to the return format of the content and can be text or markdown.

{
  "pageId": "123456",
  "format": "text"
}

search_pages

Search for Confluence pages using CQL (Confluence Query Language). Format refers to the return format of the content and can be text or markdown.

{
  "query": "space = DEV and label = documentation",
  "limit": 10,
  "format": "text"
}

get_spaces

List all available Confluence spaces.

{
  "limit": 50
}

create_page

Create a new Confluence page. The parentId is optional and can be used to create a child page under an existing page.

{
  "spaceKey": "DEV",
  "title": "New Page Title",
  "content": "<p>Page content in Confluence Storage Format (XHTML)</p>",
  "parentId": "123456" 
}

update_page

Update an existing Confluence page.

{
  "pageId": "123456",
  "title": "Updated Page Title",
  "content": "<p>Updated content in Confluence Storage Format (XHTML)</p>",
  "version": 1
}

get_comments

Retrieve comments for a specific Confluence page. Format refers to the return format of the content and can be text or markdown.

{
  "pageId": "123456",
  "limit": 25,
  "format": "text"
}

add_comment

Add a comment to a Confluence page. The parentId is optional for creating threaded replies.

{
  "pageId": "123456",
  "content": "<p>This is a new comment.</p>",
  "parentId": "789012" 
}

get_attachments

Retrieve attachments for a specific Confluence page.

{
  "pageId": "123456",
  "limit": 25
}

add_attachment

Add an attachment to a Confluence page. The fileContentBase64 should be the base64 encoded string of the file content.

{
  "pageId": "123456",
  "filename": "document.pdf",
  "fileContentBase64": "JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFI+P...",
  "comment": "Uploaded new version of the document"
}

LICENCE

This project is licensed under the MIT License - see the LICENCE file for details.

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