MCP server for opencode that queries GitHub Copilot models via a persistent opencode server, requiring no API keys.
SaferSkills independently audited mcp-opencode (MCP Server) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
<div align="center">
MCP server for opencode — query github-copilot models via a persistent opencode server.
<a href="https://kud.io/projects/mcp-opencode">Website</a> · <a href="https://kud.io/projects/mcp-opencode/docs">Documentation</a>
</div>
MCP_OPENCODE_MODEL_ALLOW and MCP_OPENCODE_MODEL_BLOCK environment variables using glob-style patterns.query call creates and destroys a dedicated opencode session, preventing state leakage between calls.npm install -g @kud/mcp-opencodeRequires opencode installed with at least one provider configured, and Node.js ≥ 20.
Add the server to your MCP client configuration:
{
"mcpServers": {
"opencode": {
"command": "npx",
"args": ["-y", "@kud/mcp-opencode"]
}
}
}To restrict which models are available, pass environment variables:
{
"mcpServers": {
"opencode": {
"command": "npx",
"args": ["-y", "@kud/mcp-opencode"],
"env": {
"MCP_OPENCODE_MODEL_ALLOW": "github-copilot/*",
"MCP_OPENCODE_MODEL_BLOCK": "github-copilot/gpt-4o-mini"
}
}
}
}| Tool | Description |
|---|---|
query | Send a prompt to an opencode model. Accepts prompt (required) and model (optional, default: github-copilot/gpt-4.1). |
list_models | List models available through the running opencode server. Accepts an optional provider filter (e.g. anthropic). |
git clone https://github.com/kud/mcp-opencode.git
cd mcp-opencode
npm install
npm run build
npm testUse the local .mcp.json to connect Claude Code to your dev build, or npm run inspect to open the MCP Inspector against the compiled output.
| Script | Purpose |
|---|---|
npm run dev | Run from source via tsx |
npm run build | Compile TypeScript to dist/ |
npm test | Run the Vitest test suite |
npm run inspect | Open MCP Inspector against the built server |
📚 Full documentation → [mcp-opencode/docs](https://kud.io/projects/mcp-opencode/docs)
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.