askill
mcp-reference

mcp-referenceSafety 85Repository

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

1 stars
1.2k downloads
Updated 1/23/2026

Package Files

Loading files...
SKILL.md

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:

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

87/100Analyzed 2/19/2026

High-quality MCP configuration reference skill with excellent structure, comprehensive examples, and good safety guidance. Provides actionable JSON configs for common servers (filesystem, GitHub, Postgres), tool permissions, debugging, and security best practices. Appropriate as a reference document rather than step-by-step tutorial. Well-organized with tables and clear sections.

85
90
85
85
90

Metadata

Licenseunknown
Version-
Updated1/23/2026
PublisherDunc4nJ

Tags

databasegithubllmsecuritytesting