Model Context Protocol (MCP) 1 · Connecting to Claude Code
Add a local stdio server
Run a local server as a subprocess. Everything after -- is the command that starts it.
claude mcp add --transport stdio my-server --env API_KEY=your-api-key -- npx -y my-mcp-server
Official Model Context Protocol (MCP) 1 documentation
More connecting to claude code commands
- Add a remote HTTP server
- Add your own Python server
- Share a server with your team
- List configured servers
- Show one server's details
- Remove a server
All connecting to claude code commands · Model Context Protocol (MCP) 1 cheatsheet