rail402 MCP Discovery
Provides tools for discovering and calling paid APIs on the Stellar network using x402 payments, including a spend-capped paid-call tool.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@rail402 MCP DiscoverySearch Bazaar for a weather API and make a call with a 5 XLM cap."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Rail402
x402 payments infrastructure for Stellar: a facilitator, a discovery layer (Bazaar), an MCP server for agents, a payments explorer, and the SDKs to build on all of it.
Live facilitator (testnet): https://facilitator.rail402.dev
What's here
Directory | What it is |
| x402 verify / settle / supported service for |
| catalog, automatic cataloging at verify/settle, |
| MCP server exposing search and a spend-capped paid-call tool |
| indexes and classifies x402 settlements from the Stellar ledger, serves a public read API |
| command-line wallet and agent tool ( |
| interactive demo of the discover → pay loop |
| documentation site |
| error registry, seller/agent helpers, the |
| Soroban contracts: |
| end-to-end integrations: paid API + agent, MCP tool seller, smart-account buyer |
Payment schemes: exact and upto (authorize a ceiling, settle actual usage — backed by a small Soroban contract). Buyers can be classic keypairs or smart accounts; network fees are sponsored so buyers need no XLM.
Related MCP server: x402-gateway-mcp
Run it
pnpm install
pnpm --filter @rail402.dev/facilitator dev # needs a funded testnet secret, see apps/facilitator/.env.exampleOr with Docker (facilitator + Bazaar in one image):
docker build -t rail402 . && docker run -p 8080:8080 --env-file .env rail402Checks
pnpm verify # lint + typecheck + tests + dependency license gate
pnpm testSettlement evidence (transaction hashes, conformance runs, rejection audits) is generated into docs/status/.
Packages
Published under the @rail402.dev scope on npm.
License
Apache-2.0. See LICENSE and NOTICE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Verify and settle x402 stablecoin payments; browse the PayAI Bazaar of x402-payable resources.
Discover machine-payable APIs, probe x402 payment terms, and run seller operations. Non-custodial.
Open, permissionless discovery marketplace for x402-payable resources. No account or KYC required.
Pay for APIs with USDC. Read-only x402 payment discovery, verification, evidence, and status.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI agents to access a marketplace of paid tools by automatically handling Stellar blockchain payments and wallet management. It utilizes the X-402 protocol to facilitate transparent, automated transactions for tool usage through a marketplace backend.-
- AlicenseAqualityFmaintenanceEnables MCP clients to access all endpoints of an x402 gateway by paying real-time microtransactions (USDC on Base) per API call, with automatic tool discovery and spend guardrails.2340 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to discover, query, and pay for HTTP endpoints and MCP tools using Stellar USDC/SEP-41 stablecoins through a federated P2P bazaar catalog and x402 payment facilitator.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables agents to access production-grade paid MCP tools with real on-chain x402 v2 settlement, including EVM wallet risk scoring, payload normalization, and facilitator discovery, all discoverable via Bazaar-compatible metadata.MIT