npm package

add-mcp

Updated 2026-07-16 View source ↗

#37 of 203 by Downloads / week among npm packages

155.5k Downloads / week

Add MCP servers to your favorite coding agents with a single command.

About

Add MCP servers to your favorite coding agents with a single command.

Supports Claude Code, Codex, Cursor, OpenCode, VSCode and 10 more.

Install an MCP server by remote URL or package name:

Example installing the Context7 remote MCP server via the programmatic API — great for integrating add-mcp in your own CLI tool:

You can add env variables and arguments (stdio) and headers (remote) to the server config using the --env, --args and --header options. With ${VAR} placeholders, interactive installs prompt for each variable (omit skipped optional keys so empty strings are not written to config).

Find and install MCP servers from the add-mcp registry:

The first find/search run…

Excerpted from www.npmjs.com/package/add-mcp

Latest metrics

Downloads / week 155.5k 2026-07-16