Four02 MCP Server
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., "@Four02 MCP Server Find a coffee shop in Charlotte and order me a latte"
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.
Four02 MCP Server
Give any AI agent the ability to discover and pay merchants through the Four02 network.
Four02 is the universal commerce layer for AI agents — search, browse, and pay any merchant regardless of which payment protocol they use (x402, ACP, UCP, or none at all).
Install
Option A: npx (recommended)
No clone needed. Works with any MCP-compatible client:
npx four02-mcp-serverOption B: Clone & build
git clone https://github.com/four02/mcp-server.git
cd mcp-server
npm install
npm run buildRelated MCP server: Commerce MCP Server
Tools
When installed, your AI agent gets five tools:
Tool | Description |
| Find businesses, services, and APIs by keyword, category, city, or tags |
| Browse a merchant's product/service menu with prices |
| Purchase from a merchant's catalog (initiates x402 payment) |
| Call a merchant's API endpoint through Four02's payment proxy |
| Get detailed merchant info (endpoints, pricing, location, ratings) |
Configuration
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"four02": {
"command": "npx",
"args": ["-y", "four02-mcp-server"],
"env": {
"FOUR02_URL": "https://api.four02.ai"
}
}
}
}Cursor
Add to .cursor/mcp.json in your project:
{
"mcpServers": {
"four02": {
"command": "npx",
"args": ["-y", "four02-mcp-server"],
"env": {
"FOUR02_URL": "https://api.four02.ai"
}
}
}
}Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"four02": {
"command": "npx",
"args": ["-y", "four02-mcp-server"],
"env": {
"FOUR02_URL": "https://api.four02.ai"
}
}
}
}OpenClaw
Add to ~/.openclaw/openclaw.json under mcp.servers:
{
"four02": {
"command": "npx",
"args": ["-y", "four02-mcp-server"],
"env": {
"FOUR02_URL": "https://api.four02.ai"
}
}
}Environment Variables
Variable | Default | Description |
|
| Four02 facilitator URL |
Example Usage
Once installed, just talk to your AI agent naturally:
"Find me a coffee shop in Charlotte"
"What does Joe's Coffee sell?"
"Order me a latte from Joe's Coffee"
"Find a weather API I can use"
"Call the weather API for New York"
The agent handles discovery, browsing, and payment — all through natural conversation.
How It Works
Your Agent ──► Four02 MCP Server ──► Four02 Network ──► Merchant
(this package) (facilitator) (any protocol)Agent calls
four02_searchto find what it needsAgent browses catalog or checks endpoints with
four02_browse_catalog/four02_merchant_infoAgent purchases via
four02_buy_productorfour02_call_apiFour02 handles the payment (USDC on Base) and proxies the request
Agent gets the goods/data/service
License
MIT
Available Tools
5 toolsfour02_browse_catalogBrowse Merchant CatalogA
Browse a merchant's product or service catalog. Use this after searching to see what a specific merchant offers — their menu items, services, or products with prices.
Inputs: merchantId (required).
four02_buy_productBuy Product from MerchantA
Purchase a product or service from a merchant's catalog. This initiates the x402 payment flow — you'll receive payment instructions including the amount in USDC, the payment address, and the EIP-712 signature fields. Your wallet must have USDC on Base network and have approved the Four02 facilitator.
Inputs: productId (required), merchantId (required), notes, quantity.
four02_call_apiCall Merchant APIA
Call a merchant's API endpoint through Four02's payment proxy. Use this for developer-tier merchants who offer API services (weather data, translation, AI services, etc.). The first call returns payment instructions (402). After paying, the request is proxied to the merchant's actual API and you get the response.
Inputs: path (required), merchantId (required), body, method, +1 more.
four02_merchant_infoGet Merchant DetailsB
Get detailed information about a specific merchant including all their endpoints, pricing, location, ratings, and catalog availability.
Inputs: merchantId (required).
four02_searchSearch Four02 MarketplaceB
Search for businesses, services, and APIs on the Four02 marketplace. Find local businesses (coffee shops, restaurants, barbers) or digital services (weather APIs, translation, data feeds). Returns merchants with pricing, ratings, and how to purchase from them.
Inputs: city, sort, tags, limit, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Search, catalog browsing, purchasing, API calling, and merchant info each target a distinct step in the marketplace workflow. Slight overlap exists between four02_merchant_info (returns endpoints, pricing, catalog availability) and four02_browse_catalog (returns catalog items with prices), and buy_product vs call_api both touch payment flows, but descriptions clarify when to use each.
All tools share the four02_ snake_case prefix and are mostly verb_noun (search, browse_catalog, buy_product, call_api). The one deviation is four02_merchant_info, which is noun-based, but it remains readable and unambiguous.
Five tools map cleanly onto the discovery-to-purchase lifecycle: search, inspect merchant, browse catalog, buy, and call API. Each tool earns its place with no redundancy, well within the healthy 3-15 range.
The discovery and purchase-initiation surface is solid, but the payment lifecycle is a dead end: buy_product only initiates payment and there is no tool to verify payment status, confirm an order, or retrieve purchase history. Agents may need to infer completion by re-calling endpoints, which is fragile.
Maintenance
Related MCP Connectors
Directory of APIs, merchants, and tools AI agents can actually use.
AI-agent product catalog: search, lookup & purchase routing over verified merchant data.
AI service marketplace — agents discover, call, and pay for API services automatically.
AI shopping gateway for product search, inventory, carts, and merchant-hosted checkout.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to discover, price, and purchase SaaS products, developer tools, and MCP servers with live Stripe checkout, affiliate program, and AgentTrust verification.MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to browse product catalogs, search products with filters, and initiate checkouts, generating order summaries and checkout URLs.-
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to discover and interact with a merchant's commerce layer, including product listing and checkout creation, while payments settle directly to the merchant's Stripe account.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI shopping agents to search products, check stock, apply promotions, manage cart sessions, and create cryptographically signed checkout sessions on e-commerce storefronts, while giving merchants analytics into agent intent and catalog demand gaps.MIT