Skip to main content
Glama

Relaystation MCP server

A single hosted Model Context Protocol server for pay-per-call agent infrastructure — one endpoint, one prepaid balance, no per-tool signup.

Connect: https://api.relaystation.ai/mcp (streamable HTTP)

Relaystation is a prepaid storage and utility provider for agents and developers. Pay per call with x402 (EIP-3009 USDC/EURC on Base — the wallet is the identity, no account required) or a prepaid balance. No subscription, no minimum, no commitment.

The hosted server is the primary way to connect — there's nothing to run and it stays current automatically. This repo also ships a tiny local stdio connector (docker run / npx) for MCP clients that only speak stdio, or that prefer to hold the key in their own environment. The local connector introspects offline (no key needed) and forwards tool calls to the hosted API.

Capabilities

One MCP server covers the whole surface (150+ tools):

  • Storage & handoff (Batons) — durable, shareable storage objects agents create, append to, read, cryptographically witness, and hand off to other agents or people. Presets: file drop, burn-after-read pass, shared scratchpad, state checkpoint, tamper-evident ledger, vector index. create_baton, read_baton, append_to_baton, mint_token, witness_baton, …

  • Messaging (Courier) — ask a human (Telegram / email / SMS) and wait for the reply, message another agent, mint and read agent inboxes. ask_operator, notify_operator, message_agent, …

  • Compute (cputools) — PDF (merge/split/OCR/render/watermark/sign-verify), data & CSV ETL (SQL/filter/join/pivot), images, audio/video, text, QR/barcodes, archives, office-doc conversion, chart/invoice/QR generators, and multi-step pipelines. pdf_ocr, data_sql, image_convert, …

  • Language & AI tasks — translate, summarize, extract-to-JSON, classify, proofread, rewrite, keywords, title, sentiment, JSON-repair; task-based, cost-plus. llm_translate, llm_extract, …

  • Documents & identity — send PDFs for e-signature, verify government IDs (KYC), screen names against sanctions/PEP lists, create binding agent contracts. esigndoc_create, idverify_create, screen_name, create_contract, …

  • Retrieval — vector search + one-call grounded RAG over a vector baton.

It's a search-first surface: a small hot set is listed directly; use search_tools to find any tool, describe_tool for its schema, and call_tool to run it. The complete roster is at https://api.relaystation.ai/mcp/full.

Related MCP server: gapup-mcp

Connect

Add the URL as a connector in your MCP client and approve once in the browser (Google / GitHub / Wallet — a wallet connects instantly and pays per call). The agent then spends your prepaid balance headlessly; revoke anytime at https://app.relaystation.ai → Connected agents.

{
  "mcpServers": {
    "relaystation": {
      "type": "streamable-http",
      "url": "https://api.relaystation.ai/mcp"
    }
  }
}

API key fallback

For clients without OAuth, append your key as a query parameter:

https://api.relaystation.ai/mcp?key=rs_live_...

Sign up and mint a key at https://app.relaystation.ai.

Local stdio connector (Docker / npx)

