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
- Add a remote HTTP server
- Add a local stdio server
- Add your own Python server
- Share a server with your team
- List configured servers
- Show one server's details
All connecting to claude code commands · Model Context Protocol (MCP) 1 cheatsheet