SuperAPIAI Directory

Finance-mcp

github.com · AI finance

Finance-mcp is a financial data server based on the MCP protocol, providing AI assistants with read-only access to real brokerage accounts and markets, and allowing users to manually approve orders through a local dashboard. It integrates brokerages such as Webull, Saxo, and IBKR, as well as public data sources such as Yahoo Finance, SEC EDGAR, BLS, the Federal Reserve, and BEA, providing a total of 38 tools (36 or 37 after filtering based on brokerage capabilities, and 28 when no brokerage is configured). The core security design is: AI assistants can draft orders but cannot place them directly; sending an order must go through a local queue and a user click confirmation in the dashboard, and this path does not exist on the tool side, so no prompt can reach it. Tools cover market data, SEC filings, macroeconomic indicators, risk tools, etc., of which 32 are marked read-only and 1 is a destructive operation (cancel order). The project contains 1,431 tests and runs live data source checks weekly. Note: The Saxo and IBKR adapters have not yet been run against real accounts, and only Webull has been actually verified; the dashboard's submit button currently supports only Webull.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

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_order Only 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_activity distinguishes 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=1 can 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

  1. Installation: provides install.bat and install.sh script, 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.
  2. Configuration: Set the broker ( .env file (FINANCE_BROKER=webull|saxo|ibkr) and API keys (e.g., BLS_API_KEY、FRED_API_KEY、SEC_USER_AGENT).
  3. Run: The server communicates via stdio, and the dashboard runs as a standalone Streamlit app.
  4. 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.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools