Back to skills
SkillHub ClubAnalyze Data & AIFull StackBackendData / AI

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.

Packaged view

This page reorganizes the original catalog entry around fit, installability, and workflow context first. The original raw source lives below.

Stars
12
Hot score
85
Updated
March 20, 2026
Overall rating
C2.1
Composite score
2.1
Best-practice grade
C56.0

Install command

npx @skill-hub/cli install paoloricciuti-mcp-add-mcp-add

Repository

paoloricciuti/mcp-add

Skill path: skills/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.

Open repository

Best for

Primary workflow: Analyze Data & AI.

Technical facets: Full Stack, Backend, Data / AI, Integration.

Target audience: everyone.

License: Unknown.

Original source

Catalog source: SkillHub Club.

Repository owner: paoloricciuti.

This is still a mirrored public skill entry. Review the repository before installing into production workflows.

What it helps with

  • Install mcp-add into Claude Code, Codex CLI, Gemini CLI, or OpenCode workflows
  • Review https://github.com/paoloricciuti/mcp-add before adding mcp-add to shared team environments
  • Use mcp-add for development workflows

Works across

Claude CodeCodex CLIGemini CLIOpenCode

Favorites: 0.

Sub-skills: 0.

Aggregator: No.

Original source / Raw SKILL.md

---
name: mcp-add
description: 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.
---

# mcp-add

Add MCP servers to AI coding clients without installation.

## Command

```bash
npx mcp-add [flags]
```

Run without flags for interactive mode, or provide all required flags for non-interactive mode.

## Flags

| Flag | Description |
|------|-------------|
| `--name, -n` | Server name (identifier in config) |
| `--type, -t` | Server type: `stdio`, `http`, or `sse` |
| `--command, -c` | Command to run (stdio only), e.g., `"npx -y @modelcontextprotocol/server-filesystem"` |
| `--url, -u` | Server URL (http/sse only) |
| `--args, -a` | Arguments for stdio command (can repeat) |
| `--env, -e` | Environment variables as `KEY=value` (can repeat) |
| `--headers, -H` | HTTP headers as `Key: value` (can repeat, http/sse only) |
| `--scope, -s` | Config scope: `global` or `project` |
| `--clients` | 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):**
```bash
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:**
```bash
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:**
```bash
npx mcp-add --name my-server --type sse \
  --url "http://localhost:3000/sse" \
  --scope global --clients "claude code"
```

**With environment variables:**
```bash
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):**
```bash
npx mcp-add
```

## Notes

- Project scope creates config in `.cursor/`, `.vscode/`, etc. in current directory
- 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