Back to Browse

Form4lens MCP Server

by Mjpozz
Developer ToolsLow Risk10.0MCP RegistryRemote
Free

Server data from the Official MCP Registry

SEC Form 4 insider trades with 10b5-1 attribution, cluster-buy detection, and 8-K events.

About

SEC Form 4 insider trades with 10b5-1 attribution, cluster-buy detection, and 8-K events.

Remote endpoints: streamable-http: https://mcp.form4lens.com/mcp

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (1 strong, 2 medium validity signals). No known CVEs in dependencies. Imported from the Official MCP Registry.

Endpoint verified · Requires authentication · 1 issue found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Found in Source Code

Found by scanning the linked source code. This listing connects to a hosted endpoint, so none of this runs on your machine: it describes what the server software does where it is hosted.

env_vars

Applies to the server that hosts this plugin, not to your machine.

database

Applies to the server that hosts this plugin, not to your machine.

HTTP Network Access

Connects to external APIs or services over the internet.

How to Connect

Remote Plugin

No local installation needed. Your AI client connects to the remote endpoint directly.

Add this to your MCP configuration to connect:

{
  "mcpServers": {
    "com-form4lens-form4lens": {
      "url": "https://mcp.form4lens.com/mcp",
      "headers": {
        "X-API-Key": "<YOUR_API_KEY>"
      }
    }
  }
}

This server needs this header. Replace each <YOUR_...> placeholder with your own value:

  • X-API-Key (required): Form4Lens API key. Request one from keys@form4lens.com until self-serve checkout is live. Authorization: Bearer <key> is also accepted.

Documentation

View on GitHub

From the project's GitHub README.

Form4Lens

Form 4 insider trades with per-row 10b5-1 evidence, insider cluster-buy signals and 8-K item events, all point-in-time, from official SEC EDGAR data. REST API (FastAPI) + MCP server + static site with programmatic pages.

Live: form4lens.com (site), api.form4lens.com (API), and mcp.form4lens.com/mcp (MCP, API key required). Version 0.1.0. Not investment advice.

A keyless, 48-hour-delayed sample for a short ticker list is at GET /v1/sample/insider-clusters and GET /v1/sample/company/{ticker}.

Run it locally

cd /workspace/hustle/sec-api
source .venv/bin/activate

# 1. Data (EDGAR, <=8 req/s, User-Agent from F4L_USER_AGENT; raw responses cached in data/raw)
python -m form4lens.ingest tickers                         # ticker <-> CIK map
python -m form4lens.ingest daily --days 30                 # Form 4, 4/A, 8-K, 8-K/A from daily indexes
python -m form4lens.ingest company NVDA PLTR --days 365    # one company's history via submissions JSON
python -m form4lens.ingest reparse                         # re-parse everything from cache (no network)

# 2. REST API  ->  http://127.0.0.1:8765/docs
uvicorn form4lens.api:app --port 8765
curl -sS http://127.0.0.1:8765/health
curl -sS http://127.0.0.1:8765/v1/sample/company/NVDA

# 3. MCP server (stdio for Claude Desktop/Cursor, or --http for :8766/mcp)
python -m form4lens.mcp_server
python tests/mcp_client_check.py                           # spawns it and calls every tool

# 4. Static site  ->  site/
#    --all builds a page for every Form 4 issuer in the DB, plus daily cluster pages and sitemap.xml
python -m form4lens.site --all && python -m http.server -d site 8080

# 5. Tests
python -m pytest tests -q

Local/dev only: if F4L_SEED_DEMO_KEYS is unset or not 0, the API seeds demo-free-key (10/min, 250/day, 50 rows, no as_of) and demo-pro-key. Production sets F4L_SEED_DEMO_KEYS=0 and removes those keys. Request a production key at keys@form4lens.com.

Layout

PathWhat
form4lens/edgar.pyRate-limited, caching EDGAR client and daily-index parser
form4lens/parse_form4.pyForm 4 XML parser: 10b5-1 checkbox, footnote attribution, adoption date, sell-to-cover, roles
form4lens/parse_8k.py8-K header items
form4lens/db.pySQLite schema, upserts, 4/A amendment chains
form4lens/queries.pyPoint-in-time queries, clusters, company summary
form4lens/api.pyFastAPI app, API keys, plan limits, usage counters
form4lens/mcp_server.pyMCP tools over the same queries
form4lens/site.py + templates/Landing, docs, legal pages, comparison and /insider-buys/{TICKER} pages
tests/Unit tests on real filings in tests/fixtures/

Before any EDGAR fetch, set F4L_USER_AGENT to a real name and contact email (SEC fair-access rule).

Production deploy: see deploy/DEPLOY.md and deploy/PRICING.md.

License

MIT. See LICENSE.

Reviews

No reviews yet

Be the first to review this server!