Confluence MCP

Integrations

  • Enables retrieving, searching, creating, and updating Confluence pages and spaces, as well as handling content transformation for AI consumption.

  • Referenced as a separate MCP server available from another repository, indicating integration capabilities with Jira.

Confluence MCP

Ein Model Context Protocol (MCP)-Server für Confluence, der es KI-Assistenten ermöglicht, über eine standardisierte Schnittstelle mit Confluence-Inhalten zu interagieren.

ℹ️ Es gibt einen separaten MCP-Server für Jira

Merkmale

  • Authentifizieren Sie sich bei Confluence mit einem persönlichen API-Token
  • Abrufen und Durchsuchen von Confluence-Seiten und -Bereichen
  • Erstellen und Aktualisieren von Confluence-Inhalten
  • Abrufen und Hinzufügen von Kommentaren zu Seiten
  • Abrufen und Hinzufügen von Anhängen zu Seiten
  • Bereinigen und transformieren Sie Confluence-Inhalte für die KI-Nutzung
  • Behandeln Sie API-Kommunikation, Fehlerbehandlung und Datentransformation
  • Grundlegende Ratenbegrenzung zur Verhinderung von API-Missbrauch

Voraussetzungen

  • Bun (v1.0.0 oder höher)
  • Confluence-Konto mit API-Zugriff

Installation

# Clone the repository git clone https://github.com/cosmix/confluence-mcp.git cd confluence-mcp # Install dependencies bun install # Build the project bun run build

Konfiguration

Um diesen MCP-Server zu verwenden, müssen Sie die folgenden Umgebungsvariablen festlegen:

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

Fügen Sie Ihrer Einstellungsdatei diese Konfiguration hinzu:

{ "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" } } } }

Entwicklung

# Run in development mode bun run dev # Run tests bun test

Verfügbare Tools

Der Confluence MCP-Server stellt die folgenden Tools bereit:

Seite abrufen

Ruft eine Confluence-Seite anhand ihrer ID ab. Format bezieht sich auf das Rückgabeformat des Inhalts und kann text oder markdown sein. Der Parameter includeMarkup ermöglicht das Abrufen des ursprünglichen Confluence Storage Format (XHTML)-Markups. Dies ist nützlich, um Seiten unter Beibehaltung der Formatierung zu aktualisieren.

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

Suchseiten

Suchen Sie mit CQL (Confluence Query Language) nach Confluence-Seiten. Format bezieht sich auf das Rückgabeformat des Inhalts und kann text oder markdown sein. Der Parameter includeMarkup ermöglicht das Abrufen des ursprünglichen Confluence Storage Format (XHTML)-Markups für jede Seite.

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

get_spaces

Listen Sie alle verfügbaren Confluence-Bereiche auf.

{ "limit": 50 }

Seite erstellen

Erstellen Sie eine neue Confluence-Seite. Die parentId ist optional und kann verwendet werden, um eine untergeordnete Seite unter einer bestehenden Seite zu erstellen.

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

Seite aktualisieren

Aktualisieren Sie eine vorhandene Confluence-Seite.

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

Kommentare abrufen

Rufen Sie Kommentare für eine bestimmte Confluence-Seite ab. „Format“ bezieht sich auf das Rückgabeformat des Inhalts und kann text oder markdown sein.

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

Kommentar hinzufügen

Fügen Sie einer Confluence-Seite einen Kommentar hinzu. Die parentId ist für Thread-Antworten optional.

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

Anhänge abrufen

Rufen Sie Anhänge für eine bestimmte Confluence-Seite ab.

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

Anhang hinzufügen

Fügen Sie einer Confluence-Seite einen Anhang hinzu. Der fileContentBase64 sollte die Base64-codierte Zeichenfolge des Dateiinhalts sein.

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

LIZENZ

Dieses Projekt ist unter der MIT-Lizenz lizenziert – Einzelheiten finden Sie in der Datei LICENCE .

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Ein Model Context Protocol-Server, der KI-Assistenten die Interaktion mit Confluence-Inhalten ermöglicht und Vorgänge wie das Abrufen, Suchen, Erstellen und Aktualisieren von Seiten und Bereichen unterstützt.

  1. Merkmale
    1. Voraussetzungen
      1. Installation
        1. Konfiguration
          1. Claude Desktop / Cline-Konfiguration
        2. Entwicklung
          1. Verfügbare Tools
            1. Seite abrufen
            2. Suchseiten
            3. get_spaces
            4. Seite erstellen
            5. Seite aktualisieren
            6. Kommentare abrufen
            7. Kommentar hinzufügen
            8. Anhänge abrufen
            9. Anhang hinzufügen
          2. LIZENZ

            Related MCP Servers

            • A
              security
              F
              license
              A
              quality
              Enables AI assistants to interact with Confluence Cloud for managing spaces, pages, and content via the Model Context Protocol (MCP).
              Last updated -
              11
              13
              TypeScript
            • -
              security
              F
              license
              -
              quality
              A Model Context Protocol server that connects AI assistants like Claude to Notion workspaces, enabling them to view, search, create, and update Notion databases, pages, and content blocks.
              Last updated -
              275
              JavaScript
              • Apple
            • A
              security
              A
              license
              A
              quality
              A Model Context Protocol server that enables AI assistants like Claude to interact with Outline document services, supporting document searching, reading, creation, editing, and comment management.
              Last updated -
              25
              1
              Python
              MIT License
            • A
              security
              F
              license
              A
              quality
              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.
              Last updated -
              5
              1,092
              5
              TypeScript
              • Apple

            View all related MCP servers

            ID: hcc8z46c21