プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。Google でログインするとレビューを書けます。プロトタイプ · 30分ごとに更新
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説 ログイン

Trading MCP

作者:OrderlyNetworkバージョン 0.2.4i★ 0iパソコンで動くリポジトリ ↗
レジストリ名io.github.OrderlyNetwork/trading-mcp

インストール方法

できること

Orderly Network trading MCP server backed by the orderly CLI. Keys stay in the OS keychain.

作者による原文

  • 接続方法 パソコンで動く
  • アカウントまたはキー キー不要
  • カテゴリ 会計・財務・税務

この順位の理由

一覧は利用スコア(100 点満点)で並びます。内訳は次のとおり

人気0/80GitHub スターか週間ダウンロード数。大きい方を 60、小さい方を 20 で数えます
新しさ12/1230 日以内のリリースかコード更新で満点
応答中0/8前回の確認でクラウドのエンドポイントが応答
利用スコア12/100

品質: 基本チェック 3/3 項目に合格(表示のみ、並び順には不使用) · 勢い: データなし (「急上昇」タブでのみ使用)

インストール

使っているAIアプリを選んで、設定をコピーしてください。

ひとことで AI にインストールしてもらう

Trading MCP をインストールして。https://mcp.popnx.com/i/orderlynetwork-trading-mcp.md に従い、コマンドを見せて、私が OK するまで実行しないで。

パソコンで作業できる AI(Claude Code や Cursor など)に貼り付けます。手順を読み、コマンドを見せて、あなたの OK を待ちます。キー不要・登録不要。 · AI が読む全文を見る

チェック 3/3 合格 · あなたのパソコンで動きます · ✓ コマンド確認済み 2026年11月18日

まず:どの AI を使っていますか?

使っているアプリを選ぶと、下に手順が表示されます。

Claude につなげますが、先に準備が必要です

先にパソコンへ Node.js を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません

AI にインストールしてもらう

