克劳德代码MCP命令生成器
用于在Claude Code中安装MCP服务器的自然语言接口,以及为AI代理生成有效MCP命令提供上下文数据和参考资料。
🚀 快速入门 - claudemcp CLI 工具
使用自然语言安装MCP服务器:
# Install the tool
./install.sh
# Use natural language to install MCP servers
claudemcp "install notion"
claudemcp "add github integration"
claudemcp --execute "I need stripe for payments"
claudemcp -e "connect to postgres database at localhost"这个 claudemcp 该工具利用此仓库中的上下文数据,结合Claude AI来生成有效内容 claude mcp add 根据你的自然语言描述生成命令。
仓库结构
Claude-Code-MCP-Command-Generator/
├── claudemcp # CLI tool for natural language MCP installation
├── install.sh # Installation script
├── context-data/ # Structured reference materials for AI agents
│ ├── README.md # Guide to using the context files
│ ├── ai-reference.md # Core command syntax and rules
│ ├── server-catalog.md # Complete catalog of MCP servers
│ └── command-examples.md # Practical usage patterns
└── reference.md # Original full documentation (for humans)使用 claudemcp 工具
安装
# Clone this repository
git clone https://github.com/yourusername/Claude-Code-MCP-Command-Generator.git
cd Claude-Code-MCP-Command-Generator
# Run the installer
./install.sh这安装了 claudemcp 到;向;朝 ~/.local/bin (或无论在哪里 $INSTALL_DIR (积分)。
要求
- Claude 命令行界面(CLI)代码 必须安装并在您的 PATH 中可用
- Bash shell(巴什壳层)
使用
claudemcp [OPTIONS] ""
OPTIONS:
-e, --execute Execute the generated command immediately
-s, --scope SCOPE Specify scope: local, project, or user (default: local)
-h, --help Show help message示例
# Generate command (shows command without executing)
claudemcp "install notion"
# Output: claude mcp add --transport http notion https://mcp.notion.com/mcp
# Generate and execute immediately
claudemcp --execute "add github integration"
# With specific scope
claudemcp --scope project "add sentry for error monitoring"
# Complex database connection
claudemcp -e "connect to postgres at prod.db.com port 5432 database analytics"
# API-based services
claudemcp "install airtable with my api key"
# Output: claude mcp add --transport stdio airtable --env AIRTABLE_API_KEY=YOUR_KEY -- npx -y airtable-mcp-server它是如何运作的
- 你用自然语言描述你想要的MCP服务器
claudemcp将您的请求和上下文数据输入到Claude CLI中- 克劳德生成了适当的(内容/答案/等,具体根据上下文确定)
claude mcp add使用正确语法的命令 - 该命令被显示(并且可选择性地执行)
该工具利用此存储库中经过整理的上下文数据,以确保Claude能够理解:
- 不同传输类型的正确命令语法
- 可用的MCP服务器及其URL
- 认证要求
- 针对特定平台的考量
AI代理快速入门
生成有效的Claude Code MCP命令:
- 理解语法阅读
context-data/ai-reference.md用于指挥结构 - 查找服务器查看服务器详细信息
context-data/server-catalog.md - 查看示例参考
context-data/command-examples.md用于图案
里面有什么
context-data/ai-reference.md (5 千字节)
简洁的参考手册,包含:
- 所有传输类型(HTTP、SSE、Stdio)的命令结构
- 管理命令
- 配置范围和优先级
- 认证类型
- 环境变量
- 平台特定说明
- 人工智能代理的指令生成规则
context-data/server-catalog.md (8 千字节)
按类别整理的完整目录:
- 开发与测试工具(Sentry、Socket、Hugging Face、Jam)
- 项目管理(使用Asana、Atlassian、Linear、Notion等工具)
- 数据库(Airtable、Daloopa、HubSpot)
- 支付与商务(PayPal、Plaid、Square、Stripe)
- 设计与媒体(Figma、Cloudinary、Invideo、Canva)
- 基础设施与DevOps(Cloudflare、Netlify、Vercel)
- 自动化与集成(Workato、Zapier)
每条记录包含URL、传输类型、认证方法以及可直接使用的命令。
context-data/command-examples.md (12 千字节)
实际例子包括:
- 基本命令模板
- 作用域使用示例
- 身份验证工作流程
- 实际应用案例
- 特定平台的示例
- 故障排除示例
reference.md (40 千字节)
来自Claude Code文档的原始综合文档。包含完整的源代码材料,包括React组件及详细解释。可用于人工阅读或深入参考。
命令结构快速参考
# HTTP Server (Recommended)
claude mcp add --transport http
# SSE Server (Deprecated)
claude mcp add --transport sse
# Stdio Server (Local)
claude mcp add --transport stdio [--env KEY=value] -- [args...]常见用例
添加一个远程OAuth服务器
claude mcp add --transport http notion https://mcp.notion.com/mcp
# Then authenticate in Claude Code with: /mcp添加一个带有API密钥的本地服务器
claude mcp add --transport stdio airtable --env AIRTABLE_API_KEY=YOUR_KEY -- npx -y airtable-mcp-server添加数据库连接
claude mcp add --transport stdio db -- npx -y @bytebase/dbhub --dsn "postgresql://user:pass@host:5432/database"文件大小
总上下文数据: 约25千字节 (针对AI代理解析进行优化)
ai-reference.md约5千字节server-catalog.md约8千字节command-examples.md约12千字节reference.md约40 KB(原始完整文档)
目的
此仓库提供了结构化、分块的上下文数据,经过优化,适用于人工智能代理以:
- 准确解析命令语法
- 生成有效的MCP命令
- 快速查看服务器详情
- 参考使用模式
- 验证命令结构
来源
源自官方Claude Code MCP文档,网址:https://docs.claude.com/en/docs/claude-code/mcp
许可证
文档内容遵循Claude代码文档的许可协议。
