opencode-cli-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@opencode-cli-mcprun agent to analyze the current project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
opencode-cli-mcp
MCP server that wraps opencode CLI's HTTP API (opencode serve) into MCP tools, plus a SOTA fleet webapp dashboard.
Architecture
Clients (MCP hosts) → opencode-cli-mcp (FastMCP 3.2)
↕ HTTP
opencode serve (port 4096)MCP Server (stdio): Exposes 9 tools for agent run, session management, and server status
FastAPI Bridge (port 10951): REST API for the webapp + capability introspection
Vite Webapp (port 10950): SOTA fleet-standard dashboard
Prerequisites
opencode —
npm i -g opencode-aiPython 3.12+ with
uvNode.js 18+ with npm
Quick Start
.\start.ps1This starts opencode serve, the API backend, and the webapp frontend.
Or run individually:
uv run -m opencode_cli_mcp.server # MCP server (stdio)
uv run -m api.main # API backend (port 10951)
cd web_sota && npm run dev # Frontend (port 10950)MCP Tools
Tool | Description |
| Run an agent non-interactively with a prompt |
| List all active/recent sessions |
| Get detailed session info |
| Export session as JSON |
| Send message to a running session |
| Retrieve session transcript |
| Check server health and status |
| List configured LLM providers |
| Get current project context |
Ports
Port | Service |
10950 | Frontend (Vite) |
10951 | Backend (FastAPI) |
4096 | opencode serve |
License
MIT
This server cannot be installed
Maintenance
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sandraschi/opencode-cli-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server