opencode-mcp / setup / vscode
Setup guide
Set up opencode-mcp in VS Code
communitystdiodestructive capable
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.
01Configuration
{
"mcpServers": {
"opencode-mcp": {
"command": "npx",
"args": [
"-y",
"opencode-mcp"
]
}
}
}
Add this to .vscode/mcp.json. Generated from the captured install method (npx); the mcpServers shape is shared across Claude Desktop, Cursor, Windsurf, Cline, and VS Code.
02Steps
- Make sure VS Code is installed and up to date.
- Open
.vscode/mcp.jsonand add the block above (merge into any existingmcpServers). - Provide any required API keys/credentials as environment variables.
- Restart VS Code and confirm opencode-mcp’s tools appear.
03Other runtimes
04Provenance
config_sourcegenerated from captured install method
last_checked2026-07-09 08:37Z
sourcesGitHub repo search [p4]
Next step
Want agents that act within guardrails? Apex is the live governed-agent product — paced, capped, and fully-logged actions with approvals before anything runs.
Explore Apex →See also: server page · is it safe? · alternatives