mcp-manager

nathanvale 的头像作者 nathanvale

管理 MCP 服务器 - 添加、列出、启用和禁用。当用户询问 MCP 服务器配置、想要添加新服务器或需要启用/禁用现有服务器时使用。

📖 中文导读:管理 MCP 服务器 - 添加、列出、启用和禁用。当用户询问 MCP 服务器配置、想要添加新服务器或需要启用/禁用现有服务器时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: mcp-manager description: Manage MCP servers - add, list, enable, and disable. Use when users ask about MCP server configuration, want to add new servers, or need to enable/disable existing ones.

MCP Manager

Overview

Manage MCP (Model Context Protocol) servers in Claude Code. This skill helps with:

  • Listing configured MCP servers
  • Adding new MCP servers
  • Enabling disabled servers
  • Disabling servers without removing them

When to Use This Skill

  • User asks "what MCP servers do I have?"
  • User wants to "add an MCP server"
  • User needs to "enable" or "disable" a server
  • User asks about MCP configuration

Quick Reference

Task Command
List servers claude mcp list
Add HTTP server claude mcp add --transport http <name> <url>
Add stdio server claude mcp add --transport stdio <name> -- <cmd>
Get server details claude mcp get <name>
Remove server claude mcp remove <name>
Check status /mcp (in Claude Code)

Scopes

MCP servers can be configured at different scopes:

Scope Flag Description
local --scope local Private to you, current project only (default)
project --scope project Shared via .mcp.json, version controlled
user --scope user Available across all your projects

Enable/Disable via Settings

Servers can be enabled/disabled without removing them:

// In ~/.claude/settings.json or .claude/settings.json
{
  "enableAllProjectMcpServers": true,
  "enabledMcpjsonServers": ["github", "sentry"],
  "disabledMcpjsonServers": ["filesystem"]
}

Common Server Examples

GitHub

claude mcp add --transport http github https://api.githubcopilot.com/mcp/

Sentry

claude mcp add --transport http sentry https://mcp.sentry.dev/mcp

PostgreSQL Database

claude mcp add --transport stdio db -- npx -y @bytebase/dbhub \
  --dsn "postgresql://user:pass@localhost:5432/mydb"

Filesystem (Local)

claude mcp add --transport stdio filesystem -- npx -y @anthropics/mcp-filesystem

Troubleshooting

  1. Server not connecting: Check with /mcp command in Claude Code
  2. Permission denied: May need to re-authenticate with /mcp
  3. Changes not applying: Restart Claude Code after config changes