
用于可口贸易开放API的MCP服务器:引文,位置,平衡,以及LLM代理的干跑定单流.
概览
一个用于可口贸易开放API的模型上下文协议服务器,允许LLM代理访问引文,仪器,选项链,余额,位置,交易,监视列表和订单条目. 在未配置环境的情况下, 此服务器连接到可口的贸易 API 。 所提供证书可以到达的每个账户都是 . , 服务器设置的每个命令, 编辑, 替换或取消其中的移动 。 这些行动立即生效,不能取消。 阅读一个环境和安全模型,然后将它指向您所关心的账户, 以及该软件所做和未承诺的不表示、披露和通知。 生产是默认的,因为沙盒不服务市场数据:服务器指向那里不能引用,无法完成任务的默认不是安全的默认——它是教操作员在不读为什么的情况下将它覆盖.
概述(AI 翻译)
用于 美味贸易开放 API, 给 LLM 代理 获取引用、工具、选项链、余额、位置、交易、 监视列表和命令条目
[呻
翻译: ** 默认终点是Production。 生产是真实的。 ** 翻译: 在未配置环境的情况下, 此服务器连接到可口贸易 ** 生产** API。 提供证书的每个账户是: ** 真正的经纪账户**, 以及服务器位置的每个命令, 编辑, 替换或取消其中的真钱 。 这些行动生效 立即且不可撤销。 翻译: ** 对于没有真钱的环境,设置[T0]。 ** ** 扣留每件文字和破坏性工具,设置
TASTYTRADE_READ_ONLY=1。 ** 翻译: 读取选择环境和 在您所关心的账户标注此内容之前的安全模型 关于和否认披露 通知该软件是做什么的,是没有承诺的。
生产是默认的,因为沙盒不服务于市场数据:a 服务器指向这里不能引用,无法执行任务的默认不是
本页由 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, setTASTYTRADE_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 |
|---|
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 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": "…"
}
}
}
}