neondatabase/add-mcp
The open MCP config tool - npx add-mcp
Add MCP servers to your favorite coding agents with a single command.
Supports Claude Code, Codex, Cursor, OpenCode, VSCode and 9 more.
npx add-mcp url | package name [options]Example installing the Context7 MCP server:
npx add-mcp https://mcp.context7.com/mcp# Remote MCP server (streamable HTTP)
npx add-mcp https://mcp.example.com/mcp
# Remote MCP server (SSE transport)
npx add-mcp https://mcp.example.com/sse --transport sse
# Remote MCP server with auth header
npx add-mcp https://mcp.example.com/mcp --header "Authorization: Bearer $TOKEN"
# npm package (runs via npx)
npx add-mcp @modelcontextprotocol/server-postgres
# Non-interactive installation to all detected agents in the project directory
npx add-mcp https://mcp.example.com/mcp -y
# Non-interactive installation to the global Claude Code config
npx add-mcp https://mcp.example.com/mcp -g -a claude-code -y
# Full command with arguments
npx add-mcp "npx -y @org/mcp-server --flag value"
# Node.js script
npx add-mcp "node /path/to/server.js --port 3000"
# Install for Cursor and Claude Code
npx add-mcp https://mcp.example.com/mcp -a cursor -a claude-code
# Install with custom server name
npx add-mcp @modelcontextprotocol/server-postgres --name postgres
# Install to all supported agents
npx add-mcp mcp-server-github --all
# Install to all agents, globally, without prompts
npx add-mcp mcp-server-github --all -g -y
# Add generated config files to .gitignore
npx add-mcp https://mcp.example.com/mcp -a cursor -y --gitignore| Option | Description | | ------------------------ | ------------------------------------------------------------------------ | | -g, --global | Install to user directory instead of project | | -a, --agent <agent> |
Loading reviews...