Atlassian Confluence MCP Server

Atlassian Confluence MCP Server

By aashari GitHub

Node.js/TypeScript MCP server for Atlassian Confluence. Provides tools enabling AI systems (LLMs) to list/get spaces & pages (content formatted as Markdown) and search via CQL. Connects AI seamlessly to Confluence knowledge bases using the standard MCP interface.

cli typescript
Overview

What is the Atlassian Confluence MCP Server?

The Atlassian Confluence MCP Server is a TypeScript-based Model Context Protocol (MCP) server designed for integrating Claude/Anthropic AI systems with Atlassian Confluence, enabling access to Confluence spaces, pages, and content.

How to use the Atlassian Confluence MCP Server?

To use the server, configure it with your Atlassian site details and run it using either direct environment variables or a global configuration file. You can then connect it to AI systems like Claude Desktop or Cursor AI.

Key features of the Atlassian Confluence MCP Server?

  • Integration with Claude and other MCP-compatible AI systems.
  • CLI support for direct command-line access to Confluence content.
  • Powerful search capabilities using Confluence Query Language (CQL).
  • Flexible configuration options for easy setup.

Use cases of the Atlassian Confluence MCP Server?

  1. Enabling AI systems to retrieve information from Confluence knowledge bases.
  2. Searching for specific content within Confluence using natural language queries.
  3. Accessing and managing Confluence pages and spaces programmatically.

FAQ from the Atlassian Confluence MCP Server?

  • Can I use this server with any AI system?
    Yes, it is designed to work with any MCP-compatible AI system, including Claude and Cursor AI.

  • Is there a command-line interface available?
    Yes, the server can be used as a CLI tool for direct access to Confluence functionalities.

  • What configuration options are available?
    You can configure the server using environment variables or a global configuration file for easier management.

Content

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

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 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

No tools information available.

The open-source multi-agent chat interface that lets you manage multiple agents in one dynamic conversation and add MCP servers for deep research

python typescript
View Details

MCP Tools Usage From LangChain ReAct Agent / Example in TypeScript

nodejs typescript
View Details

MCP Client Implementation Using LangChain ReAct Agent / TypeScript

nodejs typescript
View Details

Adapters for integrating Model Context Protocol (MCP) tools with LangChain.js applications, supporting both stdio and SSE transports.

javascript typescript
View Details

Adapters for integrating Model Context Protocol (MCP) tools with LangChain.js applications, supporting both stdio and SSE transports.

javascript typescript
View Details

-

mcp-server typescript
View Details

【Every star you give feeds a hungry developer's motivation!⭐️】A Model Context Protocol (MCP) server implementation that provides Google Jobs search capabilities via SerpAPI integration. Features multi-language support, comprehensive search parameters, and smart error handling.

nodejs typescript
View Details