neon-solutions/add-mcp
The open MCP config tool - npx add-mcp
What it solves
Coding agents like Claude Code, Cursor, and VS Code need MCP servers to access external tools, but each agent stores its config in a different file and format. Manually editing these configs is slow, error-prone, and hard to keep in sync across a team. add-mcp automates this by writing the correct config for each agent — project-wide or globally — with one command.
How it works
You run npx add-mcp with a URL or package name for the MCP server, and add-mcp detects which agents you have installed and writes the appropriate config file (for example, .cursor/mcp.json for Cursor, .claude.json for Claude Code). It picks the right transport (HTTP or SSE), handles environment variables and headers for local vs. remote servers, and even maps optional fields like timeouts or OAuth scopes to each agent's native syntax. You can also search the add-mcp registry with find, list installed servers, remove them, or sync settings across agents. It works interactively with prompts or fully automated with --yes.
Who it’s for
Developers who use more than one coding agent and want a single, repeatable way to set up MCP servers — both for personal use and to share consistent project configs with a team. It’s also handy for CLI tool developers who want to programmatically add MCP servers via the provided API.
Highlights
- Supports 25+ coding agents (Claude Code, Codex, Cursor, OpenCode, VS Code, Grok Build, and many more)
- Automatically detects installed agents and picks the right config file for each
- Smart handling of per-agent quirks, like shared files between Claude Code and GitHub Copilot CLI
- Capability-gated fields: only writes options (timeout, OAuth scopes, bearer token env) to agents that support them
- Commands for finding, listing, removing, and syncing MCP servers across agents
- Works with both remote servers (HTTP/SSE) and local npm packages or scripts
- Offers project-level (committed to your repo) and global installation modes
Related
- Project
- Project
- Project
- Project
- Project