NanoGPT MCP
Use NanoGPT via MCP-compatible clients like Claude Code and Cursor using the Model Context Protocol (MCP).
Read the full setup guide here: https://docs.nano-gpt.com/integrations/mcp
Claude Code quick start
For Claude Code, use the current claude mcp add ... -- command args form.
macOS / Linux
claude mcp add nanogpt --scope user \
--env NANOGPT_API_KEY=your_actual_key_here \
-- npx -y @nanogpt/mcpWindows
claude mcp add nanogpt --scope user --env NANOGPT_API_KEY=your_actual_key_here -- cmd /c "C:\Program Files\nodejs\npx.cmd" -y @nanogpt/mcpOn native Windows, npx is usually a .cmd shim. Launching it through cmd /c avoids a bad MCP setup that can look like an API key problem.
Troubleshooting
- If Claude Code already has an older `nanogpt` MCP entry, remove it and add it again.
- If you use WSL, use the macOS / Linux command inside WSL instead of the native Windows one.
- If you see `Invalid API key` right after setup, verify the launch command as well as the key value.
