Model Context Protocol (MCP) 1 · Connecting to Claude Code

Configure servers in .mcp.json

A project-level configuration file. It can expand environment variables so secrets stay out of the file.

{
  "mcpServers": {
    "my-server": {
      "command": "npx",
      "args": ["-y", "my-mcp-server"],
      "env": { "API_KEY": "${API_KEY}" }
    }
  }
}

Official Model Context Protocol (MCP) 1 documentation

More connecting to claude code commands

All connecting to claude code commands · Model Context Protocol (MCP) 1 cheatsheet

Was this page helpful?