Skip to main content

MCP Config Builder

Intermediate

MCP connects Claude to external tools and data. Pick the servers you want and copy (or download) a starting .mcp.json. Replace the ${...} placeholders with env vars — never hard-code secrets.

.mcp.json
{
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-github"
      ],
      "env": {
        "GITHUB_TOKEN": "${GITHUB_TOKEN}"
      }
    }
  }
}

Replace ${...} placeholders with env vars (never hard-code secrets), and confirm each package exists at modelcontextprotocol.io. Only connect servers you trust.

:::warning Trust and verify An MCP server runs code and can access data. Only connect servers you trust, give them least privilege, and confirm each package at modelcontextprotocol.io. See Reviewing Third-Party Code. :::

Next