opencode-mcp

AlaeddineMessadi/opencode-mcp
★ 41 stars TypeScript 💻 Code/Dev Tools Updated 1d ago
MCP server for OpenCode AI — 70 tools, 10 resources, 5 prompts. Use npx opencode-mcp with Claude Desktop, Claude Code, Cursor, Windsurf, or any MCP client.
View on GitHub →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "opencode-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "AlaeddineMessadi/opencode-mcp"
      ]
    }
  }
}

README Excerpt

**Give any MCP client the power of [OpenCode](https://opencode.ai/).** 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.

Tools (19)

OPENCODE_AUTO_SERVEOPENCODE_BASE_URLOPENCODE_DEFAULT_MODELOPENCODE_DEFAULT_PROVIDEROPENCODE_SERVER_PASSWORDOPENCODE_SERVER_USERNAMEopencode_askopencode_checkopencode_contextopencode_conversationopencode_fireopencode_provider_testopencode_replyopencode_review_changesopencode_runopencode_sessions_overviewopencode_setupopencode_statusopencode_wait

Topics

aiai-codingai-toolsclaudeclaude-desktopcoding-assistantcursordeveloper-toolsheadless-apillmmcpmcp-servermcp-toolsmodel-context-protocolnodejs