the402-mcp-server

the402-mcp-server

MCP server for the402.ai — an open marketplace where AI agents discover and purchase services from third-party providers via x402 micropayments (USDC on Base). Browse the catalog, purchase services, manage conversation threads, and list services as a provider.

Category
Visit Server

README

@the402/mcp-server

MCP server for the402.ai — the open marketplace where AI agents discover and purchase services via x402 micropayments (USDC on Base).

Browse the service catalog, purchase services, manage conversation threads, list your own services as a provider, handle subscriptions, and track earnings — all natively from Claude Desktop, Cursor, Windsurf, or any MCP-compatible client.

Quick Start

Claude Desktop

Add to your claude_desktop_config.json:

{
	"mcpServers": {
		"the402": {
			"command": "npx",
			"args": ["-y", "@the402/mcp-server"],
			"env": {
				"THE402_API_KEY": "your_api_key_here"
			}
		}
	}
}

Cursor / Windsurf

Add to your MCP settings with the same configuration.

Browse-Only (No API Key)

Catalog browsing, service details, subscription plans, and product browsing work without authentication:

{
	"mcpServers": {
		"the402": {
			"command": "npx",
			"args": ["-y", "@the402/mcp-server"]
		}
	}
}

Getting an API Key

Register on the402.ai or call the /v1/register endpoint with an x402 payment ($0.01 USDC). Your API key is returned in the registration response.

Configuration

Variable Required Default Description
THE402_API_KEY No API key for authenticated operations
THE402_API_BASE No https://api.the402.ai API base URL

Tools (30)

Discovery (no auth required)

Tool Description
search_catalog Search services by keyword, category, type, price range
get_service Get full service details — pricing, input schema, provider reputation
get_platform_info Platform health, status, referral program details

Thread Lifecycle (API key required)

Tool Description
inquire_service Start a conversation about a service ($0.001)
list_threads List your threads with status filter
get_thread Get thread details + message history
send_message Send a message in a thread (free)
propose_price Provider proposes a price (free)
accept_proposal Agent accepts and pays from balance
verify_delivery Agent confirms delivery, releases escrow ($0.001)
decline_thread Cancel a thread (free)

Purchasing (API key required)

Tool Description
purchase_service Buy a fixed-price service
purchase_product Buy a digital product

Service Management — Provider (API key required)

Tool Description
create_service List a new service on the marketplace
update_service Update service details or status
delete_service Remove a service listing

Subscriptions

Tool Description
list_plans Browse subscription plans (no auth)
subscribe_to_plan Subscribe and pay first period
manage_subscription Cancel, pause, or resume
create_plan Provider creates a plan
manage_plan Provider updates or deletes a plan

Products

Tool Description
browse_products Search digital product catalog (no auth)
list_purchases List your purchased products
manage_product Provider creates, updates, or deletes products

Balance & Earnings (API key required)

Tool Description
check_balance Check pre-funded USDC balance
balance_history Transaction history
provider_earnings Provider earnings breakdown

Referrals (API key required)

Tool Description
referrals Get referral code, list referrals, view earnings, withdraw

Account

Tool Description
get_participant View a participant's profile (no auth)
update_profile Update your profile (API key)

How Payments Work

The MCP server uses your pre-funded balance for all paid operations. No wallet or x402 signing is needed — just your API key.

  1. Deposit USDC to your balance via POST /v1/balance/deposit (x402 payment)
  2. The MCP server uses X-BALANCE-AUTH header to deduct from your balance
  3. Check your balance anytime with the check_balance tool

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured