Trading MCP logo

Trading MCP

by @orderly.network

Trade on Orderly Network through a bundled CLI with wallet onboarding, market data, order management, and safety controls.

Install Trading MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "orderly-network-trading-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@orderly.network/trading-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio orderly-network-trading-mcp -- npx -y @orderly.network/trading-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

@orderly.network/trading-mcp connects MCP clients to Orderly Network through the bundled orderly CLI, which runs as a subprocess and uses the OS keychain for private keys. It provides wallet setup, account and market data, perpetual-futures order management, position controls, leverage operations, and a structured escape hatch for additional allowed CLI commands. Use it when an agent needs to inspect or manage an Orderly trading account while keeping private keys outside the MCP process. Mutations support safety controls such as dry-run previews, serialized execution, allowlists, timeouts, and optional mainnet blocking.

Use cases

  • Create and configure an Orderly trading wallet
  • Inspect balances, positions, margin, and market data
  • Preview and place perpetual-futures orders
  • Cancel orders or close positions with controlled mutations
  • Query extended Orderly CLI commands through MCP

Key features

  • Orderly Network trading through a bundled CLI
  • OS keychain storage for private keys
  • Perpetual order and position management
  • Market prices, order books, and candlestick data
  • Dry-run previews and mutation controls
  • Structured access to reviewed CLI commands

Tools20

What Trading MCP lets your agent do. Expand a tool for its parameters.

Verified live~4.3k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

What it can do

From the 20 tools this server returned when we ran it; 20 declare their own safety hints.

Runs commands · 4Can delete or modify data · 9Makes changes · 9Handles credentials · 4Makes network requests · 19Read-only tools · 10
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age23 days
Maintainers6

Observed 2026-12-03 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 3d ago via OSV.dev · @orderly.network/trading-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads2.1kPackage downloads in the last 30 days.
Last commit9d agoMost recent push to the default branch.
Tools exposed20Callable tools this server registers over MCP.

How Trading MCP works

What @orderly.network/trading-mcp does

@orderly.network/trading-mcp exposes Orderly Network trading operations through MCP. Its dedicated tools cover wallet creation and registration, API-key setup, account balances, positions, orders, market data, leverage, and position closing. The server also exposes CLI discovery and execution tools for supported operations that do not have dedicated MCP tools.

A new wallet can be onboarded through three calls: create the wallet, register it with a broker ID, and issue a read/trading API key. Existing wallets are configured from a terminal with orderly-trading-mcp setup. Wallet addresses and public API keys can be returned, but private keys are kept in the operating system keychain.

How it works

The MCP client communicates over stdio with the server. The server discovers the available command surface, validates structured arguments, and launches the bundled orderly CLI as a subprocess. The CLI then communicates with the Orderly API and accesses keychain-held credentials. The MCP process does not receive private keys or sign transactions.

The npm package includes a platform-specific CLI dependency, so a separate CLI installation is normally unnecessary. The ORDERLY_BIN setting can select an external compatible binary instead. If no usable binary is available, the server can still advertise its reviewed schemas, but calls return an installation or repair message unless bundled-schema behavior is disabled.

Setup and configuration

Install the package globally and run the diagnostic command:

Terminal
npm install -g @orderly.network/trading-mcp
orderly-trading-mcp doctor

The server requires Node.js 20 or newer. MCP clients can start it with npx -y @orderly.network/trading-mcp. Claude Code, Cursor, VS Code, and Codex configurations are documented using their respective MCP configuration files.

Useful configuration options include ORDERLY_MCP_ACCOUNT for selecting a default account, ORDERLY_MCP_NETWORK for a network override, ORDERLY_MCP_PROFILE for expanding the dedicated tool surface, and ORDERLY_MCP_TIMEOUT_MS for longer-running operations. ORDERLY_MCP_READ_ONLY=1 disables mutations, while ORDERLY_MCP_ALLOW_MAINNET=0 blocks mainnet mutations.

Tools and capabilities

  • Create, register, and add read/trading keys to wallets.
  • List stored accounts without returning secrets.
  • Read balances, positions, margin information, orders, prices, order books, candles, leverage, funding, and related CLI-supported data.
  • Place, inspect, cancel, and close perpetual-futures positions.
  • Change leverage and use dry-run previews where supported.
  • Discover CLI commands with orderly_commands, then run permitted reads with orderly_read or other allowed operations with orderly_run.
  • Select core, predict, algo, all, or full profiles for additional dedicated capabilities.

Limitations and notes

order_place should be previewed with dry_run=true before execution. Cancel-all operations are destructive and do not provide a dry run. Predict positions and rounds use dedicated Predict commands, while algorithmic orders, batch orders, trades, funding, symbols, and other extended functions are accessed through the CLI tools or expanded profiles.

Credential import, export, removal, revocation, logout, and other credential-administration commands are blocked. Asset scope cannot be granted through MCP, so withdrawal access is not enabled by wallet_add_key. Mutations are allowlisted, serialized, and not automatically retried. Calls also use timeouts and bounded output sizes. The CLI is invoked with argument arrays rather than a shell, and interactive prompts fail instead of waiting for input.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Trading MCP

@orderly.network/trading-mcp is an MCP server that connects AI clients to Orderly Network through the bundled orderly CLI. Its main tools create and configure wallets, inspect accounts and markets, place or cancel perpetual-futures orders, manage positions and leverage, and discover or run additional allowed CLI commands.

Install it with `npm install -g @orderly.network/trading-mcp`, then run `orderly-trading-mcp doctor`. Node.js 20 or newer is required. MCP clients can also launch it with `npx -y @orderly.network/trading-mcp`; a separate orderly CLI installation is normally not needed.

Run `orderly-trading-mcp setup` in a terminal to configure an existing wallet. For a new wallet, use `wallet_create`, `wallet_register`, and `wallet_add_key` in that order. Private keys remain in the OS keychain and are not returned through MCP.

Set `ORDERLY_MCP_READ_ONLY=1` to disable every mutation. You can also set `ORDERLY_MCP_ALLOW_MAINNET=0` to block mainnet mutations. For individual supported operations, use `dry_run=true` to preview requests before executing them.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewTrading MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/orderly-network-trading-mcp?style=directory)](https://allmcps.com/mcp/orderly-network-trading-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/orderly-network-trading-mcp"><img src="https://allmcps.com/api/badge/orderly-network-trading-mcp?style=directory" alt="Trading MCP on AllMCPs" /></a>