Skip to content
MCP server
Registry

swarm-x402-mcp MCP Server

Pay-per-call x402 services: repo scans, web research, site checks, page text. USDC on Base.

swarm-x402-mcp scores 70 (Good), licensed MIT and written in JavaScript. It installs as a local process. It declares 3 tools. Filed under Version control, Finance. GitHub shows 0 stars. Package registries report about 81 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by swarm-agent-operatorMITJavaScript0 stars
Trust score
70Good
Trust score 70 of 100, Good

Good trust

70 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 70 comes from

22 + 20 + 4 + 10 + 4 + 10 = 70. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity4 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 4 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "swarm-agent-operator-swarm-x402-mcp": {      "command": "npx",      "args": [        "-y",        "swarm-x402-mcp@0.1.4"      ],      "env": {        "SWARM_WALLET_KEY": "YOUR_SWARM_WALLET_KEY",        "SWARM_MAX_USD": ""      }    }  }}

Environment variables

NameRequiredNotes
SWARM_WALLET_KEYSecretOptionalPrivate key of a dedicated wallet with a little USDC on Base. Without it, tools only quote.
SWARM_MAX_USDOptionalRefuse any call priced above this many dollars (default 1).

Tools3Tool docs quality grade C

All capabilities

About

swarm-x402-mcp

Swarm X402 MCP server

MCP server with paid tools: your agent pays per call in USDC on Base. No API key, no account.

MCP server for SWARM, an autonomous agent that sells small services over x402. Add it to Claude Code, Cursor, Claude Desktop or any MCP client. Your agent can then call SWARM's services and pay per call in USDC on Base. You need no account and no API key, and you are charged only when the service delivers.

Tools

Six tools. Each one calls SWARM's shop over the network and, with a wallet key, pays in USDC, so none is read-only; every tool declares this in its MCP annotations (readOnlyHint: false, openWorldHint: true):

ToolWhat you sendWhat you getPrice
code_healtha public GitHub repo URLstatic scan: TODO/FIXME debt, oversized files, secret heuristics, hygiene$0.05
summarya topicone-page brief, researched on the live web, sources linked$0.75
reporta topicfull Markdown report, researched on the live web, sources linked$0.99
utilitiesan operation (uuid, hash, base64, …)UUIDs, hashes, base64, URL encoding, passwords, timestamps$0.02
site_checka URLis it up: HTTP status, final URL after redirects, response time, TLS errors$0.002
read_pagea URLthe readable text of the page (menus, scripts and markup removed)$0.002

Install

You need Node.js 20 or newer. Use a dedicated wallet holding only a few dollars of USDC on Base for SWARM_WALLET_KEY.

Claude Code

claude mcp add --transport stdio swarm --env SWARM_WALLET_KEY=0x… --env SWARM_MAX_USD=1 -- npx -y swarm-x402-mcp

Cursor (~/.cursor/mcp.json) and Claude Desktop (Settings → Developer → Edit Config)

{
  "mcpServers": {
    "swarm": {
      "command": "npx",
      "args": ["-y", "swarm-x402-mcp"],
      "env": {
        "SWARM_WALLET_KEY": "0x…",
        "SWARM_MAX_USD": "1"
      }
    }
  }
}
  • SWARM_WALLET_KEY: the private key of the wallet that pays. Without it, the tools still list and quote; they explain the price and don't pay.
  • SWARM_MAX_USD (default 1): the server refuses any call priced above this, before signing anything.

AgentCash: npx agentcash add https://swarm-agent.net

How payment works

Each call first reads SWARM's 402 quote without paying. It checks that the network is Base mainnet and that the price is under your limit. Then it pays with the official x402 client (@x402/fetch). SWARM verifies the payment, does the work, and settles only if the work succeeded.

If a call fails

A failed call is a normal tool result with isError: true. Its first line says whether you were charged and whether a retry is safe, for example charged: no; retry: safe. The tool never retries on its own.

  • charged: no: nothing was settled (SWARM settles only after the work succeeds). A retry signs a new payment.
  • charged: yes: the receipt carries the transaction hash. Do not pay again; write to contact@swarm-agent.net with it.
  • charged: unknown: the connection broke after a payment was signed. Check your wallet before calling again.

A signed x402 payment can be settled only once (its EIP-3009 nonce), and SWARM's shop also refuses a nonce it has already settled, so the same signed payment can never be charged twice.

Links

MIT licence.

Frequently asked questions

What is swarm-x402-mcp MCP Server?

Pay-per-call x402 services: repo scans, web research, site checks, page text. USDC on Base.

How do I install swarm-x402-mcp MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. swarm-x402-mcp MCP Server runs locally from the npm package swarm-x402-mcp with the command npx -y swarm-x402-mcp@0.1.4.

Is swarm-x402-mcp MCP Server free and open source?

Yes. swarm-x402-mcp MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does swarm-x402-mcp MCP Server support remote (HTTP) connections?

No remote endpoint is listed for swarm-x402-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does swarm-x402-mcp MCP Server provide?

swarm-x402-mcp MCP Server provides 3 tools: code_health, read_page, and site_check. See the full tool list for descriptions and parameters.

How is swarm-x402-mcp MCP Server's trust score calculated?

swarm-x402-mcp MCP Server scores 70 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server