x402 Crediting Swarm MCP Server
3-node x402 consensus credit scoring swarm and AgentMail threat alerts on Base USDC.
x402 Crediting Swarm scores 63 (Good), licensed MIT and written in TypeScript. It can be reached as a remote MCP endpoint. It does not declare tools yet. Filed under Uncategorized. GitHub shows 0 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
63 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade C
65/100 for listing completeness. Lost points: no listed tools, short summary.
How quality is graded
Where the 63 comes from
22 + 20 + 0 + 10 + 4 + 7 = 63. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 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.
{ "mcpServers": { "kwizzlesurp10-ctrl-x402-crediting-swarm": { "url": "https://x402-crediting-swarm.vercel.app/mcp" } }}
Environment variables
This server does not declare environment variables.
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
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:
- Endpoint identity & reputation verification
- Transaction risk assessment
- Credit score 0–1000 and a definitive GO / NO-GO
| Score | Trust | Recommendation |
|---|---|---|
| 800–1000 | High | GO — safe to auto-pay |
| 500–799 | Moderate | NO-GO (Caution) — confirm or escrow |
| 0–499 | Low / fraud | NO-GO — do not pay |
HTTP surface
| Path | Auth | What |
|---|---|---|
GET / | free | Operator console |
GET /openapi.json | free | AgentCash OpenAPI 3.1 + x-payment-info |
GET /llms.txt | free | Agent-oriented usage brief |
GET /api/swarm | free | Resource catalog (price, network, payTo, body schema) |
POST /api/swarm | x402 $0.05 USDC | Run Alpha + Beta + Gamma, return consensus report |
GET /.well-known/x402 | free | x402 catalog (legacy) |
GET /.well-known/funding.json | free | payTo / 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:
| Source | Call | Price |
|---|---|---|
| SYNTHORA preflight | POST https://x402meta.hergertsynthora.com/service | $0.01 |
| Market Intel payment risk | POST …/v1/x402/payment_risk | $0.01 |
| Market Intel seller score | POST …/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
| Variable | Default | Notes |
|---|---|---|
AI_GATEWAY_API_KEY | — | Vercel AI Gateway key for Alpha/Beta/Gamma (provider/model strings) |
SWARM_MODEL | google/gemini-3.8-flash | AI Gateway model id |
X402_PAY_TO_ADDRESS | 0x0d25A44f74868eCE53B305C97139CF4B62963410 | Same payTo as x402-mcp |
X402_EVAL_PRICE | $0.05 | Dollar string; USDC on the network |
X402_NETWORK | auto | eip155:8453 when CDP keys are set, else Base Sepolia eip155:84532. Public listings need mainnet. |
X402_FACILITATOR_URL | auto | CDP 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_ORIGIN | Railway public URL | Canonical 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
- Protocol: x402
- Seller/buyer MCP already live on Base: kwizzlesurp10-ctrl/x402-mcp
Frequently asked questions
What is x402 Crediting Swarm MCP Server?
3-node x402 consensus credit scoring swarm and AgentMail threat alerts on Base USDC.
How do I install x402 Crediting Swarm 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. x402 Crediting Swarm MCP Server connects to the remote endpoint https://x402-crediting-swarm.vercel.app/mcp, so there is nothing to install locally.
Is x402 Crediting Swarm MCP Server free and open source?
Yes. x402 Crediting Swarm 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 x402 Crediting Swarm MCP Server support remote (HTTP) connections?
Yes. x402 Crediting Swarm MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.
How is x402 Crediting Swarm MCP Server's trust score calculated?
x402 Crediting Swarm MCP Server scores 63 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
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.