Skip to main content
Glama
arbitron

arbitron

@arbitron/cli

Zero-dependency MIT CLI and stdio MCP bridge (JSON-RPC 2.0, MCP protocol 2025-06-18) for Arbitron — a multi-market trading terminal and MCP workspace for CEX, Perp-DEX, DEX, TradFi, and prediction markets.

  • Zero external runtime dependencies — uses only built-in Node.js modules (>= 22.18, native TypeScript stripping).

  • Dynamic platform contract — fetches up-to-date workspace schemas, operations, and widget SDK docs via GET /v1/docs.

  • Parity with Remote MCP — use either the hosted Streamable HTTP endpoint (https://arbitron.dev/mcp) or this local stdio MCP bridge + shell CLI.

  • Safe credential handling — stores credentials in ~/.config/arbitron/credentials.json with 0600 permissions, or reads ARBITRON_TOKEN from the environment.

Related MCP server: MarketSage

Issue a Bearer token in the terminal (Agent -> Tokens) or via @arbdevbot, export ARBITRON_TOKEN, and connect directly to https://arbitron.dev/mcp:

  • Claude Code:

    claude mcp add --transport http arbitron https://arbitron.dev/mcp \
      --header "Authorization: Bearer $ARBITRON_TOKEN"
  • Cursor / Windsurf (mcp.json): see mcp/remote-http.json

  • Codex CLI (~/.codex/config.toml): see mcp/codex-remote.toml

Option B: Run @arbitron/cli Locally (Shell & Stdio MCP)

Requires Node.js >= 22.18.

git clone https://github.com/arbitron-adm2/arbitron-cli.git
cd arbitron-cli

# Inspect CLI help
node src/main.ts --help

# Fetch platform documentation
node src/main.ts docs

Authentication

Provide ARBITRON_TOKEN via environment variable (takes precedence over the credentials file):

export ARBITRON_URL="https://arbitron.dev"
export ARBITRON_TOKEN="<YOUR_ARBITRON_TOKEN>"

Or save a token to ~/.config/arbitron/credentials.json (0600):

node src/main.ts connect "<YOUR_ARBITRON_TOKEN>"
# Or issue a fresh anonymous token directly:
node src/main.ts connect --issue

Common CLI Commands

# Platform docs & widget SDK reference
node src/main.ts docs [--json]

# Workspace areas
node src/main.ts area list
node src/main.ts area get <areaId> [--code]
node src/main.ts area create <areaId> [--name "My Desk"]
node src/main.ts area delete <areaId> [--if-match <rev>]

# Atomic layout / widget operations
node src/main.ts apply <areaId> --ops '[{"op":"rename","name":"BTC Desk"}]' --if-match 1

# Live terminal session & UI commands
node src/main.ts session
node src/main.ts ui set_theme --theme dark

# Read-only market data (/api/<path>)
node src/main.ts data quotes/batch --param symbols=BTCUSDT,ETHUSDT
node src/main.ts data predictions/markets --param limit=10

# Start stdio MCP server
node src/main.ts mcp

Stdio MCP Client Config

{
  "mcpServers": {
    "arbitron": {
      "command": "node",
      "args": ["/ABS/PATH/TO/arbitron-cli/src/main.ts", "mcp"],
      "env": {
        "ARBITRON_URL": "https://arbitron.dev",
        "ARBITRON_TOKEN": "${ARBITRON_TOKEN}"
      }
    }
  }
}

License

MIT — see LICENSE.

Tool Schema Changelog

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

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to interact with MetaTrader 5 for market data, live streaming, and trading operations, running locally over stdio.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides LLM clients with market intelligence tools over stdio, including market snapshots, price history, sentiment scoring, evidence search, and research briefs, with saved-run resource access.
      AGPL 3.0
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables agents to interact with Ethereum, Base and configurable EVM chains over stdio using the shared command catalog, covering contract reads, prepared and policy-guarded execution, wallet management, Socket swaps and bridging, simulation, monitoring and saved contracts.
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to manage accounts and trade on 20+ cryptocurrency exchanges (Binance, Bybit, OKX, Kraken, Hyperliquid and more) through unified tools for placing and canceling orders, checking balances, positions and PnL, fetching market data, and controlling leverage. Includes session management, paper-trading mode, and hosted or self-hosted HTTP/stdio deployment.
      -