Answer: Add a local MCP server with a command after -- using `opencode mcp add everything -- npx -y @modelcontextprotocol/server-everything`, or configure it in opencode.jsonc with type "local" and a command array. Environment variables can be passed with repeated --env flags or set in the environment field. Status: Overdue (check was due 2026-11-20T13:36:56Z and has not succeeded) Entry: tool/opencode/integrations/local-mcp-server-config Revision: 1 Digest: sha256:fba57d23123acec1 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:57:45Z Last changed: 2026-11-13T03:57:45Z Last verified: 2026-11-19T13:36:56Z Next check: 2026-11-20T13:36:56Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of type | local | [1] | 2026-11-19 command | npx | [1] | 2026-11-19 cwd | . | [1] | 2026-11-19 environment variable | LOG_LEVEL | [1] | 2026-11-19 disabled default | false | [1] | 2026-11-19 codemode default | true | [1] | 2026-11-19 pool default | false | [1] | 2026-11-19 Sources: [1] opencode. "MCP servers | OpenCode". https://opencode.ai/docs/mcp-servers/ Role: primary. Accessed: 2026-11-19T13:36:56Z Quote: "Must be "local" ." (Supports: type) Quote: ""command" : [ "npx" , "-y" , "@modelcontextprotocol/server-everything" ]" (Supports: command) Quote: ""cwd" : "."" (Supports: cwd) Quote: ""LOG_LEVEL" : "info"" (Supports: environment variable) Quote: "Defaults to false ." (Supports: disabled default) Quote: "Defaults to true ." (Supports: codemode default) Quote: "Defaults to false . See Shared connections ." (Supports: pool default) Snapshot SHA-256: 90a3fadc05ab4be119cfe3e6f2ad64346a59744b6727f3aecaab10396e994cae (captured 2026-11-13T03:57:43Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:57:45Z, so the values verified then were kept. Cross-check: not-available at 2026-11-19T13:36:56Z. No independent second source is configured for this entry Last successful check: 2026-11-19T13:36:56Z Last attempt: 2026-11-19T13:36:56Z Notes and limitations: Extracted automatically from a single official source (section "Local"). Related: https://latestn.com/tool/opencode/integrations/mcp-oauth-authentication How do I authenticate an opencode MCP server that needs OAuth? https://latestn.com/tool/opencode/integrations/migrate-plugins-to-v2 How do I migrate opencode V1 plugins to the new V2 plugin API? https://latestn.com/tool/opencode/integrations/migrate-v1-plugin How do I migrate an existing OpenCode V1 plugin to V2? https://latestn.com/tool/opencode/integrations/implement-rpc How do I implement an RPC in an opencode plugin? https://latestn.com/tool/opencode/integrations/inference-api-endpoints Which API endpoints does the opencode Inference API support for OpenAI, Anthropic, and Gemini models? https://latestn.com/tool/opencode/integrations/load-plugin How do I load an opencode plugin? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:57:45Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/opencode/integrations/local-mcp-server-config/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/opencode/integrations/local-mcp-server-config POST: https://latestn.com/dispute/tool/opencode/integrations/local-mcp-server-config with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/opencode/integrations/local-mcp-server-config?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I configure a local MCP server in opencode? Revision 1, last verified 2026-11-19T13:36:56Z. https://latestn.com/tool/opencode/integrations/local-mcp-server-config (accessed 2026-11-21T09:53:40Z). @misc{LatestN_tool_opencode_integrations_local_mcp_server_config_r1, title = {How do I configure a local MCP server in opencode?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/opencode/integrations/local-mcp-server-config}}, note = {Revision 1; digest sha256:fba57d23123acec1; last verified 2026-11-19T13:36:56Z; accessed 2026-11-21T09:53:40Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/opencode/integrations/local-mcp-server-config