Register the MCP server
Add a new entry to `claude_desktop_config.json` that launches the Source Parts server with your API key. Claude will manage the process lifecycle and forward tool calls automatically.
- Store the API key in your OS keychain or `.env` file—Claude expands environment variables before spawning the server.
- Use the `serve` command during development. For production setups, containerize the server behind a stable URL and reference it via `url`.
claude_desktop_config.json
{
"mcpServers": {
"sourceparts": {
"command": "npx",
"args": ["@sourceparts/mcp", "serve"],
"env": {
"SOURCEPARTS_API_KEY": "$SOURCEPARTS_API_KEY"
}
}
}
}