AI Assistant Integration

Integrate Source Parts with Claude Desktop

Teach Claude Desktop how to execute Source Parts tools so product teams can ask for live component availability without leaving the conversation.

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"
      }
    }
  }
}

Confirm tool availability in Claude

Once the server is registered Claude lists `inventory.search`, `pricing.getQuote`, and other Source Parts tools in the sidebar. Run an initial query to confirm connectivity.

  • Claude streams tool output back into the conversation—no additional rendering layer required.
  • Use conversation tags to pin frequently requested SKUs and avoid repeating high-latency searches.
const { components } = await client.call("inventory.search", {
  query: "ESP32-C3",
  inStockOnly: true,
  limit: 10
});
Claude Desktop MCP integration | Source Parts