For clients that only support stdio servers, run the connector locally. It serves the hot-set tool definitions (generated from https://api.relaystation.ai/mcp/full, so schemas never drift) and forwards every tool call to the hosted API using RELAYSTATION_API_KEY from the environment. Introspection (initialize, tools/list) works with no key — the key is only needed to run a tool. Mint one at https://app.relaystation.ai.

Docker:

docker build -t relaystation-mcp .
docker run --rm -i -e RELAYSTATION_API_KEY=rs_live_... relaystation-mcp

npx (once published to npm):

npx relaystation-mcp

MCP client config (stdio):

{
  "mcpServers": {
    "relaystation": {
      "command": "npx",
      "args": ["-y", "relaystation-mcp"],
      "env": { "RELAYSTATION_API_KEY": "rs_live_..." }
    }
  }
}

Or point command at docker with args: ["run", "--rm", "-i", "-e", "RELAYSTATION_API_KEY", "relaystation-mcp"].

To refresh the local tool snapshot from the live catalog: npm run generate.

x402 per call (no account)

Every billable tool is also a plain HTTP route that accepts an X-Payment header (x402 v2, EIP-3009). One call carries the payload plus the payment; the wallet is the identity.

Discovery

Pricing

Pay-per-call, prepaid. Sub-cent pricing on most compute ops; storage priced by bytes × time × egress, quoted and frozen at purchase. No subscription, no minimum. See https://relaystation.ai/pricing.

Available Tools

14 tools
append_to_batonA

Write to a baton — append (for append / append-chained presets) or overwrite (for single-object / checkpoint presets). FREE (consumes the prepaid writes budget; no per-call charge). Owner or editor/write-token only. Set overwrite=true to replace in full on overwrite-shaped batons. Example: append_to_baton {id:"bat_", content:""}

Inputs: id (required), content (required), overwrite, version_id, +2 more.

ask_operatorA

Send a question to the human operator via their Telegram and wait for their reply. Use when you need a decision, approval, or clarification you can't infer from the conversation. The operator gets a Telegram notification on their phone; their reply comes back to you here. Typical reply latency: 1-15 minutes when operator is away from desk; ~10 seconds when at-desk. Cost: $0.005 above the daily free tier (5 free/day). If the operator has disabled the bridge ("at desk"), this returns immediately with a 'use in-IDE interaction' hint — fall through to the host IDE's chat surface. For long messages (>4KB), use ask_operator_email (needs an OAuth-linked email address — wallet-only customers should attach a Baton instead) or attach a Baton via attached_baton_id (saves the long content as a re-readable workspace; $0.01). ASK = blocks until the operator replies (vs notify_operator = one-way, no reply). Example: ask_operator {message:'Deploy to prod now?'}

Inputs: message (required), max_wait_seconds, attached_baton_id.

balanceA

Your current Relaystation balance and available (post-hold) credit, plus account profile. Read-only, FREE. Requires your rs_live_* key (or wallet-JWT / MCP token); scoped to YOUR account only. Example: balance {}

Inputs: no named parameters.

call_toolA

Run a tool found via search_tools by name, passing its arguments. Dispatches the safe/billable utility tools (the cputools catalog + free reads/quotes) through the identical auth + billing + validation as a direct call. Consequential tools (account, money, credential, messaging — e.g. create_topup_link, create_baton, mint_token, ask_operator) are NOT dispatchable here: call them directly by name so your client can gate them with per-tool consent. FREE to invoke (the wrapped tool bills itself). Example: call_tool {name:"pdf_merge", arguments:{files:[{inputKey:""},{inputKey:""}]}}

Inputs: name (required), arguments.

create_agent_addressA

Mint a new ephemeral Relaystation address for this agent to receive messages from other agents. Returns a unique <local_part>@courier.relaystation.ai address tied to this agent's customer. Free up to the daily mint cap (default 10/day per customer); above-cap mints debit bridge.agent_address.over_cap_price_micros (default $0.001) via Pattern A. purpose_label is informational. ttl_seconds defaults to 24h; addresses past TTL bounce inbound messages. Example: create_agent_address {purpose_label:"inbox-for-task-42"}

Inputs: ttl_seconds, purpose_label.

create_batonA

Create a baton — a prepaid storage object. Pick a preset (drop=store a file, pass=share a file, scratchpad=collaborate via append log, checkpoint=overwrite snapshot, ledger=hash-chained tamper-evident log) and optional tier, or supply a customShape. BILLABLE: charged once at create (the engine quote of the shape; quote it first with quote_baton). Funded from your balance via your rs_live_* key. Pass inline content (≤3MB; base64 for binary) or omit and write later with append_to_baton. flags.hashChaining=true makes an append log tamper-evident (auto-includes a prepaid witness). NOTE: hash-chained batons (ledger preset, or flags.hashChaining=true) MUST be created empty — do NOT pass content (returns 422 CHAINED_BATON_REQUIRES_EMPTY_CREATE); create empty, then append_to_baton for entry 1. Example (store): create_baton {preset:"drop", tier:"femto", content:""}. Example (hash-chained): create_baton {preset:"ledger", tier:"femto", flags:{hashChaining:true}} then append_to_baton.

Inputs: preset (required), name, tags, tier, +6 more.

create_contractA

Create a binding-by-goodwill agreement between agents/parties and get back a contractId + termsHash + per-signer read tokens. The contract IS a hash-chained, auto-witnessed record (terms = entry 1, consents append after); it is tamper-evident and permanently verifiable, but it is NOT legally binding, NOT court-enforceable, and involves NO escrow or money movement — enforcement rests on the good faith of the parties. BILLABLE (contracts.create, charge-on-attempt). The system appends a canonical signature block (and, if arbitration:true, an arbitration block) to your terms — your terms body must NOT itself contain those blocks. Each required signer is identified by EXACTLY one method: a "wallet" (0x-address, satisfied only by an EIP-712 ContractConsent signature) or an "account" (a Relaystation customerId, satisfied only by that authenticated account). Input: { terms (required), requiredSigners: [{ identity, kind: "wallet"|"account" }] (required, ≥1), arbitration?: boolean, signingWindowSeconds?: int (default 72h) }. Requires an Idempotency-Key. Returns { id, batonId, termsHash, status, signingDeadline, requiredSigners, tokens: [{ identity, tokenId }] }. Hand each signer their read token + the contractId + termsHash so they can review and sign. Example: create_contract {terms:"Both parties agree…", requiredSigners:[{identity:"0xABC…", kind:"wallet"}, {identity:"", kind:"account"}]}.

Inputs: terms (required), requiredSigners (required), arbitration, signingWindowSeconds.

describe_toolA

Get one tool's full description and input schema by exact name (as returned by search_tools). FREE. Example: describe_tool {name:'pdf_merge'}

Inputs: name (required).

message_agentA

Send a message to another Relaystation agent's ephemeral address (format <local_part>@courier.relaystation.ai). Same-Relaystation routing only (v2 launch); external domains return EXTERNAL_DOMAIN_NOT_SUPPORTED_V2. Free — agent-to-agent traffic has no per-message cost (subject to the recipient's per-address inbox quota; default 100 messages within the 30-day retention window). Use for multi-agent coordination: delegating subtasks, sharing context, building chains. For ongoing coordination involving 30+ messages, prefer a shared LEDGER or SCRATCHPAD Baton (better search/audit/verification at $0.01 setup). Example: message_agent {to_address:'agent-7@courier.relaystation.ai', body:'Status update: task ready'}

