Skillquality 0.48

mcp-management

Search, install, configure, update, and remove MCP servers across coding agents (Claude Code, Cursor, VS Code, Claude Desktop, Gemini CLI, Codex, Goose, Zed, and more). Supports multi-agent installation via npx add-mcp, the official MCP registry, and direct config editing.

Price
free
Protocol
skill
Verified
no

What it does

MCP Server Management

IMPORTANT: After adding, removing, or updating MCP servers, inform the user to restart the affected agent for changes to take effect.

CRITICAL: Before removing any server, use AskUserQuestion to confirm with the user.

Quick Reference (Claude Code)

# Install
claude mcp add --transport http <name> <url>
claude mcp add --transport stdio <name> -- <command> [args...]
claude mcp add-json <name> '<json>'              # Full JSON config in one shot

# List/inspect
claude mcp list
claude mcp get <name>

# Remove (confirm with user first!)
claude mcp remove <name>

# OAuth login/logout (for OAuth-protected HTTP servers)
claude mcp login <name>
claude mcp logout <name>

Options must come BEFORE the server name. As of 2026-04, --transport http (Streamable HTTP) is recommended; sse is end-of-life.

Plugin MCP servers connect automatically at session start. Use /reload-plugins to re-init after enabling/disabling a plugin mid-session.

Multi-Agent Installation (npx add-mcp)

Install MCP servers to multiple coding agents at once using add-mcp:

# Remote server (HTTP)
npx add-mcp https://mcp.example.com/mcp

# npm package (stdio)
npx add-mcp @modelcontextprotocol/server-postgres

# Local command
npx add-mcp "npx -y @org/mcp-server --flag value"

# SSE transport
npx add-mcp https://mcp.example.com/sse --transport sse

Options

FlagDescription
-g, --globalInstall globally instead of project-level
-a, --agent <agent>Target specific agent(s), repeatable
-n, --name <name>Custom server name
-t, --transport <type>HTTP (default) or SSE
--header <header>Custom HTTP headers, repeatable
-y, --yesSkip confirmation prompts
--allInstall to all detected agents

Supported Agents

AgentCLI ArgumentSupports Project-Level
Claude Codeclaude-codeYes (.mcp.json)
Claude Desktopclaude-desktopNo (global only)
CursorcursorYes (.cursor/mcp.json)
VS CodevscodeYes (.vscode/mcp.json)
Gemini CLIgemini-cliYes (.gemini/settings.json)
CodexcodexYes (.codex/config.toml, trusted projects only)
GoosegooseNo (global only)
GitHub Copilot CLIgithub-copilot-cliYes (.vscode/mcp.json)
OpenCodeopencodeYes (opencode.json)
ZedzedYes (.zed/settings.json)

Examples

# Install to Claude Code and Cursor only
npx add-mcp -a claude-code -a cursor https://mcp.stripe.com

# Install npm package to all agents, globally
npx add-mcp -g --all @modelcontextprotocol/server-postgres

# Install with custom name and headers
npx add-mcp -n my-api --header "Authorization: Bearer TOKEN" https://api.example.com/mcp

# List available agents
npx add-mcp list-agents

See references/multi-agent.md for agent-specific config paths, formats, and transformations.

Searching for MCP Servers

When users ask to find or install an MCP server, see references/search.md for:

  • Official vendor server lookup (always try first)
  • MCP Registry API queries (fallback)
  • Known official servers table
  • User choice template format

Trust hierarchy: Official vendor > MCP reference servers > Verified partners > Community

Adding Servers (Claude Code)

With Environment Variables

The --env CLI flag is unreliable with special characters. Instead:

  1. Add server without env vars:

    claude mcp add --transport stdio <name> -- npx -y @package/mcp-server
    
  2. Edit config file to add env vars. See references/scopes.md for file locations.

Collect Configuration First

Before installing, check if the server needs API keys or tokens. Use AskUserQuestion to collect required values before running install commands.

Updating Servers

No direct update command exists. Options:

  1. Edit config directly (preferred for credential changes)
  2. Remove and re-add (confirm removal with user first)
  3. Use environment variables for credentials that change often

For OAuth servers (GitHub, Sentry): Run /mcp in Claude Code to re-authenticate.

Removing Servers

Always confirm with user via AskUserQuestion before removing.

claude mcp remove <server-name>

For project-scoped servers in .mcp.json, delete the entry from the file after user confirmation.

OpenCode-specific notes

For OpenCode (anomalyco/opencode v1.14.x):

  • Top-level key is mcp (not mcpServers); each server must declare type: "local" or type: "remote"
  • For local servers, command is a single array ["bin", "arg1", "arg2"] — there's no separate args field
  • Env vars go under environment (not env)
  • Per-server enabled: false disables without removing
  • Use opencode mcp auth <name> / opencode mcp logout <name> for OAuth servers (e.g., GitHub)
  • Plugin tool.execute.* hooks do not fire for MCP tool calls in v1.14.x — use permission rules instead

See references/opencode-mcp.md for the full OpenCode MCP reference.

Reference

Scopes Summary (Claude Code)

ScopeFlagConfig LocationUse Case
Local--scope local (default)~/.claude.jsonPersonal dev servers
Project--scope project.mcp.jsonTeam-shared servers
User--scope user~/.claude.jsonCross-project tools

Environment Variable Syntax

In config files: ${VAR} or ${VAR:-default}

Windows Note

Use cmd /c wrapper for npx:

claude mcp add --transport stdio my-server -- cmd /c npx -y @some/package

Capabilities

skillsource-codealive-aiskill-mcp-managementtopic-agent-safetytopic-agent-skillstopic-ai-codingtopic-ai-driven-developmenttopic-ai-safetytopic-antigravitytopic-bashtopic-claude-codetopic-codex-clitopic-cursortopic-developer-toolstopic-gemini-cli

Install

Installnpx skills add CodeAlive-AI/ai-driven-development
Transportskills-sh
Protocolskill

Quality

0.48/ 1.00

deterministic score 0.48 from registry signals: · indexed on github topic:agent-skills · 67 github stars · SKILL.md body (6,322 chars)

Provenance

Indexed fromgithub
Enriched2026-05-18 18:57:06Z · deterministic:skill-github:v1 · v1
First seen2026-05-04
Last seen2026-05-18

Agent access