MCP Server for Confluence Integration
enjoyzl
README
MCP Server for Confluence Integration
这是一个基于 Model Context Protocol (MCP) 的 Confluence 集成服务器,用于在 Cursor IDE 中提供 Confluence 内容访问功能。
功能特点
- 支持访问 Confluence 空间、页面和内容
- 提供搜索功能
- 支持内容预览
- 基于 MCP 协议的标准实现
系统要求
- Node.js 18+
- TypeScript 5.3+
- Confluence 实例(自托管或云版本)
安装
- 克隆仓库:
git clone https://github.com/your-username/mcp-server-confluence-ts.git
cd mcp-server-confluence-ts
- 安装依赖:
npm install
- 配置环境变量:
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
生产模式
- 构建项目:
npm run build
- 运行服务器:
npm start
Docker 部署
- 构建镜像:
docker build -t mcp-server-confluence-ts .
- 运行容器:
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 文档
可用工具
-
getSpace(spaceKey: string)
- 获取指定空间的信息
-
searchContent(query: string, spaceKey?: string)
- 搜索内容
- 可选参数:spaceKey(限制搜索范围)
-
getPageContent(pageId: string)
- 获取指定页面的内容
可用资源
confluence://{spaceKey}
- 访问指定空间的内容
开发指南
项目结构
src/
├── index.ts # 主入口文件
├── config.ts # 配置管理
├── confluence-client.ts # Confluence API 客户端
└── cursor-integration.ts # Cursor IDE 集成
添加新功能
- 在
confluence-client.ts
中添加新的 API 方法 - 在
index.ts
中注册新的工具或资源 - 更新 README.md 文档
许可证
MIT
Recommended Servers
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.
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.
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.
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.
@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.
Linear MCP Server
Enables interaction with Linear's API for managing issues, teams, and projects programmatically through the Model Context Protocol.
mermaid-mcp-server
A Model Context Protocol (MCP) server that converts Mermaid diagrams to PNG images.
Jira-Context-MCP
MCP server to provide Jira Tickets information to AI coding agents like Cursor

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.

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.