11.3 热门 MCP 服务器
第 11 章 · 模型上下文协议 MCP 概述 · 第4部分:模型上下文协议 MCP
MCP 生态系统中有许多流行的服务器,可以扩展 Claude Code 的功能,让 AI 助手能够与各种工具和服务无缝集成。
开发工具#
GitHub#
功能: 代码托管和协作平台集成
安装:
bash复制claude mcp add --transport http github https://api.githubcopilot.com/mcp/
用途:
- 创建和管理 Pull Requests
- 查看和创建 Issues
- 代码搜索和审查
- 仓库管理
- 团队协作
示例:
bash复制审查 PR #456创建新问题:修复登录 bug 查看我的所有打开的 PR 搜索仓库中包含 "authentication" 的代码
GitLab#
功能: 代码托管和 CI/CD 平台集成
安装:
bash复制claude mcp add --transport http gitlab https://gitlab.com/api/mcp
用途:
- 管理 Merge Requests
- CI/CD 管道管理
- 项目管理
- 代码审查
- 自动化部署
VS Code#
功能: 代码编辑器集成
安装:
bash复制claude mcp add --transport stdio vscode -- npx -y @vscode/mcp-server
用途:
- 编辑器操作
- 文件管理
- 扩展管理
- 代码调试
- 工作区管理
数据库#
PostgreSQL#
功能: PostgreSQL 数据库查询和操作
安装:
bash复制claude mcp add --transport stdio postgres -- npx -y @bytebase/dbhub \--dsn "postgresql://user:pass@localhost:5432/db"
用途:
- 查询数据库
- 分析数据
- 生成报告
- 数据可视化
- 数据库管理
示例:
bash复制查询本月总收入 显示订单表结构 查找 90 天未购买的用户 分析用户购买行为
MySQL#
功能: MySQL 数据库查询和操作
安装:
bash复制claude mcp add --transport stdio mysql -- npx -y mysql-mcp-server \--connection-string "mysql://user:pass@localhost:3306/db"
用途:
- 查询 MySQL 数据库
- 数据分析
- 报表生成
- 数据导入导出
- 数据库维护
MongoDB#
功能: MongoDB 数据库操作
安装:
bash复制claude mcp add --transport stdio mongodb -- npx -y mongodb-mcp-server \ --connection-string "mongodb://localhost:27017/db"
用途:
- 查询 MongoDB
- 聚合操作
- 数据分析
- 文档管理
- 数据库备份
云服务#
AWS#
功能: AWS 云服务集成
安装:
bash复制claude mcp add --transport stdio aws -- npx -y @anthropic-aws/mcp-server \--env AWS_ACCESS_KEY_ID=your-key \--env AWS_SECRET_ACCESS_KEY=your-secret
用途:
- EC2 实例管理
- S3 存储桶操作
- Lambda 函数部署
- CloudWatch 监控
- IAM 权限管理
Google Cloud#
功能: Google Cloud 服务集成
安装:
bash复制claude mcp add --transport stdio gcp -- npx -y @anthropic-gcp/mcp-server \ --env GOOGLE_CREDENTIALS=path/to/credentials.json
用途:
- Compute Engine 管理
- Cloud Storage 操作
- BigQuery 数据分析
- Cloud Functions 部署
- Stackdriver 监控
Azure#
功能: Azure 云服务集成
安装:
bash复制claude mcp add --transport stdio azure -- npx -y @anthropic-azure/mcp-server \--env AZURE_SUBSCRIPTION_ID=your-id
用途:
- 虚拟机管理
- 存储操作
- 数据库管理
- Azure Functions 部署
- 监控和告警
监控和日志#
Sentry#
功能: 错误监控和性能追踪
安装:
bash复制claude mcp add --transport http sentry https://mcp.sentry.dev/mcp
用途:
- 查看错误
- 性能分析
- 问题追踪
- 错误分组
- 版本关联
示例:
bash复制过去 24 小时最常见的错误 显示错误 ID abc123 的堆栈跟踪 哪个部署引入了这些新错误 分析错误趋势
Datadog#
功能: 监控和分析平台集成
安装:
bash复制claude mcp add --transport http datadog https://mcp.datadoghq.com/mcp
用途:
- 指标监控
- 日志分析
- 告警管理
- 性能可视化
- APM 追踪
Prometheus#
功能: 指标收集和监控
安装:
bash复制claude mcp add --transport stdio prometheus -- npx -y prometheus-mcp-server \--url http://localhost:9090
用途:
- 查询指标
- 创建图表
- 监控系统
- 告警配置
- 数据导出
项目管理#
JIRA#
功能: 问题跟踪和项目管理
安装:
bash复制claude mcp add --transport http jira https://mcp.atlassian.com/jira \ --header "Authorization: Bearer your-token"
用途:
- 创建和管理问题
- 查看项目状态
- 生成报告
示例: 创建 JIRA 问题 ENG-4521 查看我的所有分配的任务 生成项目进度报告