Awesome-omni-skill mcp-add
Add MCP (Model Context Protocol) servers to AI coding clients using npx. Use when the user wants to configure, add, or set up an MCP server for Claude Code, Claude Desktop, Cursor, VS Code, Windsurf, Continue, Goose, Codex, OpenCode, Gemini CLI, or Copilot CLI.
install
source · Clone the upstream repo
git clone https://github.com/diegosouzapw/awesome-omni-skill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/tools/mcp-add" ~/.claude/skills/diegosouzapw-awesome-omni-skill-mcp-add && rm -rf "$T"
manifest:
skills/tools/mcp-add/SKILL.mdsource content
mcp-add
Add MCP servers to AI coding clients without installation.
Command
npx mcp-add [flags]
Run without flags for interactive mode, or provide all required flags for non-interactive mode.
Flags
| Flag | Description |
|---|---|
| Server name (identifier in config) |
| Server type: , , or |
| Command to run (stdio only), e.g., |
| Server URL (http/sse only) |
| Arguments for stdio command (can repeat) |
| Environment variables as (can repeat) |
| HTTP headers as (can repeat, http/sse only) |
| Config scope: or |
| Target clients (comma-separated or repeated) |
Supported Clients
claude desktop claude code copilot cli cursor continue windsurf opencode vscode goose codex gemini
Note: Client names with spaces must be quoted:
--clients "claude code"
Examples
Stdio server (filesystem access):
npx mcp-add --name filesystem --type stdio \ --command "npx -y @modelcontextprotocol/server-filesystem /path/to/dir" \ --scope global --clients "claude code"
Stdio server with separate args:
npx mcp-add --name sqlite --type stdio \ --command "npx -y @anthropic/mcp-server-sqlite" \ --args "--db" --args "/path/to/db.sqlite" \ --scope project --clients cursor,vscode
Remote SSE server:
npx mcp-add --name my-server --type sse \ --url "http://localhost:3000/sse" \ --scope global --clients "claude code"
With environment variables:
npx mcp-add --name github --type stdio \ --command "npx -y @modelcontextprotocol/server-github" \ --env "GITHUB_TOKEN=ghp_xxx" \ --scope global --clients "claude code"
Interactive mode (prompts for all options):
npx mcp-add
Notes
- Project scope creates config in
,.cursor/
, etc. in current directory.vscode/ - Global scope uses platform-specific config locations
- Claude Desktop only supports global scope
- Command strings are split by whitespace; first part becomes command, rest becomes args