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

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

Was this page helpful?