# MCP config converter

> Write one MCP server definition and get the exact command or config entry for 16 coding agents, from Claude Code's claude mcp add to OpenCode's opencode.json and Goose's config.yaml.

_Updated November 23, 2026 · Checked against EnvHaven v1.9.0_

Every agent stores MCP servers its own way: some add them with a command, others read a JSON, TOML or YAML file, and the key names differ. The converter above writes the same server for all of them. Here is the same filesystem server for each agent, as a reference:

| Agent | How it adds a server |
| --- | --- |
| [Claude Code](https://envhaven.com/agents/claude-code) | `claude mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem /config/workspace` |
| [Codex](https://envhaven.com/agents/codex) | `codex mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem /config/workspace` |
| [OpenCode](https://envhaven.com/agents/opencode) | Config file `opencode.json` |
| [Antigravity CLI](https://envhaven.com/agents/antigravity-cli) | `agy mcp add filesystem npx -y @modelcontextprotocol/server-filesystem /config/workspace` |
| [Grok Build](https://envhaven.com/agents/grok-build) | `grok mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem /config/workspace` |
| [Kimi Code CLI](https://envhaven.com/agents/kimi-code-cli) | Config file `~/.kimi-code/mcp.json` |
| [Muse Code](https://envhaven.com/agents/muse-code) | Config file `~/.config/muse/settings.json` |
| [OpenClaw](https://envhaven.com/agents/openclaw) | `openclaw mcp add filesystem --command npx --arg -y --arg @modelcontextprotocol/server-filesystem --arg /config/workspace` |
| [Hermes Agent](https://envhaven.com/agents/hermes-agent) | `hermes mcp add filesystem --command npx --args -y @modelcontextprotocol/server-filesystem /config/workspace` |
| [Pi](https://envhaven.com/agents/pi) | Built-in MCP arrived in Pi 0.99.0; the 0.87.1 build in EnvHaven 1.9.0 extends through packages installed with `pi install <source>` instead. |
| [Goose](https://envhaven.com/agents/goose) | Config file `~/.config/goose/config.yaml` |
| [Qwen Code](https://envhaven.com/agents/qwen-code) | Config file `~/.qwen/settings.json` |
| [Mistral Vibe](https://envhaven.com/agents/mistral-vibe) | `vibe mcp add filesystem --transport stdio --command npx --arg=-y --arg=@modelcontextprotocol/server-filesystem --arg=/config/workspace` |
| [Factory Droid](https://envhaven.com/agents/factory-droid) | `droid mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem /config/workspace` |
| [Kiro](https://envhaven.com/agents/kiro) | `kiro-cli mcp add --name filesystem --command npx --args '["-y","@modelcontextprotocol/server-filesystem","/config/workspace"]'` |
| [Amp](https://envhaven.com/agents/amp) | `amp mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem /config/workspace` |
| [fx](https://envhaven.com/agents/fx) | `fx mcp add filesystem npx -y @modelcontextprotocol/server-filesystem /config/workspace` |

Commands follow each agent's own `mcp add --help` in the build EnvHaven ships, and were run against those binaries with a Docker-based server, whose arguments start with dashes: the place where agents differ most. Qwen Code gets a config entry because its `mcp add` reads such arguments as its own options. Config files follow the vendors' documentation. Nothing you type in the converter leaves your browser.

## Keep reading

- [Model Context Protocol](https://envhaven.com/glossary/mcp)
- [MCP server](https://envhaven.com/glossary/mcp-server)
- [Every coding agent](https://envhaven.com/agents)

Source: https://envhaven.com/mcp-config
