X402 Places MCP Server
Provides a tool for searching Google Places via the Google Places API, accepting a query with optional latitude/longitude location and radius, and returning live place results.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@X402 Places MCP Server Find coffee shops in downtown Seattle"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
X402 Places MCP Server
Claude Desktop integration for Google Places API with automatic x402 micropayments.
π Zero Gas Fees: Clients pay $0.01 USDC per search, facilitator pays gas π€ AI Native: Built for Claude Desktop and AI agents β‘ Instant Payments: EIP-712 signatures, sub-second processing πΊοΈ Real Data: Live Google Places API integration
What is This?
This is a Model Context Protocol (MCP) server that allows Claude Desktop to search Google Places using x402 micropayments. You pay $0.01 USDC per search with zero gas fees.
Key Features
β Real Data: Live Google Places results for $0.01 USDC
β Gasless: Facilitator pays all gas fees
β Secure: Private keys stay local, EIP-712 signatures
β Fast: Sub-second payment processing
Related MCP server: Secant Agent Research
Quick Start
1. Clone the Repository
git clone https://github.com/yourusername/places-x402-mcp.git
cd places-x402-mcp
pnpm install2. Configure Claude Desktop
Add to your Claude Desktop config at:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Configuration:
{
"mcpServers": {
"places-x402": {
"command": "pnpm",
"args": [
"--silent",
"-C",
"/absolute/path/to/places-x402-mcp",
"dev"
],
"env": {
"PRIVATE_KEY": "0xYourWalletPrivateKeyWithUSDC",
"RESOURCE_SERVER_URL": "https://places-api.x402hub.xyz",
"ENDPOINT_PATH": "/api/places/text-search"
}
}
}
}Important: Replace /absolute/path/to/places-x402-mcp with the actual path where you cloned the repository.
3. Restart Claude Desktop
Close and reopen Claude Desktop to load the MCP server.
4. Try It Out
Ask Claude:
"Find coffee shops in San Francisco"
"Search for restaurants near 37.7749,-122.4194 within 2km"
"Look for gas stations in downtown Portland"
Requirements
Wallet Private Key: With USDC on Base network
USDC Balance: At least $0.10 USDC recommended
Base Network: Mainnet (production) or Sepolia (testing)
Getting USDC on Base
Option 1: Bridge from Ethereum
Visit Base Bridge
Connect your wallet
Bridge USDC from Ethereum mainnet to Base
Option 2: Buy on Base
Use Coinbase to buy USDC
Withdraw to your Base network address
Option 3: Testnet (Base Sepolia)
Get test ETH from Base Sepolia Faucet
Swap for test USDC on Base Sepolia
Available Tools
The MCP server provides 3 tools Claude can use:
1. search_places
Search for places using Google Places API.
Parameters:
query(required): Search term (e.g., "pizza restaurants")location(optional): Lat,lng format (e.g., "37.7749,-122.4194")radius(optional): Search radius in meters (max 50000)
Example:
Claude: Find coffee shops in downtown Seattle2. get_service_info
Get x402 service information and payment requirements.
Example:
Claude: What are the payment requirements for the Places API?3. check_health
Check the health status of the Places API service.
Example:
Claude: Check if the Places API is workingHow X402 Payments Work
Claude sends search request β MCP server
MCP server creates EIP-712 signature β Your wallet signs locally
Signature sent to API β No gas fee for you
Facilitator verifies & executes β Pays gas fee
USDC transferred β $0.01 from your wallet to API
Google Places results β Returned to Claude
Security Notes:
β Private key stays local (never sent anywhere)
β EIP-712 signatures are cryptographically secure
β Each signature is single-use (anti-replay)
β Facilitator is trusted third-party (Coinbase CDP)
Production API Details
Network: Base Mainnet
Token: USDC
Price: $0.01 per search
Protocol: x402 v1.0
Facilitator: CDP x402 Facilitator (Coinbase)
Development
Project Structure
places-x402-mcp/
βββ index.ts # Main MCP server implementation
βββ package.json # NPM package configuration
βββ tsconfig.json # TypeScript configuration
βββ README.md # This fileTroubleshooting
MCP Server Not Loading
Check Claude Desktop config file syntax (valid JSON)
Verify file path is correct for your OS
Restart Claude Desktop completely
Check Claude Desktop logs for errors
Payment Failures
Check USDC balance: Need at least $0.01 USDC
Verify network: Must be Base mainnet (not Ethereum)
Check wallet: Private key must be valid and start with
0xRestart Claude Desktop: After any config changes
API Errors
Check service status: https://places-api.x402hub.xyz/health
Verify connectivity: Test internet connection
Check API URL: Must be correct in config
Try again: Temporary network issues
Security Best Practices
Private Key Safety
β οΈ Never share your private key
β οΈ Use dedicated wallet with minimal funds
β οΈ Rotate keys regularly
β οΈ Keep backups secure
Recommended Wallet Setup
Create new wallet specifically for MCP payments
Fund with only $1-5 USDC
Never store large amounts in this wallet
Monitor transactions regularly
Support & Resources
Production API: https://places-api.x402hub.xyz
X402 Docs: https://docs.cdp.coinbase.com/x402/
MCP Protocol: https://modelcontextprotocol.io/
GitHub Issues: https://github.com/yourusername/places-x402-mcp/issues
License
MIT License - see LICENSE file for details
Related Projects
x402 Protocol - HTTP 402 micropayment standard
x402-axios - Axios with payment support
Model Context Protocol - AI integration standard
Built with β€οΈ for Claude Desktop Powered by x402 Protocol
Available Tools
3 toolscheck_healthB
Check the health status of the Places API service
Inputs: no named parameters.
get_service_infoB
Get x402 service information and payment requirements
Inputs: no named parameters.
search_placesB
Search for places using Google Places API with x402 micropayments
Inputs: query (required), radius, location.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 3 tools
The three tools have clearly distinct purposes: health checking, place searching, and service/payment info. There is no overlap that would cause misselection.
All tool names follow a consistent snake_case verb_noun pattern: check_health, search_places, get_service_info. The convention is predictable and readable.
Three tools is a reasonable, focused surface for a places-search service with payment metadata. It is slightly thin, with only one core domain operation plus two supporting tools, but not problematic.
The surface covers search plus service health and payment info, which supports the basic x402 workflow. However, obvious place-domain gaps remain, such as retrieving details by place ID or related lookup operations.
Maintenance
Related MCP Connectors
Live Google Maps business search, review, and photo data for AI agents over MCP.
Google Maps Places, Reviews & Geocoding MCP. Zero-signup x402 USDC ($0.0015) on Base or API key.
Google Maps Places, Reviews & Geocoding MCP. Zero-signup x402 USDC ($0.0015) on Base or API key.
Google Maps Places, Reviews & Geocoding MCP. Zero-signup x402 USDC ($0.0015) on Base or API key.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server that wraps Shopify, Amazon, and Google Maps intelligence tools. AI agents pay autonomously in USDC on Base via x402 β no API keys or accounts needed.62MIT
- AlicenseAqualityDmaintenancePaid web research MCP tools for autonomous agents: search, page extraction, citations, and diff monitoring through a live x402 API. Unpaid calls return the Base USDC payment requirement so agents can pay and retry safely.41MIT
- AlicenseNot gradedqualityDmaintenanceProvides free MCP-based tool discovery and per-call paid execution of live web search and deep research tools, with USDC settlement via x402 v2.MIT
- AlicenseNot gradedqualityBmaintenanceEnables Claude to autonomously purchase business location data and pay for it with USDC on Base via x402, while enforcing per-call and per-session spending limits.MIT