# the402ai

> the402ai is an open-source MCP server for agent tooling. MCP server for the402.ai marketplace to browse, buy and sell AI services in USDC. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, macOS, Windows, Linux
- **Repository:** https://github.com/the402ai/mcp-server
- **MCP Registry name:** io.github.the402ai/mcp-server
- **Categories:** [agent tooling](https://ai-powered.com/categories/agent-tooling)
- **Listing updated:** 2026-11-21

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mcp-server -- npx -y @the402/mcp-server
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (claude_desktop_config.json)

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

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

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

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp-server -- npx -y @the402/mcp-server
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp-server]
command = "npx"
args = ["-y", "@the402/mcp-server"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```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 (~/.config/devin/mcp_config.json)

```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 (cline_mcp_settings.json)

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

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```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 (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

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

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

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

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

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

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

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_catalog` (name suggests: reads): Search services by keyword, category, type, price range
- `get_service` (name suggests: reads): Get full service details including pricing, input schema, provider reputation
- `get_platform_info` (name suggests: reads): Platform health, status, referral program details
- `inquire_service`: Start a conversation about a service
- `list_threads` (name suggests: reads): List your threads with status filter
- `get_thread` (name suggests: reads): Get thread details and message history
- `send_message` (name 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_service` (name suggests: changes): List a new service on the marketplace
- `update_service` (name suggests: changes): Update service details or status
- `delete_service` (name suggests: deletes): Remove a service listing
- `list_plans` (name suggests: reads): Browse subscription plans
- `subscribe_to_plan`: Subscribe and pay first period
- `manage_subscription`: Cancel, pause, or resume a subscription
- `create_plan` (name suggests: changes): Provider creates a plan
- `manage_plan`: Provider updates or deletes a plan
- `browse_products` (name suggests: reads): Search digital product catalog
- `list_purchases` (name suggests: reads): List your purchased products
- `manage_product`: Provider creates, updates, or deletes products
- `check_balance` (name 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_participant` (name suggests: reads): View a participant's profile
- `update_profile` (name suggests: changes): Update your profile

## 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.

## Alternatives

- [X402 MCP Server](https://ai-powered.com/mcp/x402-mcp-server-3): X402 MCP Server is a paid MCP server for agent tooling.
- [X402engine MCP](https://ai-powered.com/mcp/x402engine-mcp): X402engine MCP is a paid MCP server for agent tooling.
- [X402 Helper MCP](https://ai-powered.com/mcp/x402-helper-mcp): X402 Helper MCP is an MCP server for agent tooling.
- [apihubio](https://ai-powered.com/mcp/apihubio): apihubio is a freemium MCP server for agent tooling.
- [Global Chat — x402 MCP Agent Discovery (LangGraph, CrewAI, Eliza, A2A)](https://ai-powered.com/mcp/global-chat-x402-mcp-agent-discovery-langgraph-crewai-eliza): Global Chat — x402 MCP Agent Discovery (LangGraph, CrewAI, Eliza, A2A) is a paid MCP server for agent tooling.
- [Imperium MCP Gateway — Universal 490+ Tool Discovery, Safe-Proxy & Router](https://ai-powered.com/mcp/imperium-mcp-gateway-universal-490-tool-discovery-safe-proxy): Imperium MCP Gateway — Universal 490+ Tool Discovery, Safe-Proxy & Router is a paid MCP server for agent tooling.
- [Agent Exchange store](https://ai-powered.com/mcp/agent-exchange-store): Agent Exchange store is a paid MCP server for e-commerce.
- [AgentBodega MCP](https://ai-powered.com/mcp/agentbodega-mcp): AgentBodega MCP is an open-source MCP server for agent tooling.

---
Source: https://ai-powered.com/mcp/the402ai
