What is MCP?
MCP allows Claude Desktop to:- Tools: Call your backend functions (search, add to cart, checkout)
- Resources: Access live data feeds (product catalog, inventory)
- Prompts: Use pre-defined conversation templates
Quick Setup
1. Install the Package
2. Create Your MCP Server
mcp-server.ts
3. Configure Claude Desktop
Add to~/.config/claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
4. Restart Claude Desktop
Close and reopen Claude Desktop. Your tools should now be available!Built-in Tools
The gateway includes 6 commerce tools out of the box:Example Conversation
1
User asks about products
“What wireless headphones do you have?”Claude calls
search_products with query “wireless headphones”2
Claude shows results
“I found 3 wireless headphones:Would you like details on any of these?”
- Premium Wireless Headphones - $299.99 ⭐ 4.8/5 Active noise cancellation, 30-hour battery
- Sport Earbuds - $149.99 ⭐ 4.6/5 Water resistant, 8-hour battery
3
User adds to cart
“Add the Premium headphones in black to my cart”Claude calls
add_to_cart with product ID and variantTroubleshooting
Claude doesn't see my tools
Claude doesn't see my tools
- Check that the path in
claude_desktop_config.jsonis absolute - Ensure the script runs without errors:
node /path/to/mcp-server.js - Restart Claude Desktop completely
Tool calls fail silently
Tool calls fail silently
Your backend might be throwing errors. Add logging to your terminal output and check there.