TT

tastytrade/tastytrade-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

37 stars 14 forks 品質 75 トレンド 47NOASSERTION

MCP サーバは、LLM エージェントのクオート、ポジション、残高、およびドライラン ゲーテッド オーダー フローの API です.

概要

おいしいオープンAPI用のモデルコンテキストプロトコルサーバーで、LLMエージェントが引用、機器、オプションチェーン、残高、ポジション、取引、ウォッチリスト、注文エントリへのアクセスを提供します。 設定されていない環境で、このサーバーは、おいしいAPIに接続します。 提供された資格情報を受け取ることができるすべてのアカウントは、このサーバーの場所、編集、置換、またはキャンセルのすべての注文は、その中に移動します。 これらの行為は直ちに効果をとり、元に戻すことができません。 注意するアカウントでこれを指す前に、環境と安全モデルを選択し、免責条項、ディスクロージャー、このソフトウェアが何をしているかについて通知し、約束しません。 生産は、サンドボックスが市場データを提供していないため、デフォルトです。サーバーは引用符がないと指摘し、ジョブを行うことができないデフォルトは安全なデフォルトではありません。理由を読んだことなく、オペレータをオーバーライドするように教えるものです.

概要(AI 翻訳)

モデルコンテキストプロトコルサーバー LLMエージェントを付与する、おいしいオープンAPI 引用符、商品、オプションチェーン、残高、ポジション、取引へのアクセス、 ウォッチリスト、注文エントリ。

[!警告] ツイート デフォルトエンドポイントは PRODUCTION です。 生産は本当です。 ツイート 設定されていない環境で、このサーバーはおいしいトレードに接続します 制作 API。 提供された資格情報を受け取ることができるすべてのアカウントは realの仲介アカウント、およびこのサーバーの場所、編集を発注するすべての 交換またはキャンセルは、その中に実質のお金を動かします。 これらのアクションは効果をもたらす すぐに、元に戻すことはできません。 ツイート 実質のお金がない環境の場合、[TASTYTRADE_ENV=sandbox]を設定してください。 すべての書き込みと破壊的なツールを保持するには、[TASTYTRADE_READ_ONLY=1]を設定してください。 ツイート 環境の選択を読んで下さい 注意するアカウントでこれを指す前に安全モデル 免責事項・開示等について 本ソフトウェアが何をやっているのか、約束しないかについて

生産は、サンドボックスが市場データを提供していないため、デフォルトです。 サーバが引用できないと、ジョブを実行できないデフォルトは、

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

tastytrade MCP server

A Model Context Protocol server for the tastytrade open API, giving an LLM agent access to quotes, instruments, option chains, balances, positions, transactions, watchlists, and order entry.

[!WARNING]

The default endpoint is PRODUCTION. Production is real.

With no environment configured, this server connects to the tastytrade production API. Every account the supplied credentials can reach is a real brokerage account, and every order this server places, edits, replaces or cancels moves real money in it. Those actions take effect immediately and cannot be undone.

For an environment with no real money in it, set TASTYTRADE_ENV=sandbox. To withhold every write and destructive tool, set TASTYTRADE_READ_ONLY=1.

Read Choosing an environment and Safety model before you point this at an account you care about, and Disclaimer, Disclosures and Notice for what this software does and does not promise.

Production is the default because the sandbox does not serve market data: a server pointed there cannot quote, and a default that cannot do the job is not a safe default — it is one that teaches an operator to override it without reading why. The switch is one word either way, and the environment in use is stated in three places: a startup banner on stderr, the instructions the MCP client receives when it connects, and an environment member on every order result.

No tool, resource, prompt or example here is a recommendation to buy or sell anything. Nothing in this repository is financial advice. See Disclaimer.


Requirements

  • Node.js 22 or newer (see .node-version)
  • A tastytrade OAuth client and refresh token

Install

git clone https://github.com/tastytrade/tastytrade-mcp.git
cd tastytrade-mcp
npm ci
npm run build

Clone-and-build is the supported install: nothing here is published to npm and there is no published container image. The included Dockerfile builds one locally if you would rather run the server in a container — read its header first, because a stdio server has to be started with docker run -i, and without that the container exits immediately and looks exactly like a crash.

Credentials

Authentication is environment-only. There is no interactive login flow: a server an agent can make bind a listening socket, and that then prints a long-lived refresh token into a transcript, is not defensible.

Create an OAuth client and refresh token out of band — see tastytrade’s OAuth2 guide, or my.tastytrade.com → Manage → My Profile → API — then supply three variables:

Variable Required Default
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "tastytrade": { "command": "node", "args": ["/absolute/path/to/tastytrade-mcp/dist/index.js"], "env": { "TASTYTRADE_ENV": "production", "TASTYTRADE_CLIENT_ID": "…", "TASTYTRADE_CLIENT_SECRET": "…", "TASTYTRADE_REFRESH_TOKEN": "…" } } } }