taas-mcp
A local MCP server that acts as a thin proxy to expose Tread's trading data and order tools to a local LLM, fetching tool catalog and forwarding calls to the Tread backend.
README
taas-mcp
A local MCP server that exposes Tread's trading-data and order tools to a local LLM. It is a thin, generic proxy: it holds no hardcoded tools — on startup it fetches the tool catalog from your Tread backend and forwards each call there. All reasoning happens in your local agent; Tread executes the individual tool calls.
Backend dependency. This client talks to the Tread backend
mcp_apiendpoints (GET /api/mcp/tools,POST /api/mcp/dispatch,GET /api/mcp/guide), which must be deployed and theMCPfeature flag enabled for your user. Design / PRD: Linear project "MCP Server — Local-LLM Trading Data & Orders".
What it exposes
Whatever the backend registry advertises — market data, balances, portfolio analytics, order status, and trading (single, market-maker, delta-neutral, and batch orders, plus cancel / pause / resume / set leverage). Because the catalog is fetched live, adding or changing a tool on the backend needs no new release here.
It also exposes the authoritative operating guide as the
tread_operating_guide prompt, fetched live from the backend — load it before
driving the tools.
Install
First install uv — this is the only prerequisite.
The uvx command used below ships with uv (it's shorthand for uv tool run),
so there is nothing else to install:
# macOS / Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# or, with Homebrew
brew install uv
Then install and run straight from the repo — no clone required. uvx fetches
the package from GitHub, builds it in an isolated environment (provisioning a
compatible Python automatically), and runs the taas-mcp entry point:
uvx --from git+https://github.com/tread-labs-public/taas_mcp.git taas-mcp
The server speaks MCP over stdio, so it's normally launched by your MCP client (see Connect your MCP client) rather than run interactively. The command above is the same one you put in the client config.
Pin to a branch or tag by appending @<ref>:
uvx --from git+https://github.com/tread-labs-public/taas_mcp.git@main taas-mcp
To install it once as a persistent tool on your PATH (so the command is just
taas-mcp), use uv tool instead:
uv tool install git+https://github.com/tread-labs-public/taas_mcp.git
uv tool upgrade taas-mcp # pull a newer version later
[!NOTE]
uvxcaches the build. After the backend ships changes that only affect this client, force a rebuild withuvx --refresh --from git+https://github.com/tread-labs-public/taas_mcp.git taas-mcp.
Configuration
| Var | Required | Description |
|---|---|---|
TREAD_URL |
yes | Base URL of the Tread server, e.g. https://app.tread.fi |
TREAD_MCP_TOKEN |
yes | Your MCP token (generate/regenerate it in the Tread web UI) |
TREAD_READONLY |
no | 1 to hide all write/trading tools |
TREAD_TIMEOUT |
no | HTTP timeout in seconds (default 30) |
The token authenticates as you; every call is scoped to your account
server-side. One running server == one Tread user. The token expires after a
peiod (default 30 days) of inactivity (it is refreshed on each use); once expired, requests
return 401 and you regenerate it from the Tread web UI.
Connect your MCP client
Point your MCP client at the same uvx command. The client launches the server
on demand and passes configuration through env.
Claude Code (CLI)
claude mcp add tread \
--env TREAD_URL=https://app.tread.fi \
--env TREAD_MCP_TOKEN=your-token-here \
-- uvx --from git+https://github.com/tread-labs-public/taas_mcp.git taas-mcp
Add --env TREAD_READONLY=1 for a read-only setup.
Claude Desktop / generic MCP client (JSON)
{
"mcpServers": {
"tread": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/tread-labs-public/taas_mcp.git",
"taas-mcp"
],
"env": {
"TREAD_URL": "https://app.tread.fi",
"TREAD_MCP_TOKEN": "your-token-here"
}
}
}
}
For a read-only setup, add "TREAD_READONLY": "1" to env.
[!NOTE] The client must be able to find
uvxon itsPATH. If it can't (common on macOS GUI apps), use the absolute path fromwhich uvxascommand, e.g./opt/homebrew/bin/uvx.
Develop
Clone the repo for local development, then sync and test:
git clone https://github.com/tread-labs-public/taas_mcp.git
cd taas_mcp
uv sync
uv run pytest
Run your local checkout directly (point the client at this command to test changes before pushing):
uv run --directory /path/to/taas_mcp taas-mcp
Safety
The local agent owns risk. Tread runs no server-side agent for these calls —
there is no automated margin management, invariant enforcement, or liveness
rescue behind them. See the tread_operating_guide prompt for the operating
contract.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。