Cover image
MCP-Server-Atlassian-Confluence
Public

MCP-Server-Atlassian-Confluence

Try Now
2025-04-09

Node.js/TypeScript MCP Server para Atlassian Confluence. Proporciona herramientas que permiten a AI Systems (LLMS) que enumeren/obtengan espacios y páginas (contenido formateado como markdown) y busque a través de CQL. Conecta ai sin problemas con las bases de conocimiento de confluencia utilizando la interfaz MCP estándar.

3 years

Works with Finder

1

Github Watches

6

Github Forks

3

Github Stars

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

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • Beniyam Berhanu
  • Therapist adept at identifying core issues and offering practical advice with images.

  • Daren White
  • A supportive coach for mastering all Spanish tenses.

  • J. DE HARO OLLE
  • Especialista en juegos de palabras en varios idiomas.

  • albert tan
  • Japanese education, creating tailored learning experiences.

  • apappascs
  • Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.

  • ShrimpingIt
  • Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx

  • huahuayu
  • Una puerta de enlace de API unificada para integrar múltiples API de explorador de blockchain similar a Esterscan con soporte de protocolo de contexto modelo (MCP) para asistentes de IA.

  • deemkeen
  • Controle su MBOT2 con un combo de potencia: MQTT+MCP+LLM

  • zhaoyunxing92
  • 本项目是一个钉钉 MCP (Protocolo del conector de mensajes )服务 , 提供了与钉钉企业应用交互的 API 接口。项目基于 Go 语言开发 支持员工信息查询和消息发送等功能。 支持员工信息查询和消息发送等功能。

  • pontusab
  • La comunidad de cursor y windsurf, encontrar reglas y MCP

    Reviews

    5 (1)
    Avatar
    user_KMduus6u
    2025-04-16

    As a dedicated MCP Application user, I highly recommend the mcp-server-atlassian-confluence developed by aashari. This product has enhanced my experience with Confluence immensely, thanks to its seamless integration and efficient functionalities. Whether you are managing content or collaborating with your team, this server is a game-changer. For more information, you can visit the product link: https://github.com/aashari/mcp-server-atlassian-confluence.