Inputs: body (required), to_address (required), subject, attached_baton_id.

mint_tokenA

Mint a collaborator token for a baton so another agent can read and/or write without your key. FREE. type is read / write / read_write; optionally cap reads_allowed / writes_allowed, set an expiry, or restrict by IP. Up to 100 tokens per baton. Owner only. Returns the token id (tok_…) — share it as the baton credential. Example: mint_token {id:"bat_", type:"read_write"}

Inputs: id (required), type (required), expires_at, ip_allow_list, +3 more.

read_batonA

Read a baton's content + metadata. FREE (reads draw down the prepaid egress budget, no per-call charge). Address by owner id (requires your key) or by a collaborator token id (tok_…, the token IS the credential). Large multi-entry batons return a presigned download URL or a hint to page via list-entries; small content returns inline. Example: read_baton {id:"bat_"}

Inputs: id (required).

search_toolsA

Search the full Relaystation tool catalog by keyword and get back the best matches. Use this first to find a tool, then describe_tool for its schema and call_tool to run it (or call a named hot tool directly). query is free text (e.g. "merge pdf", "csv to json", "send telegram"). detail controls how much is returned per match: "name" | "summary" (default) | "full" (with inputSchema). limit defaults to 5. FREE. Example: search_tools {query:"merge pdf", limit:5}

Inputs: query (required), limit, detail.

sign_contractA

Append your consent to a contract (one entry on its hash chain). FREE. Two forms, no cross-method satisfaction: a "wallet" signer supplies an EIP-712 ContractConsent signature over the contract's termsHash (the signature IS the authentication — no account needed); an "account" signer must be authenticated as the matching Relaystation customerId. When the LAST required signer signs, the contract becomes "executed" and is witnessed. The EIP-712 typed data is domain { name:"Relaystation Contracts", version:"1", chainId } / ContractConsent(string contractId, bytes32 termsHash). Input: { id (contractId), method:"wallet", walletAddress, signature } OR { id, method:"account" }. Returns the updated contract view. Example: sign_contract {id:"", method:"account"}

Inputs: id (required), method (required), signature, walletAddress.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 14 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes: meta-tools (search/describe/call), messaging, baton storage, contracts, and account management are well separated. The main ambiguity is call_tool versus direct invocation for non-consequential tools, and ask_operator versus message_agent could be confused without careful reading.

    Naming Consistency4/5

    The vast majority follow a verb_noun pattern (create_baton, read_baton, sign_contract, search_tools, etc.), which is predictable and readable. Minor deviations include the noun-only 'balance' and the plural 'search_tools' versus singular 'describe_tool'.

    Tool Count5/5

    14 tools is well within the ideal range for a server covering multiple coherent domains: tool discovery, agent messaging, baton storage, contracts, and account management. Each tool earns its place and none feel redundant.

    Completeness2/5

    There are significant lifecycle gaps: messaging has send and address creation but no inbox/read/delete tool; batons reference list-entries but no such tool exists, and there is no delete/list; contracts have create/sign but no get/list/verify. These gaps will cause agent failures in multi-agent coordination and large-baton workflows.

    Maintenance

    ActivityInactive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      20 pay-per-call utility tools for AI agents via x402 USDC micropayments on Base. Screenshots, OCR, PDF, web scraping, weather, forex rates, crypto/stock prices, DNS, geocoding, translation, and more. $0.001–$0.008 per call. No API keys, no signup.
      127
      1
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      100+ agent-payable C-suite expertises with x402 micro-payments — competitive intel, SEC filings, sanctions, KYC, clinical evidence, real estate, ESG. 183 tools, free tier 100 calls/month.
      1
      -
    • F
      license
      Not graded
      quality
      B
      maintenance
      Provides 63 production-ready API tools for AI agents, including web scraping, AI generation, crypto data, OCR, image generation, audio transcription, text-to-speech, email, and domain lookup.
      3
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to call 60+ small, fast utility tools with per-call USDC payments on Base or Solana, covering conversions, validation, lookups, media processing, and blockchain data. It requires no account, API key, or subscription, and includes spending limits for safety.
      70 npm
      MIT