このメッセージを Claude のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Claude に MCP server Trading MCP を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "trading": { "command": "npx", "args": [ "-y", "@orderly.network/trading-mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Trading MCP のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. Node.js を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    node -v
    • バージョン番号(例 v26.13.1)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です

    Node.js のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: node -v

    一度入れれば、Node.js を使うすべてのツールで使えます

  2. パソコン版 Claude アプリの設定ファイルを開く

    SettingsDeveloperEdit Config

  3. この設定を貼り付けて保存

    {
      "mcpServers": {
        "trading": {
          "command": "npx",
          "args": [
            "-y",
            "@orderly.network/trading-mcp"
          ]
        }
      }
    }
  4. Claude を終了してもう一度開く

  5. 試してみる

    Trading MCP を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude が Trading MCP を使っていると言うか、回答に Trading MCP のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

ChatGPT はまだ Trading MCP につなげません

Trading MCP はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません

代わりにできること

A · Trading MCP につなげるアプリを使う

  • 先にパソコンへ Node.js を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
  • 先にパソコンへ Node.js を入れてください(1 回だけ)
  • 先にパソコンへ Node.js を入れてください(1 回だけ)
  • 先にパソコンへ Node.js を入れてください(1 回だけ)

B · 会計・財務・税務 の中で ChatGPT につなげる別のサーバー

同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました

Claude Code につなげますが、先に準備が必要です

先にパソコンへ Node.js を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを Claude Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Claude Code に MCP server Trading MCP を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):claude mcp add --scope user trading -- npx -y @orderly.network/trading-mcp 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Trading MCP のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. Node.js を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    node -v
    • バージョン番号(例 v26.13.1)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です

    Node.js のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: node -v

    一度入れれば、Node.js を使うすべてのツールで使えます

  2. ターミナルを開く

    Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く

  3. このコマンドを貼り付けて Enter

    claude mcp add --scope user trading -- npx -y @orderly.network/trading-mcp
  4. Claude Code で /mcp と入力

    Trading MCP が一覧にあり、接続済みと表示されれば OK です

  5. 試してみる

    Trading MCP を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude Code が Trading MCP を使っていると言うか、回答に Trading MCP のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Cursor につなげますが、先に準備が必要です

先にパソコンへ Node.js を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを Cursor のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Cursor に MCP server Trading MCP を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "trading": { "command": "npx", "args": [ "-y", "@orderly.network/trading-mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Trading MCP のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. Node.js を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    node -v
    • バージョン番号(例 v26.13.1)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です

    Node.js のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: node -v

    一度入れれば、Node.js を使うすべてのツールで使えます

  2. このボタンで Cursor を開く

    Cursor で開く

    Cursor がインストールの確認をするので Install を押します

  3. Cursor の AI チャットを Agent モードで開く

  4. 試してみる

    Trading MCP を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Cursor が Trading MCP を使っていると言うか、回答に Trading MCP のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

VS Code につなげますが、先に準備が必要です

先にパソコンへ Node.js を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを VS Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの VS Code に MCP server Trading MCP を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "servers": { "trading": { "type": "stdio", "command": "npx", "args": [ "-y", "@orderly.network/trading-mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Trading MCP のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. Node.js を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    node -v
    • バージョン番号(例 v26.13.1)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です

    Node.js のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: node -v

    一度入れれば、Node.js を使うすべてのツールで使えます

  2. このボタンで VS Code を開く

    VS Code で開く

    VS Code がインストールの確認をするので Install を押します

  3. VS Code の AI チャットを Agent モードで開く

  4. 試してみる

    Trading MCP を使って、私に何ができるか教えて、1 つやってみせて

    ✓ VS Code が Trading MCP を使っていると言うか、回答に Trading MCP のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Windsurf、Zed、Gemini CLI など MCP を使える他のアプリは追加方法がそれぞれ違います。アプリ一覧で確認してください

MCP を使えるアプリをすべて見る →

JSON 設定は下の「開発者向け」にあります

つまずいたら?Trading MCP を使っている人に聞いてみましょう💬 ディスカッション →
開発者向け:ターミナルのコマンドと JSON 設定

パソコンにインストール

Claude Code

claude mcp add --scope user trading -- npx -y @orderly.network/trading-mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "trading": {
      "command": "npx",
      "args": [
        "-y",
        "@orderly.network/trading-mcp"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "trading": {
      "command": "npx",
      "args": [
        "-y",
        "@orderly.network/trading-mcp"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "trading": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@orderly.network/trading-mcp"
      ]
    }
  }
}

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

ひと目でわかる

週あたりのダウンロードi
npm/PyPIにない
接続方法
パソコンで動く
最新バージョンi
0.2.4
レジストリ公開日i
2026年11月18日
コードの最終更新i
2026年11月18日
作者
OrderlyNetwork
パッケージ
npm: @orderly.network/trading-mcp
レジストリでの状態
有効

使えるアプリ

このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。

パソコン上で動かせるアプリ

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

すべてのアプリと長所・短所 →

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月20日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント OrderlyNetwork で確認済みです

  • ✓ 合格

    今もメンテナンスされている

    コードの最終更新:一昨日

  • ✓ 合格

    ライセンスがある

    MITを使用

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

公開済みの脆弱性(OSV.dev)

まだ確認していません

確認していること → · JSON

作者の方へ:再確認の依頼・情報の誤りの報告
作者向け:README にバッジを付ける

作者の方は、このコードを README に貼れます。バッジはこのページにリンクします。

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/orderlynetwork-trading-mcp.svg)](https://mcp.popnx.com/en/servers/orderlynetwork-trading-mcp)

話し合い

質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。

まだ投稿はありません。最初の質問や共有をどうぞ。

ここの投稿は利用者によるもので、PopNx チームのものではありません。

ログインして投稿

ユーザーレビュー

まだレビューはありません

ログインしてレビューを書く

会計・財務・税務のほかのサーバーとの比較i

  • このカテゴリのほかの3496件のうち0%よりスターが多い
  • このカテゴリのほかの3496件のうち94%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの3496件のうち99%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Trading MCPは安全ですか?

当てはまる基本チェック3項目のうち3項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は一昨日、最新バージョン(0.2.4)がレジストリに届いたのは一昨日です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。

代わりに使えるものは?

同じカテゴリには:SolidInvoice, Journalit, Beancount.io, Tapetide - Indian Stock Market MCP, Twelve Data

似た働きのほかの候補

同じカテゴリでほかの作者のもの。コマンドは確認済み。公式を先に、次にスター順。

カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

SolidInvoice

Create and send invoices and quotes, manage clients, and track payments in SolidInvoice.

作者:SolidInvoice成長中★ 99011 日前更新

クラウドで動く✓ 提供元 · solidinvoice.co

Journalit

Trading journal in Obsidian. Ask Claude or ChatGPT about your trades; edits are previewed first.

作者:Cursivez成長中★ 26112 日前更新

クラウドで動く✓ 提供元 · journalit.co

Beancount.io

Query, edit, and reconcile a hosted Beancount ledger: BQL, reports, files, and bank imports.

作者:bex-co成長中★ 707 リポジトリ全体のスター先月更新

クラウドで動く✓ 提供元 · beancount.io

Twelve Data

Real-time and historical market data: stocks, forex, crypto, ETFs, fundamentals and 60+ indicators.

作者:twelvedata成長中★ 8716 日前更新

クラウドで動く✓ 提供元 · twelvedata.com
似たものと比べる
これ
Trading MCP
SolidInvoiceJournalitBeancount.ioTapetide - Indian Stock Market MCPTwelve Data
動く場所パソコンにインストールが必要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドでもパソコンにインストールでも使えるクラウドで動き、インストール不要
キーが必要いいえいいえいいえいいえはいいいえ
Claude で + から追加いいえいいえいいえいいえいいえはい
基本チェック3/34/64/44/45/54/4
ライセンスMITMITNOASSERTIONMITMIT–
料金登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

Orderly Trading MCP

MCP server that gives AI clients trading access to Orderly Network through the locally installed orderly CLI.

Private keys live in the OS keychain. The MCP process never sees them and never signs anything — it only discovers the CLI's command surface, validates arguments, and runs the CLI as a subprocess.

MCP client ⇄ stdio ⇄ orderly-trading-mcp ⇄ execFile ⇄ orderly CLI ⇄ Orderly API

↳ OS keychain

Requirements

  • Node.js >= 20
  • orderly CLI v2.1.1+ recommended (v2.0.1 still works)
  • v2.1.1 fixes the BID/ASK market short form, classifies price-scope and max-quantity rejections as trading errors, and fixes broker-status DEX authentication.
  • v2.1.0 adds the Orderly Predict commands, faucet-account, and the longAbout/numArgs schema fields used for richer descriptions and variadic arguments.
  • On v2.0.1 the MCP falls back cleanly: the predict profile has no predict tools, faucet-account is absent (use faucet_usdc), descriptions are shorter, and variadic arguments use a hardcoded fallback.
  • A wallet/API key already set up in the CLI (orderly auth-list shows them)

Install

# CLI (installs to ~/.local/bin)

curl -fsSL https://orderly.network/cli.sh | sh

MCP server

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

doctor prints every CLI candidate it found, the selected binary, the effective profile/network, and the accounts visible in the keychain.

Client configuration

The reliable form sets ORDERLY_BIN explicitly. GUI clients often launch with a minimal PATH, so ~/.local/bin may not be visible even though your terminal finds orderly. If the keychain has multiple accounts, also set ORDERLY_MCP_ACCOUNT to the account ID you want as the default.

Claude Code / Cursor (.mcp.json or .cursor/mcp.json):

{

"mcpServers": { "orderly-trading": { "command": "npx", "args": ["-y", "@orderly.network/trading-mcp"], "env": { "ORDERLY_BIN": "/Users/you/.local/bin/orderly" } } } }

VS Code (.vscode/mcp.json):

{

"servers": { "orderly-trading": { "command": "npx", "args": ["-y", "@orderly.network/trading-mcp"], "env": { "ORDERLY_BIN": "/Users/you/.local/bin/orderly" } } } }

OpenCode (opencode.json):

{

"$schema": "https://opencode.ai/config.json", "mcp": { "servers": { "orderly-trading": { "command": ["npx", "-y", "@orderly.network/trading-mcp"], "environment": { "ORDERLY_BIN": "/Users/you/.local/bin/orderly", "ORDERLY_MCP_TIMEOUT_MS": "180000" }, "timeout": { "execution": 190000 } } } } }

Older OpenCode builds use the deprecated top-level mcp. form; the timeout there is a single integer. The mcp.servers form above is current.

Codex (.codex/config.toml):

[mcp_servers.orderly-trading]

command = "npx" args = ["-y", "@orderly.network/trading-mcp"] env = { ORDERLY_BIN = "/Users/you/.local/bin/orderly" }

Tools

The default core profile registers 15 tools:

ToolKindPurpose
auth_listreadStored accounts (public IDs only)
account_balancereadToken holdings
positions_listreadPositions, account value, margin
order_listreadWorking orders
market_pricereadMark/index/24h stats
market_orderbookreadDepth and best bid/ask
klinereadCandles
order_placewritePlace a perpetual order
order_cancelwriteCancel one order
order_cancel_allwriteCancel all orders
positions_closewriteReduce-only market close
leverage_getreadRead current leverage
leverage_setwriteChange leverage
orderly_commands / orderly_runmetaFull CLI coverage

Everything else — algo/TP-SL orders, batch orders, Predict, trades, funding, history, symbols, fee tiers — is reached through the escape hatch:

orderly_commands({ query: "algo" })

orderly_run({ command: "algo-order-place", args: { symbol: "PERP_ETH_USDC", side: "SELL", algo_type: "TP_SL", quantity: 0.01, tp_trigger_price: 2500, account: "0x..." } })

orderly_run applies the shared policy: secret-command blocklist, mutation allowlist, read-command allowlist, read-only mode and mainnet gate. Profiles control the dedicated tool surface only; by default the escape hatch still reaches every allowed command. Set ORDERLY_MCP_STRICT_PROFILE=1 to restrict orderly_run to the selected profile as well. Because it *can* mutate, orderly_run is annotated non-read-only; reads routed through it may trigger an extra client confirmation. Prefer the dedicated read tools for listings.

Profiles add dedicated tools for domains:

ORDERLY_MCP_PROFILETools
core (default)15
predictcore + all six Predict tools, including predict_round (21)
algocore + algo_order_place, algo_order_cancel, algo_order_list (18)
allevery reviewed read command + every allowed trading mutation (67)
fullall + withdraw, faucet_usdc, faucet_account (70; faucet_account requires CLI v2.1.0+)

Safety model

VariableDefaultEffect
ORDERLY_BINautoExplicit CLI path; if set and invalid, no fallback
ORDERLY_MCP_PROFILEcoreTool surface (see above)
ORDERLY_MCP_READ_ONLYoffSet 1 to disable every mutation
ORDERLY_MCP_NETWORKCLI configDefault network override
ORDERLY_MCP_ACCOUNTautoDefault account ID when a call omits account
ORDERLY_MCP_ALLOW_MAINNETtrueSet 0 to block mainnet mutations
ORDERLY_MCP_ALLOW_UNKNOWN_READSoffSet 1 to expose new, unreviewed read commands
ORDERLY_MCP_STRICT_PROFILEoffSet 1 so orderly_run only reaches the selected profile
ORDERLY_MCP_TIMEOUT_MS30000Per-call timeout
ORDERLY_MCP_MAX_OUTPUT65536Max characters returned per call
ORDERLY_MCP_DEBUGoffLog argv/timing to stderr

faucet_account --wait can take up to 120 seconds; raise ORDERLY_MCP_TIMEOUT_MS (for example to 180000) before using it.

Design rules:

  • Keys never enter the MCP. wallet-create, wallet-import, wallet-remove, wallet-logout, wallet-register, wallet-add-key, wallet-revoke-key, auth-import, auth-logout, auth-cleanup, broker-create and auth-export-key are blocked in every profile, including orderly_run. auth-export-key is read-only in the CLI manifest but prints a private key, so it is denied explicitly.
  • Fail-closed mutations. Only an explicit allowlist of trading commands can mutate. A new mutating CLI command stays invisible until it is reviewed.
  • Fail-closed reads. Read commands are allowlisted too, so a new read command cannot expose sensitive data without review. ORDERLY_MCP_ALLOW_UNKNOWN_READS=1 opts out.
  • No shell. The CLI is spawned with an argv array, so hex account IDs and other values cannot inject shell syntax.
  • No hangs. stdin is closed, so interactive CLI prompts fail fast; every call has a timeout.
  • Mutations are serialized, so parallel tool calls cannot double-submit.
  • Preview first. Mutating tools that support --dry-run expose a dry_run argument; descriptions instruct the model to preview before executing.
  • No automatic retries for mutations.

Output and errors

The CLI's compact JSON is passed through unchanged when it fits. Non-JSON output (for example No keys stored...) is returned as text. If a response exceeds ORDERLY_MCP_MAX_OUTPUT, the call fails with a clear error rather than returning truncated, invalid JSON. Batch commands that return per-row success flags are reported as errors when any row fails, with the failed count in the message.

Errors include the CLI stderr and a hint based on the error kind:

KindWhat to do
Usage/validationCall orderly_commands for the exact spec
API/trading rejectionRead the message; check symbol, price, quantity, margin and account state
AuthenticationCheck auth_list / set up a key with the CLI
TransientRetry after a delay
Multiple accountsPass account= or set ORDERLY_MCP_ACCOUNT

The CLI exit codes are 2 usage, 3 auth, 4 trading rejection and 5 transient. The MCP adds the account/network context and does not retry mutations.

Resources: orderly://schema, orderly://accounts, orderly://config, orderly://guide.

Development

npm install

npm run typecheck # tsc --noEmit npm test # builds dist/ + 59 unit/protocol tests npm run build npm run doctor node dist/index.js tools # print the registered tool list

Tests use a hermetic fake CLI (test/fixtures/fake-orderly.mjs), so they do not need network, keychain or the real binary.

The CLI schema is loaded once at server startup. Restart the MCP server after upgrading the CLI or changing ORDERLY_MCP_PROFILE / ORDERLY_BIN.

Releasing

  1. Bump version in package.json, package-lock.json, and every version in server.json, then commit. The release workflow verifies the tag matches package.json; the registry workflow verifies every manifest version matches.
  2. Tag and push:
   git tag v0.1.1

git push origin master git push origin v0.1.1

  1. .github/workflows/release.yaml runs typecheck, tests, build and pack, then publishes to npm with provenance (NPM_TOKEN secret required).
  2. .github/workflows/publish-registry.yaml validates server.json, waits for the npm version to appear, then publishes it to the MCP registry with GitHub OIDC.

The MCP release is independent of CLI releases. CLI v2.1.1 is released and recommended; v2.0.1 still works with fallbacks.

There is no Docker image: this server is stdio-only, unlike the read-only MCP.

Not included (on purpose)

  • Key, wallet, auth and broker management tools.
  • HTTP transport. Exposing a trading server over the network needs its own authentication and threat model; stdio only for now.
  • Automatic CLI download. Install it explicitly; the installer verifies the release checksum.