The402ai MCP logo

The402ai MCP

Connects MCP clients to the402.ai marketplace for service discovery, purchases, subscriptions, and provider management.

Install The402ai MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "the402ai-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@the402/mcp-server"
      ],
      "env": {
        "THE402_API_KEY": "YOUR_VALUE_HERE",
        "THE402_API_BASE": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env THE402_API_KEY=YOUR_VALUE_HERE --env THE402_API_BASE=YOUR_VALUE_HERE --transport stdio the402ai-mcp-server -- npx -y @the402/mcp-server

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y @the402/mcp-server

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

the402ai/mcp-server MCP server connects MCP-compatible clients to the402.ai marketplace for discovering and purchasing agent services, digital products, and subscriptions. It runs through npx and uses an optional API key for authenticated actions, while catalog browsing works without authentication. Paid operations use a pre-funded USDC balance on Base rather than requiring wallet signing. Reach for it when an agent needs to buy marketplace services or manage listings, payments, threads, subscriptions, or referrals.

Use cases

  • Search marketplace services by keyword, category, type, or price
  • Purchase fixed-price services and digital products
  • Manage service conversations and delivery confirmation
  • List and maintain provider services, plans, and products
  • Track USDC balances, earnings, transactions, and referrals

Key features

  • Marketplace service discovery
  • Service purchases and escrow delivery confirmation
  • Digital product and subscription management
  • Provider listing and earnings tools
  • Pre-funded USDC balance tracking
  • Conversation thread management

Tools30

What The402ai MCP lets your agent do. Expand a tool for its parameters.

Self-reported~369 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

Not checked yetLast checked

We have not completed a health check for this listing yet.

15/28 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 14d ago via OSV.dev · @the402/mcp-server (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
npm downloads237Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed30Callable tools this server registers over MCP.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How The402ai MCP works

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:

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

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about The402ai MCP

the402ai/mcp-server is an MCP server that connects AI clients to the402.ai service marketplace. Its main tools search services, inspect listings, purchase services and digital products, manage conversation threads, create provider listings, handle subscriptions, and track pre-funded USDC balances and earnings.

Install it by configuring an MCP client to run `npx -y @the402/mcp-server`. Add `THE402_API_KEY` for authenticated actions. A configuration without an API key can still browse the service catalog, plans, products, platform information, and participant profiles.

Yes, the402ai/mcp-server works with Cursor. Add the same npx command and environment configuration to Cursor's MCP settings. The project documentation also names Claude Desktop and Windsurf as supported configuration targets.

No, an API key is not required for documented browse-only operations. Purchasing, thread actions, provider management, balance and earnings tools, referrals, and profile updates require `THE402_API_KEY`.

It uses a pre-funded USDC balance for paid operations rather than requiring wallet signing in the MCP client. Deposit USDC through the platform first, then the server deducts funds using the `X-BALANCE-AUTH` header.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewThe402ai MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/the402ai-mcp-server?style=directory)](https://allmcps.com/mcp/the402ai-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/the402ai-mcp-server"><img src="https://allmcps.com/api/badge/the402ai-mcp-server?style=directory" alt="The402ai MCP on AllMCPs" /></a>