Atlassian Confluence MCP Server

Atlassian Confluence MCP Server

A Model Context Protocol server that enables AI assistants like Claude to access and search Atlassian Confluence content, allowing integration with your organization's knowledge base.

aashari

Research & Data
Visit Server

Tools

list-spaces

List Confluence spaces with optional filtering capabilities. PURPOSE: Discovers available spaces in your Confluence instance with their keys, names, types, and URLs. WHEN TO USE: - When you need to discover what spaces exist in your Confluence instance - When you want to find spaces by type (global, personal, archived) - When you need to browse available spaces before accessing specific pages - When you need space keys for use with other Confluence tools WHEN NOT TO USE: - When you already know the specific space key/ID (use get-space instead) - When you need detailed information about a specific space (use get-space instead) - When you need to find content across multiple spaces (use search instead) - When you need to list pages within a specific space (use list-pages instead) RETURNS: Formatted list of spaces with IDs, keys, names, types, and URLs, plus pagination info. EXAMPLES: - List all spaces: {} - Filter by type: {type: "global"} - With pagination: {limit: 10, cursor: "next-page-token"} ERRORS: - Authentication failures: Check your Confluence credentials - No spaces found: Verify your permissions in Confluence - Rate limiting: Use pagination and reduce query frequency

get-space

Get detailed information about a specific Confluence space by ID or key. PURPOSE: Retrieves comprehensive space metadata including description, homepage, permissions, and more. WHEN TO USE: - When you need detailed information about a specific space - When you need to find the homepage or key pages within a space - When you need to verify space permissions or settings - After using list-spaces to identify the relevant space WHEN NOT TO USE: - When you don't know which space to look for (use list-spaces first) - When you need to browse multiple spaces (use list-spaces instead) - When you need to find specific content (use search or list-pages instead) RETURNS: Detailed space information including key, name, description, type, homepage, and metadata. EXAMPLES: - By key: {idOrKey: "DEV"} - By ID: {idOrKey: "123456"} ERRORS: - Space not found: Verify the space key or ID is correct - Permission errors: Ensure you have access to the requested space - Rate limiting: Cache space information when possible

list-pages

List Confluence pages with optional filtering by space and status. PURPOSE: Finds pages within Confluence spaces with their IDs, titles, and locations to help you discover available content. WHEN TO USE: - When you need to find pages within a specific space - When you want to list the most recently updated content - When you need to browse available pages before accessing specific content - When you need page IDs for use with other Confluence tools - When looking for pages with specific statuses (current, draft, trashed) WHEN NOT TO USE: - When you already know the specific page ID (use get-page instead) - When you need the actual content of a page (use get-page instead) - When you need to search across multiple spaces (use search instead) - When you need to find spaces rather than pages (use list-spaces instead) RETURNS: Formatted list of pages with IDs, titles, space information, and URLs, plus pagination info. EXAMPLES: - Pages in a space: {spaceId: "DEV"} - With status filter: {spaceId: "DEV", status: "current"} - With pagination: {spaceId: "DEV", limit: 10, cursor: "next-page-token"} ERRORS: - Space not found: Verify the space ID is correct - Authentication failures: Check your Confluence credentials - No pages found: The space might be empty or you lack permissions - Rate limiting: Use pagination and reduce query frequency

get-page

Get detailed information and content of a specific Confluence page by ID. PURPOSE: Retrieves the full content of a page in Markdown format along with comprehensive metadata. WHEN TO USE: - When you need to read the actual content of a page - When you need detailed page metadata (author, dates, versions) - When you need to extract specific information from a page - After using list-pages or search to identify relevant page IDs WHEN NOT TO USE: - When you don't know which page to look for (use list-pages or search first) - When you only need basic page information without content (use list-pages instead) - When you need to find content across multiple pages (use search instead) RETURNS: Complete page content in Markdown format with metadata including title, author, version, space, and creation/modification dates. EXAMPLES: - By ID: {id: "123456"} ERRORS: - Page not found: Verify the page ID is correct - Permission errors: Ensure you have access to the requested page - Rate limiting: Cache page content when possible for frequently accessed pages

search

Search for content across Confluence using Confluence Query Language (CQL). PURPOSE: Finds content matching specific criteria with excerpts showing matches, helping you discover relevant information across spaces. WHEN TO USE: - When you need to find specific content across multiple spaces - When you want to search by various criteria (text, title, labels, content type) - When you need to gather information scattered across different pages - When you're unfamiliar with the structure of Confluence and need discovery - When looking for content with specific labels or within specific date ranges WHEN NOT TO USE: - When you already know the exact space and page (use get-page instead) - When you want to list all spaces or pages systematically (use list-spaces/list-pages) - When performing many rapid, consecutive searches (consider rate limits) - When you need to retrieve complete page content (use get-page after search) RETURNS: Search results with titles, excerpts showing matches, content types, spaces, and URLs, plus pagination info. EXAMPLES: - Simple text search: {cql: "text~documentation"} - Space-specific search: {cql: "space=DEV AND text~API"} - Title search: {cql: "title~Project Plan"} - Content type filter: {cql: "type=page AND label=important"} - With pagination: {cql: "text~API", limit: 10, cursor: "next-page-token"} ERRORS: - Invalid CQL syntax: Check CQL syntax (example: "type=page AND space=DEV") - No results: Try broader search terms or check different spaces - Authentication failures: Check your Confluence credentials - Rate limiting: Use more specific queries and pagination

