filings-library MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
filings-library
Multi-user company financial filings library: immutable SHA-256 archive, isolated
PDF/OCR/HTML/XLSX extraction, Markdown conversion with unified locators, FTS5
financial search, SEC XBRL companyfacts, CLI, and a strictly scoped FastMCP server.
Quick start
uv sync --locked --extra extractor
make checkRun the reference 3-container stack locally:
docker compose up --buildRelated MCP server: XBRL-US MCP Server
Architecture
Single source of truth: SQLite (WAL mode) + immutable SHA-256 CAS (
objects/sha256/<aa>/<sha256>). Derivatives (ocr_pdf,markdown,facts_json) are stored in CAS keyed by(source_sha256, converter_id, converter_version). The FTS5 index (fts_chunks) is strictly rebuildable fromsections.Extraction isolation: PDF, OCR, HTML/iXBRL, and XLSX parsing run inside the stateless
filings-extractorcontainer (pypdfium2,poppler-utils,tesseract-ocr,qpdf) withread_only: true,cap_drop: [ALL],/scratchtmpfs, memory limits, and zero credentials or persistent volumes.Multi-user fail-closed scoping: Every read, search, facts, and status call resolves the authenticated caller's allowed
source_keysfrom the targets hub (GET /internal/library-targets, TTL <= 60s). If the hub is unavailable, the service fails closed (HTTP 503) and never falls back to stale or corpus-wide data.HTTP security boundaries:
/mcprequires a configured backend bearer token (>= 32 chars, constant-timehmac.compare_digestcheck,401on failure), a non-emptyX-Fleet-Subjectheader (403on missing),TrustedHostMiddlewarehost validation, andCache-Control: no-storeon all API responses.GET /healthruns SQLitePRAGMA quick_check(200/503) without auth.
CLI reference
All commands are exposed via filings-library:
# Run one bounded sync pass
filings-library sync --data-dir ./data \
--targets-url http://127.0.0.1:8000 \
--targets-token "$FILINGS_TARGETS_TOKEN" \
--extractor-url http://127.0.0.1:8081 \
--sec-user-agent "FilingsLibrary/0.1 (contact@example.com)"
# Search, read, query XBRL facts, and inspect coverage (--person ID or --all)
filings-library search "operating margin" --data-dir ./data --all --json
filings-library read <document_id> --data-dir ./data --all --start page:1 --end page:3
filings-library facts Revenues NetIncomeLoss --data-dir ./data --all --json
filings-library status --data-dir ./data --all --json
# Maintenance & one-way Markdown export
filings-library export-md ./export --data-dir ./data
filings-library rebuild-fts --data-dir ./data
# Hosted servers
filings-library serve --data-dir ./data --host 0.0.0.0 --port 8080
filings-library extractor --host 0.0.0.0 --port 8081MCP tools
Mounted at /mcp (Streamable HTTP, stateless JSON responses):
Tool | Description |
| List companies in the caller's allowed |
| List documents filtered by |
| Scoped FTS5 financial search returning strict |
| Bounded section reader with |
| Query cached SEC XBRL |
| Per-issuer coverage report (counts by |
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Research U.S. public companies from their SEC filings: financials, XBRL facts and filing text.
SEC filings and financials with accession links, insider and congress trades, macro. OAuth or key.
Read-only public-company financials, KPIs, benchmarks, filings, and insider activity.
Live SEC EDGAR XBRL financials and filings. Pay per call in USDC via x402, or a Pro API key.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceEnables deep analysis of SEC EDGAR filings through universal company search, document content extraction, and advanced filing search capabilities. Provides AI-ready access to business descriptions, risk factors, financial statements, and full-text search across any public company's SEC documents.-
- FlicenseNot gradedqualityDmaintenanceProvides secure access to XBRL-US financial data with session-based authentication, enabling users to search for companies by fiscal year and retrieve their financial facts from SEC filings.-
- AlicenseBqualityDmaintenanceEnables comprehensive access to SEC EDGAR filings, allowing users to search companies, retrieve financial statements, and analyze dimensional XBRL data including revenue breakdowns by geography, business segments, and product lines.13MIT
- AlicenseNot gradedqualityCmaintenanceEnables authenticated, read-only access to securities search, quote snapshots, indices, historical daily bars, exchange rates, and macroeconomic indicators. Cross-checks prices across multiple upstream sources and reports each source's availability and status without fabricating missing values.1MIT