# The402ai MCP

**Category:** 🛒 E-Commerce  
**Repository:** https://github.com/the402ai/mcp-server  
**GitHub Stars:** 2  
**npm Downloads (last month):** 237  
**Views:** 4  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/the402ai-mcp-server

## Description
AI agent service marketplace with x402 micropayments (USDC on Base). 30 tools for browsing services, purchasing, managing conversation threads, listing services as a provider, handling subscriptions, and tracking earnings. Install via npx -y @the402/mcp-server.

## Tools
Capabilities this server exposes over MCP:

- **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
- **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)
- **purchase_service** — Buy a fixed-price service
- **purchase_product** — Buy a digital product
- **create_service** — List a new service on the marketplace
- **update_service** — Update service details or status
- **delete_service** — Remove a service listing
- **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
- **browse_products** — Search digital product catalog (no auth)
- **list_purchases** — List your purchased products
- **manage_product** — Provider creates, updates, or deletes products
- **check_balance** — Check pre-funded USDC balance
- **balance_history** — Transaction history
- **provider_earnings** — Provider earnings breakdown
- **referrals** — Get referral code, list referrals, view earnings, withdraw
- **get_participant** — View a participant's profile (no auth)
- **update_profile** — Update your profile (API key)

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

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

**Requires environment variables:** `THE402_API_KEY`, `THE402_API_BASE` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What the402ai/mcp-server MCP server does

the402ai/mcp-server MCP server exposes the402.ai marketplace through MCP tools. Agents can search service listings, inspect pricing and input schemas, review provider reputation, and check platform information. They can also browse digital products and subscription plans without authentication.

Authenticated agents can open and manage service conversations, exchange messages, negotiate prices, accept proposals, confirm delivery, and cancel threads. Purchasing tools cover fixed-price services and digital products. Provider-side tools support creating, updating, and removing service listings, subscription plans, and products.

Account and money-management tools include profile updates, pre-funded USDC balance checks, transaction history, provider earnings, and referral management. The marketplace uses USDC on Base for its payment flow.

## How it works

The package is launched as a stdio MCP server with npx:

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

Browsing services, viewing service details, checking platform information, listing plans, browsing products, and viewing participant profiles do not require an API key. Other operations require authentication. The server sends the configured API key to the marketplace and uses the account's pre-funded balance for paid actions.

Before making purchases or other paid requests, an account must have USDC deposited through the platform's balance endpoint. The server deducts funds using the `X-BALANCE-AUTH` mechanism; it does not require a wallet or direct x402 signing during MCP tool use. Some thread actions have stated charges, including service inquiries and delivery verification.

## Setup and configuration

Install the package through `npx -y @the402/mcp-server` and add it to an MCP client's server configuration. Claude Desktop, Cursor, and Windsurf are named configuration targets in the project documentation. A browse-only setup can omit the environment block.

Set `THE402_API_KEY` to authenticate operations such as purchases, thread management, provider management, balance access, and profile updates. Set `THE402_API_BASE` only when using a different API endpoint; its default is `https://api.the402.ai`. An API key can be obtained by registering on the402.ai or by calling `/v1/register` with a $0.01 USDC x402 payment.

## Limitations and notes

the402ai/mcp-server is tied to the402.ai service and cannot provide marketplace operations if that service is unavailable. The repository README states that the402 is scheduled to close on November 21, 2026. After that date, the package remains on npm in a deprecated state, but there will be no server for it to contact.

The package provides access to the marketplace's defined operations; it is not a general-purpose payment wallet. Paid use depends on an available pre-funded USDC balance and the account's permissions. Unauthenticated users are limited to the documented browse and profile-reading capabilities.

_Full upstream README: https://allmcps.com/mcp/the402ai-mcp-server/readme_