README

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
  • 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
  2. Click Create API token.
  3. Give it a descriptive Label (e.g., mcp-confluence-access).
  4. Click Create.
  5. 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:

{
	"@aashari/mcp-server-atlassian-confluence": {
		"environments": {
			"ATLASSIAN_SITE_NAME": "<YOUR_SITE_NAME>",
			"ATLASSIAN_USER_EMAIL": "<YOUR_ATLASSIAN_EMAIL>",
			"ATLASSIAN_API_TOKEN": "<YOUR_COPIED_API_TOKEN>"
		}
	}
}
  • <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:

ATLASSIAN_SITE_NAME="<YOUR_SITE_NAME>" \
ATLASSIAN_USER_EMAIL="<YOUR_EMAIL>" \
ATLASSIAN_API_TOKEN="<YOUR_API_TOKEN>" \
npx -y @aashari/mcp-server-atlassian-confluence

Step 3: Connect Your AI Assistant

Configure your MCP-compatible client to launch this server.

Claude / Cursor Configuration:

{
	"mcpServers": {
		"aashari/mcp-server-atlassian-confluence": {
			"command": "npx",
			"args": ["-y", "@aashari/mcp-server-atlassian-confluence"]
		}
	}
}

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:

{ "type": "global", "status": "current" }

"Show me all Confluence spaces."


get_space

Get full details for a specific space, including homepage information.

{ "spaceKey": "DEV" }

"Tell me about the DEV space in Confluence."


list_pages

List pages within one or more spaces with optional filtering.

{ "spaceId": ["123456"] }

or:

{ "status": ["current"], "query": "Project Plan" }

"Show me current pages in space 123456."


get_page

Get full content and metadata for a specific page.

{ "pageId": "12345678" }

"Get the content of Confluence page 12345678."


search

Search Confluence content using CQL (Confluence Query Language).

{ "cql": "text ~ 'project plan'" }

or:

{ "cql": "space = DEV AND label = api AND created >= '2023-01-01'" }

"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

npx -y @aashari/mcp-server-atlassian-confluence list-spaces
npx -y @aashari/mcp-server-atlassian-confluence get-page --page 12345678

Install Globally

npm install -g @aashari/mcp-server-atlassian-confluence

Then run directly:

mcp-atlassian-confluence list-spaces

Discover More CLI Options

Use --help to see flags and usage for all available commands:

mcp-atlassian-confluence --help

Or get detailed help for a specific command:

mcp-atlassian-confluence get-space --help
mcp-atlassian-confluence search --help
mcp-atlassian-confluence list-pages --help

License

ISC License

Recommended Servers

Crypto Price & Market Analysis MCP Server

Crypto Price & Market Analysis MCP Server

A Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface.

Featured
TypeScript
MCP PubMed Search

MCP PubMed Search

Server to search PubMed (PubMed is a free, online database that allows users to search for biomedical and life sciences literature). I have created on a day MCP came out but was on vacation, I saw someone post similar server in your DB, but figured to post mine.

Featured
Python
dbt Semantic Layer MCP Server

dbt Semantic Layer MCP Server

A server that enables querying the dbt Semantic Layer through natural language conversations with Claude Desktop and other AI assistants, allowing users to discover metrics, create queries, analyze data, and visualize results.

Featured
TypeScript
mixpanel

mixpanel

Connect to your Mixpanel data. Query events, retention, and funnel data from Mixpanel analytics.

Featured
TypeScript
Sequential Thinking MCP Server

Sequential Thinking MCP Server

This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.

Featured
Python
Nefino MCP Server

Nefino MCP Server

Provides large language models with access to news and information about renewable energy projects in Germany, allowing filtering by location, topic (solar, wind, hydrogen), and date range.

Official
Python
Vectorize

Vectorize

Vectorize MCP server for advanced retrieval, Private Deep Research, Anything-to-Markdown file extraction and text chunking.

Official
JavaScript
Mathematica Documentation MCP server

Mathematica Documentation MCP server

A server that provides access to Mathematica documentation through FastMCP, enabling users to retrieve function documentation and list package symbols from Wolfram Mathematica.

Local
Python
kb-mcp-server

kb-mcp-server

An MCP server aimed to be portable, local, easy and convenient to support semantic/graph based retrieval of txtai "all in one" embeddings database. Any txtai embeddings db in tar.gz form can be loaded

Local
Python
Research MCP Server

Research MCP Server

The server functions as an MCP server to interact with Notion for retrieving and creating survey data, integrating with the Claude Desktop Client for conducting and reviewing surveys.

Local
Python