
SEC Intelligence
io.github.jahanv01由 GitHub 账号 jahanv01 发布v0.1.1更新于 Oct 25, 2026
SEC 10-K/10-Q/8-K search, RAG Q&A, comparison, and anomaly detection with citations.
概览
本地 MCP 服务器,索引 SEC 文件(10-K、10-Q、8-K),让助手带引用地回答问题、比较和总结。
- 可以做什么
- 抓取、解析并索引公司近期 SEC 文件,供后续提问使用(ingest_company_filings)。对已索引文件做语义检索,返回带引用的段落(search_filings)。针对具体问题给出有依据、带引用的回答,或生成整份文件的结构化摘要(analyze_filing、get_filing_summary)。就某一主题对 2 至 4 家公司做并列比较,各自依据其自身文件(compare_companies)。标记 MD&A 与风险披露的同比变化,并从 8-K 财报中提取关键指标、指引和管理层评论(detect_financial_anomalies、get_earnings_summary)。
- 适用场景
- 适合需要了解公司在 SEC 文件中实际写了什么、并附上章节引用的场景,而不是从数据 API 取数字。适用于风险因素、管理层表述、指引语气以及跨公司对比的研究。
- 运行要求
- 以 Python 包形式通过 uvx 本地运行(或克隆后用 uv 运行)。需要 GEMINI_API_KEY、LANGFUSE_PUBLIC_KEY 和 LANGFUSE_SECRET_KEY,以及指向本地 Docker Qdrant 或 Qdrant Cloud 集群的 QDRANT_URL;QDRANT_API_KEY 仅在使用 Qdrant Cloud 时需要。可选 EMBEDDING_MODEL、GEMINI_MODEL 和 SEC_EDGAR_USER_AGENT。需能访问 SEC EDGAR、Gemini、LangFuse 和 Qdrant。
安装
在 SourceWeft 中
- 打开 控制台中的 SEC Intelligence,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
🔎 SEC Intelligence MCP — Document-Grounded Financial AI
Ask Claude Desktop real questions about SEC filings — 10-Ks, 10-Qs, 8-Ks — and get answers quoted directly from the actual filing text, with a citation to the exact section (and page, where available) on every claim. Not a summary from training data. Not a guess.
Try it now: uvx sec-intelligence-mcp — see Quick install below.
Why this is different
Most finance-related MCP servers are data-API wrappers: they hand back numbers (revenue, EPS, price) from a database. None of the ones we surveyed read the actual filing documents, so none can answer a question that requires understanding what a company's management actually said — e.g. "how did NVIDIA's management explain the datacenter revenue surge?" or "did Amazon's forward guidance tone change between quarters?"
This server retrieves and quotes the real filing text with a citation on every claim, and its answer-generation prompt explicitly refuses to use prior/general knowledge when the retrieved passages don't contain the answer — verified live: asking about NVIDIA's non-existent "Mars operations" correctly returns "not present in the filing" rather than an invented answer. It also ships an automated RAGAS evaluation harness (see Evaluation results) that measures this claim on 50 real questions rather than just asserting it.
🚀 Quick install
Published on PyPI: https://pypi.org/project/sec-intelligence-mcp/. No clone, no build step — uv fetches and runs it on demand:
That's the whole install. Two more things and you're ready to use it in Claude Desktop:
1. Get your free API keys
All four take under 5 minutes total, no credit card anywhere.
Don't have Docker or want to skip signing up for Qdrant? See the note in Getting Qdrant running below.
2. Connect Claude Desktop
Add this to your claude_desktop_config.json
(Windows: %APPDATA%\Claude\claude_desktop_config.json, macOS: ~/Library/Application Support/Claude/claude_desktop_config.json):
Restart Claude Desktop, open the tools list (hammer icon), and confirm sec-intelligence-mcp
appears with a ping tool. That confirms the connection works before you rely on it for a
real question.
3. Try it out
Every session starts by ingesting the company you want to ask about — that's what indexes its filings so they can be searched. Then just ask in plain English:
You: Ingest NVIDIA's last 2 annual filings
Claude (calls
ingest_company_filings): Indexed 2 filings for NVIDIA — 312 chunks from FY2024's 10-K, 287 from FY2023's.You: What did they say about risks from export controls?
Claude (calls
analyze_filing): NVIDIA's FY2024 10-K identifies export control regulations as a primary risk: "The U.S. government has imposed, and may in the future impose, controls on the export of our products... restrictions to China, Hong Kong, and Russia have materially impacted our revenue." — [Item 1A — Risk Factors]You: How does that compare to AMD?
Claude (calls
compare_companies): [grounded side-by-side answer, cited to each company's own filing]
No prompt engineering, no special syntax — Claude picks the right tool automatically based on what you ask.
🧰 Available tools
🛠️ Tech stack
Open source and free-tier first — no paid API is required to run this end to end.
🏗️ Architecture
📊 Evaluation results
Measured with RAGAS on 50 hand-verified
question/ground-truth pairs across 5 companies (full methodology and raw results in
eval/README.md):
CI's eval-gate fails any PR to main that drops faithfulness below 0.75 on a real,
live-ingested subset of these questions — see .github/workflows/ci.yml.
LangFuse dashboard
A real trace of analyze_filing answering "What risks does NVIDIA face from export
controls?" — the span tree shows retrieval and embedding nested under the tool call,
alongside the LLM generation, with a faithfulness: 1.00 score attached automatically:
[LangFuse trace showing analyze_filing's span tree and a 1.00 faithfulness score]
👩💻 For developers
Want to run from source, contribute, or self-host instead of using the published package?
Getting Qdrant running
The simplest path is Docker: docker run -p 6333:6333 qdrant/qdrant. No Docker? Use a free
Qdrant Cloud cluster instead and set QDRANT_API_KEY too.
Run from a local clone
- Install uv.
- Clone the repo and install dependencies:
- Copy
.env.exampleto.envand fill in the keys from the table above. - Start Qdrant locally:
- Run the server directly: Or with the MCP Inspector (dev UI, requires Node.js):
For Claude Desktop, point it at your clone instead of the published package:
src/config.py fails fast at import time (raises RuntimeError) if any required key is
missing.
Running via Docker
docker compose up -d builds the server image and starts it alongside Qdrant. The app
service reads secrets from your local .env via env_file, and QDRANT_URL is overridden
to http://qdrant:6333 (the in-network service name) since localhost inside the container
would not reach the qdrant container.
Testing locally
Project structure
Deploy your own instance
The published PyPI package is enough for personal use via Claude Desktop — you only need this if you want a standalone, publicly reachable server (e.g. for a remote MCP client).
Deployed on an Oracle Cloud "Always Free" compute VM (Ampere A1, ARM) rather than Render or
Hugging Face Spaces: both of those give the container an ephemeral filesystem (wiped on
every restart/redeploy) and cap free-tier RAM at 512MB, which doesn't comfortably fit the
embedding model (e5-base-v2, CPU-only, ~440MB loaded) alongside the rest of the process. A
real Always Free VM has neither constraint — genuine persistent disk and up to 24GB RAM — so
Qdrant runs locally via the same docker-compose.yml used for local dev, with no separate
Qdrant Cloud account needed.
Setup (one-time):
- Create an Always Free Ampere A1 compute instance (Ubuntu image) in the Oracle Cloud console, and note its public IP.
- In the VCN's Security List (not just the instance's own firewall — both must allow
it), add an ingress rule for TCP port
8000(and22for SSH, usually already open). - SSH in, install Docker + the Compose plugin, then:
QDRANT_URLdoesn't need to be set in.envhere —docker-compose.ymlalready overrides it tohttp://qdrant:6333, the in-network service name, for theappservice. - Also open the instance's own firewall for the port (Ubuntu ships
iptables/ufwrules that block it even after the Security List allows it): - Confirm:
curl http://<instance-public-ip>:8000/healthreturnsok.
Both services have restart: unless-stopped, so a VM reboot brings the whole stack back up
without manual intervention. Plain HTTP (no TLS/domain) is used for now — fine for a demo,
but a real production deployment would put Caddy or Nginx in front for HTTPS.
Alternative: Hugging Face Spaces. Also possible via the Docker SDK, using Qdrant Cloud
instead of a local container (Spaces storage is ephemeral on restart, unlike a real VM).
huggingface.co → New Space → SDK: Docker → add GEMINI_API_KEY, QDRANT_URL,
QDRANT_API_KEY, LANGFUSE_SECRET_KEY, LANGFUSE_PUBLIC_KEY as secrets and
MCP_TRANSPORT=sse as a variable in Space Settings, then git push this repo to the
Space's git remote.
🤝 Contributing
Issues and PRs welcome. See docs/edgar-api.md for EDGAR API quirks
(rate limits, required User-Agent header) and eval/README.md before
changing anything in the retrieval pipeline — a PR that regresses RAGAS faithfulness below
0.75 will fail CI's eval-gate job.
来源:README.md,提交 db8a295
工具
0版本历史
1- v0.1.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分