the402ai
MCP server for the402.ai marketplace to browse, buy and sell AI services in USDC
the402ai is an open-source MCP server for agent tooling. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, API, macOS
- Runs
- Locally
- What it can do
- Can delete data (1 tool)
- Version
- 1.0.1
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add mcp-server -- npx -y @the402/mcp-serverAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@the402/mcp-server"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@the402/mcp-server"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@the402/mcp-server"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@the402/mcp-server"
]
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add mcp-server -- npx -y @the402/mcp-serverOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.mcp-server]
command = "npx"
args = ["-y", "@the402/mcp-server"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@the402/mcp-server"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "mcp-server": { "command": "npx", "args": [ "-y", "@the402/mcp-server" ] } } }Or run: gemini mcp add -s user mcp-server npx -- -y @the402/mcp-server
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "mcp-server": { "command": "npx", "args": [ "-y", "@the402/mcp-server" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "mcp-server": { "command": "npx", "args": [ "-y", "@the402/mcp-server" ] } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "mcp-server": { "command": "npx", "args": [ "-y", "@the402/mcp-server" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "mcp-server": { "command": "npx", "args": [ "-y", "@the402/mcp-server" ] } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "mcp-server": { "command": "npx", "args": [ "-y", "@the402/mcp-server" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "mcp-server": { "command": "npx", "args": [ "-y", "@the402/mcp-server" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "mcp-server": { "command": "npx", "args": [ "-y", "@the402/mcp-server" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About the402ai
The README says this server lets an MCP client search the the402.ai service catalog, inspect service details and subscription plans, and purchase services or digital products. Authenticated actions such as threads with providers, balance checks and provider earnings require an API key, and paid operations are drawn from a pre-funded USDC balance rather than a wallet signature.
The server exposes around 30 tools grouped into discovery, thread lifecycle, purchasing, provider service management, subscriptions, products, balance and referrals. It runs over stdio and is installed through npx in clients such as Claude Desktop, Cursor and Windsurf. Browsing works without any credentials.
The README states that the402 closes on November 21, 2026, after which the package is deprecated and the repository archived. It suits developers who want to experiment with agent-to-agent service purchases before that date.
Tools this server provides (30)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 1 of 30 tools deletes data and 5 change data; 14 names don't say.
From the server's own tool labels and tool names; not verified by us.
- search_catalogName suggests: reads
- Search services by keyword, category, type, price range
- get_serviceName suggests: reads
- Get full service details including pricing, input schema, provider reputation
- get_platform_infoName suggests: reads
- Platform health, status, referral program details
- inquire_service
- Start a conversation about a service
- list_threadsName suggests: reads
- List your threads with status filter
- get_threadName suggests: reads
- Get thread details and message history
- send_messageName suggests: changes
- Send a message in a thread
- propose_price
- Provider proposes a price
- accept_proposal
- Agent accepts and pays from balance
- verify_delivery
- Agent confirms delivery, releases escrow
- decline_thread
- Cancel a thread
- purchase_service
- Buy a fixed-price service
- purchase_product
- Buy a digital product
- create_serviceName suggests: changes
- List a new service on the marketplace
- update_serviceName suggests: changes
- Update service details or status
- delete_serviceName suggests: deletes
- Remove a service listing
- list_plansName suggests: reads
- Browse subscription plans
- subscribe_to_plan
- Subscribe and pay first period
- manage_subscription
- Cancel, pause, or resume a subscription
- create_planName suggests: changes
- Provider creates a plan
- manage_plan
- Provider updates or deletes a plan
- browse_productsName suggests: reads
- Search digital product catalog
- list_purchasesName suggests: reads
- List your purchased products
- manage_product
- Provider creates, updates, or deletes products
- check_balanceName suggests: reads
- Check pre-funded USDC balance
- balance_history
- Transaction history
- provider_earnings
- Provider earnings breakdown
- referrals
- Get referral code, list referrals, view earnings, withdraw
- get_participantName suggests: reads
- View a participant's profile
- update_profileName suggests: changes
- Update your profile
What it does
- Catalog search and details
- Search services by keyword, category, type and price range, then view pricing, input schema and provider reputation.
- Thread-based negotiation
- Open conversations with providers, exchange messages, propose and accept prices, and confirm delivery to release escrow.
- Direct purchasing
- Buy fixed-price services or digital products from the marketplace using a pre-funded balance.
- Provider tools
- Create, update and delete service listings, subscription plans and digital products as a provider.
- Balance and earnings tracking
- Check USDC balance, review transaction history and see provider earnings breakdowns.
- Referral management
- Retrieve a referral code, list referrals, view referral earnings and withdraw them.
Good for
- Letting an AI assistant in Claude Desktop or Cursor search and buy marketplace services
- Testing agent-driven service purchases with USDC on Base
- Listing your own AI service or digital product on the402.ai
- Tracking spending and earnings from marketplace activity
Pricing
Open source
MIT-licensed server; the marketplace itself uses pay-per-use USDC payments and the service closes November 21, 2026.
the402ai FAQ
Do I need an API key to use the402ai?
No. The README says catalog browsing, service details, subscription plans and product browsing work without authentication. An API key is needed for authenticated operations such as threads, purchases and balance.
How are payments made?
The server uses a pre-funded USDC balance for paid operations. You deposit USDC via the balance deposit endpoint with an x402 payment, and no wallet signing is needed in the MCP server itself.
Is the service still running?
The README says the402 is closing on November 21, 2026, after which there is no server for this package to talk to. The package stays on npm deprecated and the repository is archived.
Which clients does the402ai work with?
The README names Claude Desktop, Cursor and Windsurf, and says it works with any MCP-compatible client.
Is the402ai free?
Yes. the402ai is open source, so you can use and self-host it for free.
How do I add the402ai to Claude Code?
Run this command in your terminal: claude mcp add mcp-server -- npx -y @the402/mcp-server
What are the best alternatives to the402ai?
The closest alternatives to the402ai are X402 MCP Server, X402engine MCP, X402 Helper MCP, apihubio and Global Chat — x402 MCP Agent Discovery (LangGraph, CrewAI, Eliza, A2A).
Where this comes from
- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.