Finance-mcp is an MCP (Model Context Protocol) server designed to provide AI assistants with read-only access to financial data and brokerage accounts while ensuring order execution must be manually approved. It communicates with any MCP client via stdio and comes with a Streamlit dashboard as the only path for order approval and submission.
Key capabilities
- 38 tools: covering market data, SEC filings, macroeconomic indicators, risk tools, etc. The tool list is dynamically filtered based on the configured brokerage capabilities: typically 36 or 37 when a brokerage is configured, and 28 when no brokerage is configured (all brokerage-agnostic tools).
- Brokerage integration: supports Webull, Saxo, and IBKR. Webull has been verified against a real account; the Saxo and IBKR adapters are built based on public API documentation, have not been executed in a real or simulated account, and this is stated in the output of every tool that uses them.
- Public data sources: integrates Yahoo Finance, SEC EDGAR, BLS, the Federal Reserve, and BEA, providing prices, filings, macroeconomic data, etc.
- Security design: there is no order execution path on the tool side.
draft_orderOnly writes orders to the local queue; sending an order requires a brokerage preview and a user click in the dashboard, and this path cannot be reached through prompts. 32 tools are marked read-only, and 1 is a destructive operation (cancel_order). - Dashboard: A Streamlit application for order approval and submission. Currently, the submit button supports only Webull; MCP tools are routed through the brokerage protocol, but the dashboard's submission path has not yet been unified.
- Data parsing: SEC filings are parsed into machine-readable fields (such as in Form 4
<aff10b5One>boolean values), avoiding passing raw documents directly (a Form 4 is about 6,600 tokens, and a 10-K is about 610,000 tokens).get_insider_activitydistinguishes genuine trading decisions (codes P/S) from compensation mechanisms (grants, option exercises, withholding taxes). - Macro calendar: Data such as CPI becomes visible at release, and the caching strategy shortens from 6 hours to 3 seconds as the release approaches. Setting
FINANCE_MACRO_WATCH=1can enable a background thread to fetch data at release time. - Data source quota management: Unregistered BLS access is limited to 25 queries per day, which can be increased to 500 after registration; SEC is limited to 10 requests per second, enforced by the client. Results are cached (macro series for 6 hours, calendars for 24 hours, filings for 2 minutes).
- Normalization layer: handles mixed textual and numeric formats, including Unicode folding, non-ASCII digit conversion, American/European/Swiss/Indian number parsing, and accounting negative number formats.
Usage
- Installation: provides
install.batandinstall.shscript, the installer will register the server with every MCP client found on the machine. For manual configuration, add the corresponding entry to the client's MCP configuration. - Configuration: Set the broker (
.envfile (FINANCE_BROKER=webull|saxo|ibkr) and API keys (e.g.,BLS_API_KEY、FRED_API_KEY、SEC_USER_AGENT). - Run: The server communicates via stdio, and the dashboard runs as a standalone Streamlit app.
- Order flow: The AI assistant drafts an order → writes it to the local queue → the user previews it in the dashboard and clicks submit (currently only Webull supports submission).
Use cases
- Financial research scenarios that require an AI assistant to help analyze market data, SEC filings, and macroeconomic indicators.
- Trading-assistance workflows that want to keep human control over order execution.
- Developers or analysts using MCP-compatible clients (such as Claude).
Limitations
- The Saxo and IBKR adapters have not yet been verified in actual operation and are built only from API documentation.
- The dashboard's submit button currently supports only Webull.
- No consensus estimate data (street forecasts are a licensed product with no free source); calendar comparisons are all based on prior values and are clearly labeled.
- The consensus score is a fixed-weight heuristic that underperformed a buy-and-hold strategy in backtests and is clearly labeled as such.
- This is not financial advice; see NOTICE.md for details.
- The installation script has not been tested on a fresh operating system.
- The project seeks help to verify the Saxo and IBKR adapters (using mock tokens or paper accounts) and to test installation on new machines.