Skip to main content
Glama
tolgayayci

rail402 MCP Discovery

by tolgayayci

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

apps/facilitator

x402 verify / settle / supported service for stellar:testnet, with sponsored fees and the Bazaar co-deployed

apps/bazaar

catalog, automatic cataloging at verify/settle, /discovery/resources and /discovery/search (hybrid BM25 + embedding ranking)

apps/mcp-discovery

MCP server exposing search and a spend-capped paid-call tool

apps/explorer

indexes and classifies x402 settlements from the Stellar ledger, serves a public read API

apps/cli

command-line wallet and agent tool (rail402)

apps/playground

interactive demo of the discover → pay loop

apps/docs

documentation site

packages/*

error registry, seller/agent helpers, the upto scheme, conformance harness, canaries, umbrella SDK

contracts/

Soroban contracts: upto settlement and an agent spending policy

examples/

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-discovery

Run it

pnpm install
pnpm --filter @rail402.dev/facilitator dev   # needs a funded testnet secret, see apps/facilitator/.env.example

Or with Docker (facilitator + Bazaar in one image):

docker build -t rail402 . && docker run -p 8080:8080 --env-file .env rail402

Checks

pnpm verify   # lint + typecheck + tests + dependency license gate
pnpm test

Settlement 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.

A
license - permissive license
-
quality - not tested
-
maintenance - not tested

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    -
    maintenance
    Enables 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.
  • A
    license
    -
    quality
    D
    maintenance
    Discovers and queries x402-payable APIs at runtime — enables autonomous agents to find, evaluate, and pay for services via USDC micropayments on Base without API keys or subscriptions.
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    Enables 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.
    23
    89
    MIT

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

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