经 AI Skill Hub 精选评估,OpenCode MCP服务器 获评「强烈推荐」。这款MCP工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 8.2 分,适合有一定技术背景的用户使用。
OpenCode MCP服务器 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
OpenCode MCP服务器 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/AlaeddineMessadi/opencode-mcp
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"opencode-mcp---": {
"command": "npx",
"args": ["-y", "opencode-mcp"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 OpenCode MCP服务器 执行以下任务... Claude: [自动调用 OpenCode MCP服务器 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"opencode_mcp___": {
"command": "npx",
"args": ["-y", "opencode-mcp"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
Give any MCP client the power of OpenCode.
opencode-mcp is an MCP server that bridges your AI tools (Claude, Cursor, Windsurf, VS Code, etc.) to OpenCode's headless API. It lets your AI delegate real coding work — building features, debugging, refactoring, running tests — to OpenCode sessions that autonomously read, write, and execute code in your project.
80 tools | 10 resources | 6 prompts | Multi-project | Auto-start
Prerequisite: OpenCode must be installed.curl -fsSL https://opencode.ai/install | bashornpm i -g opencode-aiorbrew install sst/tap/opencode
Claude Code:
claude mcp add opencode -- npx -y opencode-mcp
Claude Desktop / Cursor / Windsurf / Cline / Continue (add to your MCP config):
{
"mcpServers": {
"opencode": {
"command": "npx",
"args": ["-y", "opencode-mcp"]
}
}
}
That's it. Restart your client and OpenCode's tools will be available.
See Configuration for all client configs (VS Code Copilot, Zed, Amazon Q, etc.) and environment variables.
All optional. Only needed if you've changed defaults on the OpenCode server.
| Variable | Default | Description |
|---|---|---|
OPENCODE_BASE_URL | http://127.0.0.1:4096 | OpenCode server URL |
OPENCODE_SERVER_USERNAME | opencode | HTTP basic auth username |
OPENCODE_SERVER_PASSWORD | *(none)* | HTTP basic auth password (enables auth when set) |
OPENCODE_AUTO_SERVE | true | Auto-start an in-process OpenCode server (via @opencode-ai/sdk) if none is reachable at OPENCODE_BASE_URL |
OPENCODE_DEFAULT_PROVIDER | *(none)* | Default provider ID when not specified per-tool (e.g. anthropic) |
OPENCODE_DEFAULT_MODEL | *(none)* | Default model ID when not specified per-tool (e.g. claude-sonnet-4-5) |
| Tool | What it does |
|---|---|
opencode_setup | Check server health, providers, and project status. Use first. |
opencode_ask | Create session + send prompt + get answer. One call. |
opencode_reply | Follow-up message in an existing session |
opencode_run | Send a task and wait for completion (session + async send + polling) |
opencode_fire | Fire-and-forget: dispatch a task, return immediately |
opencode_check | Compact progress report for a running session (status, todos, files changed) |
opencode_conversation | Get formatted conversation history |
opencode_sessions_overview | Quick overview of all sessions |
opencode_context | Project + VCS + config + agents in one call |
opencode_review_changes | Formatted diff summary for a session |
opencode_wait | Poll an async session until it finishes |
opencode_provider_test | Quick-test whether a provider is working |
opencode_status | Health + providers + sessions + VCS dashboard |
质量工具集,70+工具提供丰富功能,TypeScript编写保证代码质量。MCP标准实现便于集成,适合Claude用户快速扩展能力。维护活跃度良好。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
AI Skill Hub 点评:OpenCode MCP服务器 的核心功能完整,质量优秀。对于Claude Desktop / Claude Code 用户来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | opencode-mcp |
| 原始描述 | 开源MCP工具:MCP server for OpenCode AI — 70 tools, 10 resources, 5 prompts. Use npx opencode。⭐41 · TypeScript |
| Topics | MCP服务器Claude插件AI编码工具开源工具集开发者工具 |
| GitHub | https://github.com/AlaeddineMessadi/opencode-mcp |
| License | MIT |
| 语言 | TypeScript |
收录时间:2026-05-20 · 更新时间:2026-05-30 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端