Skip to main content
Glama

RailX MCP

Put the stock market in your app. RailX is the trading API for tokenized stocks on Robinhood Chain, with market tools for AI agents.

The official MCP server gives Claude, Cursor, and other MCP clients the tools to find Stock Tokens, get quotes, and prepare policy-checked trades. Your agent gets an explainable verdict and unsigned transactions. Your wallet signs.

Documentation · OpenAPI · npm · Support

Install

npm install -g @railx/mcp

Or let your MCP client run the current package with npx:

{
  "mcpServers": {
    "railx": {
      "command": "npx",
      "args": ["-y", "@railx/mcp"],
      "env": {
        "RAILX_PROJECT_KEY": "railx_test_..."
      }
    }
  }
}

Related MCP server: Blocksize Market Data

Configuration

  • RAILX_PROJECT_KEY is required. Use a scoped railx_test_ or railx_live_ project key.

  • RAILX_BASE_URL is optional and defaults to https://railx.dev/api/v0.

Start with a test key from the dashboard. Its calls use RailX's deterministic sandbox, need no funded wallet or provider credential, and move no funds. Keep the project key in your MCP client's environment configuration.

The package runs locally over stdio and delegates every operation to @railx/sdk. It targets API v0, uses the same project scopes and policies as HTTP, and never accepts signing material.

Try a sandbox trade

Ask your agent:

Use RailX to prepare an exact-input trade of 500 USDG for NVDA with wallet 0x0000000000000000000000000000000000000001. Show the verdict, checks, and unsigned transactions.

The agent calls railx_preflight_trade with:

{
  "wallet": "0x0000000000000000000000000000000000000001",
  "intent": {
    "type": "exact_input",
    "tokenIn": "USDG",
    "tokenOut": "NVDA",
    "amountIn": "500"
  }
}

allow returns a ready plan. warn returns review_required with transactions for human review. block returns no signable transactions. Inspect verdict and signing.unsignedTransactions in the result.

Tools

Tool

Operation

Required scope

railx_get_asset

Resolve a Stock Token or supported system token

market:read

railx_get_price

Read underlying and multiplier-adjusted reference prices

market:read

railx_get_corporate_actions

Read and filter corporate actions

market:read

railx_get_portfolio

Read wallet balances, optionally for up to 20 symbols

portfolio:read

railx_create_quote

Find an exact-input or exact-output route quote

trade:plan

railx_preflight_trade

Build, check, simulate, and persist a trade plan

trade:plan

railx_get_trade_plan

Retrieve a plan in the current project environment

trade:plan

railx_simulate_transactions

Simulate one to eight unsigned transactions

transaction:simulate

Successful quotes, new plans, and simulations use one checked-action unit. Reads and plan replays use no checked-action units; authenticated request limits still apply. The public launch is free.

For exact output, use intent.type: "exact_output" with amountOut. Slippage is a percentage from 0.01 to 5, in 0.01% increments. Preflight accepts an optional idempotencyKey of 16–128 URL-safe characters; reuse it only for the same intent. Simulation accepts gasLimit, gasPrice, maxFeePerGas, and maxPriorityFeePerGas as decimal or hexadecimal quantity strings, matching the HTTP API.

Upgrade from 0.1

Version 0.2 uses the RailX namespace for all tools. Replace saved rail_* tool names with railx_* and refresh your MCP client's tool list. Package versions are independent of the API v0 route.

Requirements

License

MIT

Available Tools

8 tools
railx_create_quoteB

Find an exact-input or exact-output route quote. A successful quote uses one checked-action unit. Executable transactions come from railx_preflight_trade.

Inputs: intent (required), wallet (required), slippageTolerance.

railx_get_assetC
Read-only

Read canonical Robinhood Chain asset metadata. Read-only.

Inputs: symbol (required).

railx_get_corporate_actionsC
Read-only

Read splits, dividends, and other Stock Token actions. Read-only.

Inputs: type, limit, status, symbol.

railx_get_portfolioC
Read-only

Read wallet balances and Stock Token positions. Read-only.

Inputs: wallet (required), symbols, includeZero.

railx_get_priceA
Read-only

Read reference bid/ask and multiplier-adjusted token price. Read-only; not an executable quote.

Inputs: symbol (required).

railx_get_trade_planB
Read-only

Retrieve a previously created durable trade plan. Read-only and scoped to the current project environment.

Inputs: planId (required).

railx_preflight_tradeA

Build and simulate a policy-checked trade plan with an allow, warn, or block verdict. New plans use one checked-action unit. Transactions are unsigned; blocked plans contain nothing signable.

Inputs: intent (required), wallet (required), idempotencyKey, slippageTolerance.

railx_simulate_transactionsC

Simulate an ordered transaction sequence. A successful simulation uses one checked-action unit. RailX never signs or submits transactions.

Inputs: transactions (required), wallet.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 8 tools

    Disambiguation4/5

    The four read tools (asset, price, corporate_actions, portfolio) each target a clearly distinct resource, and get_trade_plan is unambiguous. However create_quote, preflight_trade, and simulate_transactions all involve route/trade planning and simulation, so their boundaries rely heavily on the descriptions to separate them.

    Naming Consistency5/5

    All tools use a consistent railx_ prefix followed by a verb_noun pattern (get_asset, get_price, create_quote, preflight_trade, simulate_transactions), making the surface highly predictable.

    Tool Count5/5

    Eight tools is well-scoped for a read-plus-planning/simulation server, with each tool covering a distinct resource or lifecycle step.

    Completeness4/5

    The read surface plus quote, preflight, plan retrieval, and simulation covers the stated domain, and omitting transaction submission is explicitly by design. Minor gaps exist, such as no tool to list or manage multiple existing plans.

    Maintenance

    ActivityNo data
    ResponsivenessSyncing

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      D
      maintenance
      Enables querying real-time and historical financial market data for stocks, options, forex, and crypto, including quotes, trades, technical indicators, and reference data through a set of MCP tools.
      71
      3
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Read-only MCP server for Blocksize real-time market data: crypto VWAP, bid/ask, FX, metals and tokenized equities, with pricing, coverage and x402 endpoint lookup. Signed-in users of the Claude, ChatGPT and Cursor connectors get 30,000 free live-data credits every month (1 credit = $0.001); subscriptions from EUR 49/month.
      7
      1
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      Enables MCP clients to read Toss Securities market data and account info, and optionally place real-money orders.
      20
      -