MCP Server for Confluence Integration

MCP Server for Confluence Integration

enjoyzl

Developer Tools
Visit Server

README

MCP Server for Confluence Integration

这是一个基于 Model Context Protocol (MCP) 的 Confluence 集成服务器,用于在 Cursor IDE 中提供 Confluence 内容访问功能。

功能特点

  • 支持访问 Confluence 空间、页面和内容
  • 提供搜索功能
  • 支持内容预览
  • 基于 MCP 协议的标准实现

系统要求

  • Node.js 18+
  • TypeScript 5.3+
  • Confluence 实例(自托管或云版本)

安装

  1. 克隆仓库:
git clone https://github.com/your-username/mcp-server-confluence-ts.git
cd mcp-server-confluence-ts
  1. 安装依赖:
npm install
  1. 配置环境变量:
cp .env.example .env
# 编辑 .env 文件,填写您的 Confluence 配置

配置

.env 文件中配置以下环境变量:

CONFLUENCE_URL=https://your-confluence-instance.atlassian.net
CONFLUENCE_USERNAME=your-username
CONFLUENCE_PASSWORD=your-api-token

使用方法

开发模式

npm run dev

生产模式

  1. 构建项目:
npm run build
  1. 运行服务器:
npm start

Docker 部署

  1. 构建镜像:
docker build -t mcp-server-confluence-ts .
  1. 运行容器:
docker run -d --name mcp-server \
  -e CONFLUENCE_URL=https://your-confluence-instance.atlassian.net \
  -e CONFLUENCE_USERNAME=your-username \
  -e CONFLUENCE_PASSWORD=your-api-token \
  mcp-server-confluence-ts

API 文档

可用工具

  1. getSpace(spaceKey: string)

    • 获取指定空间的信息
  2. searchContent(query: string, spaceKey?: string)

    • 搜索内容
    • 可选参数:spaceKey(限制搜索范围)
  3. getPageContent(pageId: string)

    • 获取指定页面的内容

可用资源

  • confluence://{spaceKey}
    • 访问指定空间的内容

开发指南

项目结构

src/
  ├── index.ts          # 主入口文件
  ├── config.ts         # 配置管理
  ├── confluence-client.ts  # Confluence API 客户端
  └── cursor-integration.ts # Cursor IDE 集成

添加新功能

  1. confluence-client.ts 中添加新的 API 方法
  2. index.ts 中注册新的工具或资源
  3. 更新 README.md 文档

许可证

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
MCP Package Docs Server

MCP Package Docs Server

Facilitates LLMs to efficiently access and fetch structured documentation for packages in Go, Python, and NPM, enhancing software development with multi-language support and performance optimization.

Featured
Local
TypeScript
Claude Code MCP

Claude Code MCP

An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.

Featured
Local
JavaScript
@kazuph/mcp-taskmanager

@kazuph/mcp-taskmanager

Model Context Protocol server for Task Management. This allows Claude Desktop (or any MCP client) to manage and execute tasks in a queue-based system.

Featured
Local
JavaScript
Linear MCP Server

Linear MCP Server

Enables interaction with Linear's API for managing issues, teams, and projects programmatically through the Model Context Protocol.

Featured
JavaScript
mermaid-mcp-server

mermaid-mcp-server

A Model Context Protocol (MCP) server that converts Mermaid diagrams to PNG images.

Featured
JavaScript
Jira-Context-MCP

Jira-Context-MCP

MCP server to provide Jira Tickets information to AI coding agents like Cursor

Featured
TypeScript
Linear MCP Server

Linear MCP Server

A Model Context Protocol server that integrates with Linear's issue tracking system, allowing LLMs to create, update, search, and comment on Linear issues through natural language interactions.

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