If you already have MCP servers configured in Claude Code, GitHub Copilot CLI, VS Code, or another supported tool, you don’t need to re-enter every server by hand. MCPX can detect those existing config files, parse their server definitions, and import them straight intoDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/davidpastorvicente/mcpx-cli/llms.txt
Use this file to discover all available pages before exploring further.
.agents/mcp.json so you can manage everything from one place going forward.
Before you start
MCPX can detect and import from any of the following provider config files. Make sure you’re running from the correct project directory (or pass
--dir) so MCPX can find them.| Provider | Project config file | Global config file |
|---|---|---|
| Claude Code | .mcp.json | ~/.claude.json |
| Antigravity CLI | .gemini/config/mcp_config.json | ~/.gemini/config/mcp_config.json |
| Kimi CLI | .kimi-code/mcp.json | ~/.kimi-code/mcp.json |
| OpenAI Codex | .codex/config.toml | ~/.codex/config.toml |
| OpenCode | opencode.json | ~/.config/opencode/opencode.jsonc |
| GitHub Copilot CLI | .copilot/mcp-config.json | ~/.copilot/mcp-config.json |
| VS Code | .vscode/mcp.json | (project only) |
| IntelliJ IDEA | .idea/mcp.json | (project only) |
Import with the wizard
The easiest way to migrate is throughmcpx init, which runs detection automatically as part of setup.
MCPX scans the directory (and, for global scope, your home directory) for all known provider config files. It prints a summary of what it found, for example:
MCPX asks: Import these configurations? Answer Yes to import all detected servers automatically, or No to skip and configure servers manually.
If you answer Yes, MCPX merges every detected server into a single in-memory map. Servers with the same name from different providers are last-write-wins in detection order.
After import, the provider selection wizard lists all supported providers. Toggle each one you want MCPX to manage and press Enter to confirm.
Import from a specific provider directly
If you already have a.agents/mcp.json and want to pull in servers from one more provider — for example, you found an old .mcp.json in a project — use mcpx import and pass the provider name:
claude-code, antigravity-cli, kimi-cli, openai-codex, opencode, copilot-cli, vscode, intellij.
If you omit the provider name, MCPX detects all available configs and lets you choose interactively:
After import
Once the import is complete, verify everything looks right:mcpx sync or any mutation command. If the files contain secrets in env fields, consider adding them to .gitignore and letting each developer regenerate them locally.