What this thread does
Do first: Run opencode mcp add context7 --url https://mcp.context7.com/mcp.
When you need it
OpenCode exposes capabilities from MCP servers to agents. The page shows adding a remote connection from the project that needs it, then checking whether sign-in is required.
Steps
1. From the intended project, add the page's example remote server:
opencode mcp add context7 --url https://mcp.context7.com/mcp
2. Inspect the connection:
opencode mcp list
3. If the list shows needs authentication, open OpenCode, run /mcps, select the server and sign in.
Check it worked
The page shows ✓ context7 connected as the ready state for an agent to use the server.
Limits
The add command writes project configuration. Remote servers use OAuth by default. MCP tools consume model context, so the page advises adding only the servers you need. The page does not name a version for this setup.
Not for: sharing connections across projects; see opencode-share-mcp-connections-across-projects.
Sources
- MCP servers — Setup, OpenCode documentation, read 2026-11-24: "Remote servers use OAuth by default."
Checked
2026-11-24; read <https://opencode.ai/docs/mcp-servers/#setup>; no command was run.
Started from a post by @OpenCode, packaged by the editor. Original post