ZC

zereight/confluence-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

30 stars 8 forks 质量 72 趋势 19

Jira,维基MCP

概览

该服务器实现了用于 Confluence 集成的模型上下文协议(MCP)。它提供执行 CQL 查询和从 Confluence 检索页面内容的功能。 该服务器遵循MCP客户端-服务器架构: - 作为MCP服务器提供Confluence功能- 作为数据源连接到Confluence- 通过标准化协议与MCP客户端通信 使用Claude应用时,你需要直接设置API密钥和URL。 通过Smithery自动安装Claude Desktop的Confluence通信服务器: 使用光标时,你可以设置环境变量并运行服务器,方法如下: - CONFLUENCE_API_MAIL:你在Confluence API上的电子邮件地址。- CONFLUENCE_API_KEY:你的Confluence API密钥。- CONFLUENCE_URL:你的Confluence网址。- JIRA_URL:你的JIRA网址。

概述(AI 翻译)

概述

该服务器实现了用于 Confluence 集成的模型上下文协议(MCP)。 本版本修复并修复了现有Confluence服务器中的漏洞,提供更稳定可靠的体验。 它提供执行CQL查询和从Confluence检索页面内容的功能。

该服务器遵循MCP客户端-服务器架构:

  • 作为MCP服务器提供Confluence功能
  • 作为数据源连接到 Confluence
  • 通过标准化协议与MCP客户端通信

如何使用

使用 Claude 应用、Cline、Roo Code

使用Claude应用时,你需要直接设置API密钥和URL。

使用光标

通过Smithery安装

通过Smithery自动安装Claude Desktop的Confluence通信服务器:

使用光标时,你可以设置环境变量并运行服务器,方法如下:

  • CONFLUENCE_API_MAIL:你的 Confluence API 电子邮件地址。
  • CONFLUENCE_API_KEY:您的 Confluence API 密钥。
  • CONFLUENCE_URL:您的 Confluence URL。
  • JIRA_URL:您的JIRA网址。
  • CONFLUENCE_IS_CLOUD:确定Confluence版本(云或服务器)

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Better Confluence Communication Server

Overview

This server implements the Model Context Protocol (MCP) for Confluence integration. This version addresses and fixes bugs found in the existing Confluence server, providing a more stable and reliable experience. It provides functionalities to execute CQL queries and retrieve page content from Confluence.

This server follows the MCP client-server architecture:

  • Acts as an MCP server providing Confluence functionalities
  • Connects to Confluence as a data source
  • Communicates with MCP clients through a standardized protocol

How to use

Using with Claude App, Cline, Roo Code

When using with the Claude App, you need to set up your API key and URLs directly.

{
  "mcpServers": {
    "Confluence communication server": {
      "command": "npx",
      "args": ["-y", "@zereight/mcp-confluence"],
      "env": {
        "CONFLUENCE_URL": "https://XXXXXXXX.atlassian.net",
        "JIRA_URL": "https://XXXXXXXX.atlassian.net",
        "CONFLUENCE_API_MAIL": "Your email",
        "CONFLUENCE_API_KEY": "KEY_FROM: https://id.atlassian.com/manage-profile/security/api-tokens",
        "CONFLUENCE_IS_CLOUD": "true" // Set to "false" for Server/Data Center
      }
    }
  }
}

Using with Cursor

Installing via Smithery

To install Confluence communication server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @zereight/confluence-mcp --client claude

When using with Cursor, you can set up environment variables and run the server as follows:

env [email protected] CONFLUENCE_API_KEY=your-key CONFLUENCE_URL=your-confluence-url JIRA_URL=your-jira-url CONFLUENCE_IS_CLOUD=true npx -y @zereight/mcp-confluence
  • CONFLUENCE_API_MAIL: Your email address for the Confluence API.
  • CONFLUENCE_API_KEY: Your Confluence API key.
  • CONFLUENCE_URL: Your Confluence URL.
  • JIRA_URL: Your JIRA URL.
  • CONFLUENCE_IS_CLOUD: Determines Confluence version (Cloud or Server)
    • Default: true (Cloud version)
    • Set to ‘false’ explicitly for Server/Data Center version
    • Affects API endpoint paths:
      • Cloud: /wiki/rest/api
      • Server: /rest/api

Confluence Tools

  • execute_cql_search: Executes a CQL query on Confluence to search pages.

    • Description: Executes a CQL query on the Confluence instance to search for pages.
    • Input Schema:
      {
        "type": "object",
        "properties": {
          "cql": {
            "type": "string",
            "description": "CQL query string"
          },
          "limit": {
            "type": "integer",
在 GitHub 查看完整 README

安装

npx -y @zereight/mcp-confluence
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "Confluence communication server": { "command": "npx", "args": ["-y", "@zereight/mcp-confluence"], "env": { "CONFLUENCE_URL": "https://XXXXXXXX.atlassian.net", "JIRA_URL": "https://XXXXXXXX.atlassian.net", "CONFLUENCE_API_MAIL": "Your email", "CONFLUENCE_API_KEY": "KEY_FROM: https://id.atlassian.com/manage-profile/security/api-tokens", "CONFLUENCE_IS_CLOUD": "true" // Set to "false" for Server/Data Center } } } }