otto
Enables AI agents to operate a local financial terminal, including market data, backtesting, paper portfolio management, and news digest, through safe, gated tools over MCP.
README
Otto
An effortless, local, AI-operated financial terminal. You say what you want in plain language; an AI agent drives the terminal for you — pulling market data, running backtests, managing a paper portfolio, digesting news, and more. Everything runs on your machine.
Otto is built to be operated by an AI rather than clicked by hand: the whole product is exposed as a safe, machine-operable tool surface over MCP, so a coding agent (Claude Code / Codex) can run it end to end while a human watches the dashboard.

Highlights
- Single-process local app — a FastAPI backend serves both the JSON API and the built
React UI at
http://127.0.0.1:8765/. - AI operator surface — a standard-library-only MCP
server (
src/local_terminal/mcp_server.py) exposes routes and gated actions as tools. - Safety-gated by design — live trading, credential entry, and code execution are off by default and refuse loudly; the default runtime is read-only / paper / dry-run.
- Public, no-key market data where available (crypto, equities, FX, macro), with an optional local key vault for free-tier providers (Finnhub / FRED / Twelve Data).
- Workbenches — Markets, Crypto, Portfolio (create / import / export / demo), Backtest, News digest, Algo scan, and an AI-chat research surface over local artifacts.
- ~460 tests covering the contract, safety gates, providers, and UI end-to-end.
Screenshots
Multi-asset markets board (crypto, US/TW equities, FX) and the live crypto workbench — public, no-key data where available; live trading and code execution stay gated off:
| Markets | Crypto |
|---|---|
![]() |
![]() |
Run
Single-process self-use (serves the built UI + API at http://127.0.0.1:8765/):
# Windows
.\.venv\Scripts\python.exe -m src.local_terminal
# macOS / Linux
python -m src.local_terminal
Build the frontend once (or after UI changes):
npm --prefix frontend install && npm --prefix frontend run build
Developer hot-reload UI stays available via npm --prefix frontend run dev (proxies /api
to the backend).
AI operation
Otto is driven by plain-language commands: you tell the agent what you want, and it operates
the terminal through the MCP tool surface (python -m src.local_terminal.mcp_server,
registered in .mcp.json). See docs/AI_OPERATOR_GUIDE.md.
Live trading, credential entry, and disabled runtimes stay gated behind explicit contracts.
Architecture
src/local_terminal/— FastAPI backend: routes, action contract, provider adapters, safety/secret gates, local state storage, and the MCP operator server.frontend/— React + Vite single-page UI, served static in production.tests/— pytest suite (contract, gates, providers) plus Playwright e2e.docs/— the AI operator guide, architecture notes, and the planning/audit ledger.
Clean-room note
Otto is a clean-room reimplementation: it was built by observing a reference
terminal's workflow and shape, never by reading, copying, porting, or adapting its code or
assets. Implementation independence is enforced, not just claimed —
AGENTS.md defines the source wall and
tests/test_clean_room_source_wall.py fails the
build if product runtime surfaces reference the observed source or leak third-party branding.
The private third-party observation notes are intentionally not published, to keep the
clean-room boundary intact (see docs/reference/). It is not a fork,
crack, asset copy, or continuation of any commercial product; branding, commercial
mechanics, and unsafe execution paths are replaced with local equivalents.
Safety model
Out of scope unless a later, separately reviewed safety contract explicitly permits it:
- Third-party branding, logos, trademarks, commercial copy, subscriptions, billing.
- Reachable real orders, private API-key order flows, real balance reads, margin, leverage, short exposure, or derivatives live execution.
The default build is paper / dry-run / read-only.
Testing
python -m pytest -q # ~460 tests
python -m ruff check .
License
MIT.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。

