rail402 MCP Discovery
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.
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.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tolgayayci/rail402'
If you have feedback or need assistance with the MCP directory API, please join our Discord server