Back to Browse

X402 Crediting Swarm MCP Server

Developer ToolsUse Caution1.5MCP RegistryRemote
Free

Server data from the Official MCP Registry

3-node x402 consensus credit scoring swarm and AgentMail threat alerts on Base USDC.

About

3-node x402 consensus credit scoring swarm and AgentMail threat alerts on Base USDC.

Remote endpoints: streamable-http: https://x402-crediting-swarm.vercel.app/mcp

Security Report

1.5
Use Caution1.5Critical Risk

The server has a major authentication/payment bypass risk: the legacy /api/mcp/tools route executes agentmail_send and agentmail_inbox with no x402 payment or auth check and wide-open CORS, and the home client sends a client-controlled fee_paid flag and a simulated X-PAYMENT string that the swarm route may trust. Permissions (network calls to external x402 and AI APIs, env var secrets, and outbound messaging) are broadly consistent with the stated purpose, but the unpaid mail-sending path and the lack of verified payment on the swarm route far exceed what the server should allow. Supply chain analysis found 7 known vulnerabilities in dependencies (0 critical, 1 high severity).

8 files analyzed · 13 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Found in Source Code

Found by scanning the linked source code. This listing connects to a hosted endpoint, so none of this runs on your machine: it describes what the server software does where it is hosted.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Applies to the server that hosts this plugin, not to your machine.

database

Applies to the server that hosts this plugin, not to your machine.

process_spawn

Applies to the server that hosts this plugin, not to your machine.

How to Connect

Remote Plugin

No local installation needed. Your AI client connects to the remote endpoint directly.

Add this to your MCP configuration to connect:

{
  "mcpServers": {
    "io-github-kwizzlesurp10-ctrl-x402-crediting-swarm": {
      "url": "https://x402-crediting-swarm.vercel.app/mcp"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

x402 Crediting Swarm

Three-node swarm (Alpha, Beta, Gamma) that scores x402 Payment Required calls so agentic clients can decide GO / NO-GO before they pay a catalog vendor.

Last commit shipped a Next.js console with real Gemini evaluation and no mocked scores. The leftover mock — a client-side “Pay Fee” boolean the server trusted — is gone. POST /api/swarm is now a real x402 resource: unpaid requests get HTTP 402 with a PAYMENT-REQUIRED challenge; paid requests settle through a facilitator, then the three nodes run.

Mission

Protect agentic buyers from fraudulent micropayment requests. Given an x402 payload plus marketplace metadata, the swarm returns:

  1. Endpoint identity & reputation verification
  2. Transaction risk assessment
  3. Credit score 0–1000 and a definitive GO / NO-GO
ScoreTrustRecommendation
800–1000HighGO — safe to auto-pay
500–799ModerateNO-GO (Caution) — confirm or escrow
0–499Low / fraudNO-GO — do not pay

HTTP surface

PathAuthWhat
GET /freeOperator console
GET /openapi.jsonfreeAgentCash OpenAPI 3.1 + x-payment-info
GET /llms.txtfreeAgent-oriented usage brief
GET /api/swarmfreeResource catalog (price, network, payTo, body schema)
POST /api/swarmx402 $0.05 USDCRun Alpha + Beta + Gamma, return consensus report
GET /.well-known/x402freex402 catalog (legacy)
GET /.well-known/funding.jsonfreepayTo / network

Unpaid POST /api/swarm:

HTTP/1.1 402 Payment Required
PAYMENT-REQUIRED: <base64 x402 v2 JSON>

Retry with a signed PAYMENT-SIGNATURE (@x402/fetch, CDP CdpX402Client, or x402-mcp x402.pay_and_fetch).

Body:

{
  "caller_id": "agent_web_001",
  "payload": {
    "endpoint_url": "https://api.example/v1/resource",
    "vendor_id": "vendor_crypto_993x",
    "requested_amount_sats": 500,
    "vendor_history": { "fulfillment_rate": 0.98, "dispute_ratio": 0.01 }
  }
}

Local

cp .env.example .env.local
npm install
npm run dev

Open http://localhost:3000. Click Initiate Swarm Evaluation — you should see a 402, not a fake Paid badge. That is success for the unpaid path.

Canonical buyer is AgentCash — agents pay the 402 with the operator wallet, no API keys:

npx agentcash@latest fetch http://localhost:3000/api/swarm \
  -m POST --payment-network base --payment-protocol x402 \
  -b '{"caller_id":"agentcash","payload":{"endpoint_url":"https://example/v1"}}'

Validate discovery:

npx -y @agentcash/discovery@latest discover http://localhost:3000
npx agentcash@latest discover http://localhost:3000

Public listings (after a Railway HTTPS domain is live):

npx agentcash@latest register https://YOUR-SERVICE.up.railway.app

x402scan register · mppscan register after adding MPP.

Humans can still Pay with wallet (injected EIP-1193) to sign the EIP-3009 USDC authorization.

The swarm itself spends AgentCash USDC on live x402 intel before scoring:

SourceCallPrice
SYNTHORA preflightPOST https://x402meta.hergertsynthora.com/service$0.01
Market Intel payment riskPOST …/v1/x402/payment_risk$0.01
Market Intel seller scorePOST …/v1/x402/seller_score$0.05

If the AgentCash wallet is empty, nodes must not invent Bazaar/payTo facts — they flag insufficient_balance instead. Operator buyer is the x402-mcp hot wallet 0xc22c17Fca624dB679B2471f2Bb099E1E29a46209. That spend key stays local; the Railway seller only has X402_PAY_TO_ADDRESS.

Node evaluation goes through Vercel AI Gateway (AI_GATEWAY_API_KEY). Settlement needs a facilitator that supports the configured network.

Environment

VariableDefaultNotes
AI_GATEWAY_API_KEY—Vercel AI Gateway key for Alpha/Beta/Gamma (provider/model strings)
SWARM_MODELgoogle/gemini-3.8-flashAI Gateway model id
X402_PAY_TO_ADDRESS0x0d25A44f74868eCE53B305C97139CF4B62963410Same payTo as x402-mcp
X402_EVAL_PRICE$0.05Dollar string; USDC on the network
X402_NETWORKautoeip155:8453 when CDP keys are set, else Base Sepolia eip155:84532. Public listings need mainnet.
X402_FACILITATOR_URLautoCDP when keys are set; PayAI (https://facilitator.payai.network) on mainnet without CDP; else https://x402.org/facilitator
CDP_API_KEY_ID / CDP_API_KEY_SECRET—Ed25519 JWT auth for Coinbase CDP facilitator (same as x402-mcp)
BASE_URL / PUBLIC_ORIGINRailway public URLCanonical HTTPS origin for OpenAPI servers and 402 resource.url

Set the CDP keys to sell/settle on Base mainnet. The public host should never hold a spend key.

Swarm config

Node roles and the shared system prompt live in swarm.yaml. The API route inlines the same prompt so Alpha / Beta / Gamma stay aligned with the YAML.

Related

Reviews

No reviews yet

Be the first to review this server!