SuperAPIAI Directory

form4api-mcp

github.com · AI developer platforms

form4api-mcp is an MCP server for MCP-compatible AI clients that provides access to the SEC Form 4 insider trading data REST API hosted by Form4API. It can connect to clients such as Claude Desktop, Cursor, Windsurf, VS Code, and Codex CLI, allowing large language models to directly query insider transactions, institutional holdings, and proposed sale filings during research. The service supports automatic reconciliation of amendments, 10b5-1 plan flags, Form 144 proposed sale filings, and 13F-HR institutional holdings linkage, and provides congressional STOCK Act transactions and insider/congress convergence signals. It offers 40 tools and 6 preset research prompts, and supports hosted access or local operation.

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

About this tool

form4api-mcp is an MCP server that exposes Form4API's hosted REST API to Claude Desktop, Cursor, Windsurf, VS Code, Codex CLI, and other MCP-compatible clients. Once configured, large language models can directly answer questions about insider transactions, institutional holdings, and proposed sale filings during research sessions.

Purpose and data characteristics The service is designed for research on SEC Form 4 insider trading data and emphasizes four data quality capabilities: amendment awareness, where Form 4/A amendments are automatically reconciled to avoid double counting; 10b5-1 cleanliness, where each transaction is flagged as pre-arranged (10b5-1 plan) or discretionary, and cluster signals exclude planned transactions by construction; Form 144 proposed sale filings, with 125K+ Form 144 filings indexed, capturing insider selling intent about two days before it appears on Form 4; and institutional-insider linkage, where each transaction carries current 13F-HR holdings context (top three holders, AUM trend) in the same response, with no second call or client-side join required.

Usage Hosted mode requires no installation: point the client at https://mcp.form4api.com/mcp(Streamable HTTP) and send Authorization: Bearer YOUR_API_KEY in the request header (the X-Api-Key header is also supported; keys in the query string are ignored). The hosted server lists all 40 tools by default; append ?toolsets=default to the URL to switch to a curated set of 15 tools. A free key is available from the Dashboard at www.form4api.com; the free plan allows 500 requests per day and requires no credit card.

Without a key, keyless tools such as get_public_stats, get_data_quality, get_status_history, and verify_setup remain available (with ?toolsets=default, only verify_setup is listed), limited to 120 requests per minute per IP and 1,200 per minute across all keyless callers combined. Other tools require a key.

Client configuration examples include: for Cursor, edit ~/.cursor/mcp.json or .cursor/mcp.json; for VS Code, edit .vscode/mcp.json (using the servers key); for Claude Desktop, use mcp-remote (requires Node 18+) and put the full header value in env to preserve the space after Bearer; for HTTP proxies such as n8n and Dify, add an MCP client/tool with the URL https://mcp.form4api.com/mcp,传输方式为 Streamable HTTP, request header Authorization = Bearer YOUR_API_KEY. The claude.ai custom connector can be added under Customize > Connectors for Pro/Max, with authentication set to No sign in, and Authorization set in Request headers; this request header feature is beta and only available to some organizations and accounts. ChatGPT and claude.ai accounts that do not support request headers require OAuth login, which the hosted server does not currently support.

It can also be run locally: npm (stdio) defaults to the all toolset; set FORM4API_TOOLSETS=default to switch to 15 tools. You can also run the HTTP server yourself, listening on PORT (default 3000) and HOST (default 0.0.0.0), with POST /mcp as the stateless Streamable HTTP endpoint and GET /healthz as the health check. Each request carries its own key, and this mode does not read FORM4API_KEY. Relevant environment variables include MCP_KEYLESS_PER_MINUTE (default 120), MCP_KEYLESS_GLOBAL_PER_MINUTE (default 1200, 0 disables), MCP_PER_IP_PER_MINUTE (default 0 disabled), MCP_TRUSTED_PROXY_CIDRS, MCP_DEFAULT_TOOLSETS (default or all), MCP_CACHE_TTL_SECONDS (default 300), and TRUST_PROXY=1. The request body limit is 1 MB, the timeout is 60 seconds, no CORS headers are set, and one log line is recorded per request without keys, headers, or bodies.

Toolsets and prompts The server has two toolsets: default contains 15 tools covering most insider research questions, including search, research_company, get_transactions, get_recent_filings, get_filing, get_insider_transactions, get_insider_scorecard, get_signals, get_company_overview, get_form144, get_holdings, list_congress_trades, get_convergence_signals, get_company_insiders, and verify_setup; all contains all 40 tools. Tools not in the active set are not registered, and calls to them fail as unknown tools.

In addition to the 40 tools, 6 preset research prompts are provided, which clients can list via prompts/list and load via prompts/get. Each prompt tells the LLM which SEC Form 4 / Form 144 / 13F-HR tools to call, the call order, and how to interpret plan-restricted results. Prompts involving Business plan tools (get_sentiment, get_form144, get_holdings, get_managers) or Pro plan tools (get_insider_career_summary, get_insider_scorecard) instruct the model to show a structured upgrade_required response instead of failing silently.

Use cases and limitations Suitable for insider trading research, cluster buying/selling signal analysis, cross-research on institutional holdings and insider behavior, Form 144 planned sale alerts, congressional STOCK Act trade queries, and more. Data covers 1.38M+ Form 4 transactions, 620K+ filings, 125K+ Form 144 filings (Business+), 45M+ 13F-HR holdings (Business+), with history from 2023-04 onward. The free plan offers 25 tools; Starter provides 7,500 requests per day, 120 per minute, get_transactions pagination depth of 100 pages, and a 366-day congressional history window; Pro and Business tools still require the corresponding plan; Enterprise has unlimited requests per day and 2,000 per minute. Plan-restricted calls return a structured upgrade_required payload containing the original API explanation and an optional upgrade_url. Webhook tools are read-only and can only list and replay events; operations such as create, delete, enable, and testmust be done via the REST API or the dashboard. For bulk historical pulls, use the REST /v1/transactions/export endpoint (Business).

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools