atlassian confluence.com
atlassian confluence.com logo

Atlassian Confluence MCP

Integrates with Atlassian Confluence to provide direct access to spaces, pages, and content with tools for listing, retr...

Atlassian Confluence MCP Server

This project provides a Model Context Protocol (MCP) server that acts as a bridge between AI assistants (like Anthropic's Claude, Cursor AI, or other MCP-compatible clients) and your Atlassian Confluence instance. It allows AI to securely access and interact with your Confluence spaces and pages in real time.

Overview

What is MCP?

Model Context Protocol (MCP) is an open standard that allows AI systems to securely and contextually connect with external tools and data sources.
This server implements MCP specifically for Confluence Cloud, bridging your Confluence data with AI assistants.

Why Use This Server?

  • **Minimal Input, Maximum Output Philosophy**: Simple identifiers like `spaceKey` and `pageId` are all you need. Each tool returns comprehensive details without requiring extra flags.
  • **Complete Knowledge Base Access**: Provide your AI assistant with full visibility into your documentation, wikis, and knowledge base content in real time.
  • **Rich Content Formatting**: All page content is automatically converted from Atlassian Document Format to Markdown with proper headings, tables, lists, and other formatting elements.
  • **Secure Local Authentication**: Credentials are never stored in the server. The server runs locally, so your tokens never leave your machine and you can request only the permissions you need.
  • **Intuitive Markdown Responses**: All responses use well-structured Markdown for readability with consistent formatting and navigational links.

Getting Started

Prerequisites

  • **Node.js** (>=18.x): [Download](https://nodejs.org/)
  • **Atlassian Account** with access to Confluence Cloud

Step 1: Get Your Atlassian API Token

  1. Go to your Atlassian API token management page: [https://id.atlassian.com/manage-profile/security/api-tokens](https://id.atlassian.com/manage-profile/security/api-tokens)
  1. Click **Create API token**.
  1. Give it a descriptive **Label** (e.g., `mcp-confluence-access`).
  1. Click **Create**.
  1. **Copy the generated API token** immediately. You won't be able to see it again.

Step 2: Configure Credentials

Method A: MCP Config File (Recommended)

Create or edit `~/.mcp/configs.json`:
  • `<YOUR_SITE_NAME>`: Your Confluence site name (e.g., `mycompany` for `mycompany.atlassian.net`).
  • `<YOUR_ATLASSIAN_EMAIL>`: Your Atlassian account email.
  • `<YOUR_COPIED_API_TOKEN>`: The API token from Step 1.

Method B: Environment Variables

Pass credentials directly when running the server:

Step 3: Connect Your AI Assistant

Configure your MCP-compatible client to launch this server.
**Claude / Cursor Configuration:**
This configuration launches the server automatically at runtime.

Tools

This section covers the MCP tools available when using this server with an AI assistant. Note that MCP tools use `snake_case` for tool names and `camelCase` for parameters.

`list_spaces`

List available Confluence spaces with optional filtering.
_or:_
"Show me all Confluence spaces."

`get_space`

Get full details for a specific space, including homepage information.
"Tell me about the DEV space in Confluence."

`list_pages`

List pages within one or more spaces with optional filtering.
_or:_
"Show me current pages in space 123456."

`get_page`

Get full content and metadata for a specific page.
"Get the content of Confluence page 12345678."

`search`

Search Confluence content using CQL (Confluence Query Language).
_or:_
"Search Confluence for pages about project plans."

Command-Line Interface (CLI)

The CLI uses kebab-case for commands (e.g., `list-spaces`) and options (e.g., `--space-key`).

Quick Use with `npx`

Install Globally

Then run directly:

Discover More CLI Options

Use `--help` to see flags and usage for all available commands:
Or get detailed help for a specific command:

License

[ISC License](https://opensource.org/licenses/ISC)