/claude-code-docs:mcp-referencefrom claude-code-docs
Claude Code MCP (Model Context Protocol) server configuration reference. Use when adding MCP servers, configuring external tools, or integrating third-party services.
Ships in claude-code-docs. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
MCP (Model Context Protocol) connects Claude to external tools and services.
| Location | Scope |
|---|---|
~/.claude/settings.json | User (all projects) |
.claude/settings.json | Project (team shared) |
.claude/settings.local.json | Project (gitignored) |
{
"mcpServers": {
"server-name": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-name"],
"env": {
"API_KEY": "your-key"
}
}
}
}
| Field | Required | Description |
|---|---|---|
command | Yes | Executable to run |
args | No | Command arguments |
env | No | Environment variables |
cwd | No | Working directory |
alwaysAllow | No | Array of always-allowed tools |
disabled | No | Boolean to disable server |
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/dir"]
}
}
}
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_..."
}
}
}
}
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-postgres"],
"env": {
"DATABASE_URL": "postgresql://..."
}
}
}
}
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.
{
"mcpServers": {
"github": {
"command": "...",
"alwaysAllow": [
"create_issue",
"list_repos"
]
}
}
}
If alwaysAllow not specified, Claude asks before using tools.
{
"mcpServers": {
"expensive-server": {
"command": "...",
"disabled": true
}
}
}
{
"env": {
"API_KEY": "${API_KEY}"
}
}
{
"env": {
"DEBUG": "true"
}
}
/mcp
/mcp refresh
Look in /mcp for connection status.
# 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
| Issue | Solution |
|---|---|
| Server not starting | Check command exists and is executable |
| Tools not appearing | Verify server implements MCP correctly |
| Permission denied | Check file/directory permissions |
| Environment vars missing | Verify env values are set |
{
"mcpServers": {
"my-python-server": {
"command": "python",
"args": ["-m", "my_mcp_server"],
"cwd": "/path/to/server",
"env": {
"PYTHONPATH": "/path/to/server"
}
}
}
}
.claude/settings.local.json for sensitive configsalwaysAllow to necessary tools onlyFor complete documentation, see:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dunc4nj/entropy-plugins --plugin claude-code-docs7 skills in this plugin
/hooks-referenceClaude Code hooks configuration reference. Use when creating hooks, understanding hook events (PreToolUse, PostToolUse, Stop, SessionStart, etc.), debugging hook behavior, or implementing automation./memory-referenceClaude Code memory (CLAUDE.md) configuration reference. Use when setting up project memory, understanding memory hierarchy, or configuring persistent instructions./plugins-referenceClaude Code plugins configuration reference. Use when creating plugins, bundling commands/agents/hooks/skills/MCP servers, setting up marketplaces, or distributing extensions.Other plugins' skills for the same job