Back to list
DuncanJurman

mcp-reference

by DuncanJurman

Claude Code plugin marketplace

1🍴 0📅 Jan 23, 2026

SKILL.md


name: mcp-reference description: Claude Code MCP (Model Context Protocol) server configuration reference. Use when adding MCP servers, configuring external tools, or integrating third-party services.

Claude Code MCP Reference

MCP (Model Context Protocol) connects Claude to external tools and services.

Configuration Locations

LocationScope
~/.claude/settings.jsonUser (all projects)
.claude/settings.jsonProject (team shared)
.claude/settings.local.jsonProject (gitignored)

Basic Configuration

{
  "mcpServers": {
    "server-name": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-name"],
      "env": {
        "API_KEY": "your-key"
      }
    }
  }
}

Configuration Fields

FieldRequiredDescription
commandYesExecutable to run
argsNoCommand arguments
envNoEnvironment variables
cwdNoWorking directory
alwaysAllowNoArray of always-allowed tools
disabledNoBoolean to disable server

Common MCP Servers

Filesystem Server

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/dir"]
    }
  }
}

GitHub Server

{
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_..."
      }
    }
  }
}

Database Server

{
  "mcpServers": {
    "postgres": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-postgres"],
      "env": {
        "DATABASE_URL": "postgresql://..."
      }
    }
  }
}

Plugin MCP Servers

In plugin's .mcp.json or plugin.json:

{
  "mcpServers": {
    "plugin-db": {
      "command": "${CLAUDE_PLUGIN_ROOT}/server",
      "args": ["--config", "${CLAUDE_PLUGIN_ROOT}/config.json"]
    }
  }
}

Note: Use ${CLAUDE_PLUGIN_ROOT} for plugin paths.

Tool Permissions

Always Allow Specific Tools

{
  "mcpServers": {
    "github": {
      "command": "...",
      "alwaysAllow": [
        "create_issue",
        "list_repos"
      ]
    }
  }
}

Interactive Permissions

If alwaysAllow not specified, Claude asks before using tools.

Disabling Servers

{
  "mcpServers": {
    "expensive-server": {
      "command": "...",
      "disabled": true
    }
  }
}

Environment Variables

From System Environment

{
  "env": {
    "API_KEY": "${API_KEY}"
  }
}

Direct Values

{
  "env": {
    "DEBUG": "true"
  }
}

Server Management

List MCP Servers

/mcp

Refresh Servers

/mcp refresh

Check Server Status

Look in /mcp for connection status.

Debugging MCP Servers

# Debug mode shows server initialization
claude --debug

# Test server manually
npx -y @modelcontextprotocol/server-name

# Check server logs
# Look for MCP-related output in debug

Common Issues

IssueSolution
Server not startingCheck command exists and is executable
Tools not appearingVerify server implements MCP correctly
Permission deniedCheck file/directory permissions
Environment vars missingVerify env values are set

Example: Custom Python Server

{
  "mcpServers": {
    "my-python-server": {
      "command": "python",
      "args": ["-m", "my_mcp_server"],
      "cwd": "/path/to/server",
      "env": {
        "PYTHONPATH": "/path/to/server"
      }
    }
  }
}

Security Considerations

  • Store secrets in environment variables, not in settings
  • Use .claude/settings.local.json for sensitive configs
  • Review server code before adding third-party servers
  • Limit alwaysAllow to necessary tools only

For complete documentation, see:

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon