Context7
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
SEC 10-K/10-Q/8-K search, RAG Q&A, comparison, and anomaly detection with citations.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
GEMINI_API_KEY, QDRANT_URL, QDRANT_API_KEY, LANGFUSE_SECRET_KEY, LANGFUSE_PUBLIC_KEY, SEC_EDGAR_USER_AGENT, EMBEDDING_MODEL, GEMINI_MODELค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"sec-intelligence": {
"command": "uvx",
"args": [
"sec-intelligence-mcp"
],
"env": {
"GEMINI_API_KEY": "ใส่ค่าของคุณ",
"QDRANT_URL": "ใส่ค่าของคุณ",
"QDRANT_API_KEY": "ใส่ค่าของคุณ",
"LANGFUSE_SECRET_KEY": "ใส่ค่าของคุณ",
"LANGFUSE_PUBLIC_KEY": "ใส่ค่าของคุณ",
"SEC_EDGAR_USER_AGENT": "ใส่ค่าของคุณ",
"EMBEDDING_MODEL": "ใส่ค่าของคุณ",
"GEMINI_MODEL": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add sec-intelligence --env GEMINI_API_KEY='ใส่ค่าของคุณ' --env QDRANT_URL='ใส่ค่าของคุณ' --env QDRANT_API_KEY='ใส่ค่าของคุณ' --env LANGFUSE_SECRET_KEY='ใส่ค่าของคุณ' --env LANGFUSE_PUBLIC_KEY='ใส่ค่าของคุณ' --env SEC_EDGAR_USER_AGENT='ใส่ค่าของคุณ' --env EMBEDDING_MODEL='ใส่ค่าของคุณ' --env GEMINI_MODEL='ใส่ค่าของคุณ' -- uvx sec-intelligence-mcpเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"sec-intelligence": {
"command": "uvx",
"args": [
"sec-intelligence-mcp"
],
"env": {
"GEMINI_API_KEY": "ใส่ค่าของคุณ",
"QDRANT_URL": "ใส่ค่าของคุณ",
"QDRANT_API_KEY": "ใส่ค่าของคุณ",
"LANGFUSE_SECRET_KEY": "ใส่ค่าของคุณ",
"LANGFUSE_PUBLIC_KEY": "ใส่ค่าของคุณ",
"SEC_EDGAR_USER_AGENT": "ใส่ค่าของคุณ",
"EMBEDDING_MODEL": "ใส่ค่าของคุณ",
"GEMINI_MODEL": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"sec-intelligence": {
"type": "stdio",
"command": "uvx",
"args": [
"sec-intelligence-mcp"
],
"env": {
"GEMINI_API_KEY": "ใส่ค่าของคุณ",
"QDRANT_URL": "ใส่ค่าของคุณ",
"QDRANT_API_KEY": "ใส่ค่าของคุณ",
"LANGFUSE_SECRET_KEY": "ใส่ค่าของคุณ",
"LANGFUSE_PUBLIC_KEY": "ใส่ค่าของคุณ",
"SEC_EDGAR_USER_AGENT": "ใส่ค่าของคุณ",
"EMBEDDING_MODEL": "ใส่ค่าของคุณ",
"GEMINI_MODEL": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
SEC_EDGAR_USER_AGENT envEMBEDDING_MODEL envGEMINI_MODEL envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub jahanv01 ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใส่ค่าเหล่านี้: GEMINI_API_KEY, QDRANT_URL, QDRANT_API_KEY, LANGFUSE_SECRET_KEY, LANGFUSE_PUBLIC_KEY
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.1.1) เข้า registry 2 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย
ในหมวดเดียวกันมี Context7, Codebase Memory, Exa
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
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.
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.
Published on PyPI: https://pypi.org/project/sec-intelligence-mcp/. No clone, no build step — uv fetches and runs it on demand:
uvx sec-intelligence-mcp
That's the whole install. Two more things and you're ready to use it in Claude Desktop:
All four take under 5 minutes total, no credit card anywhere.
| Variable | Where to get it | Required? |
|---|---|---|
GEMINI_API_KEY | https://aistudio.google.com/apikey — sign in with a Google account | Yes |
QDRANT_URL | http://localhost:6333 if you run Qdrant locally via Docker (docker run -p 6333:6333 qdrant/qdrant), or a free cluster URL from https://cloud.qdrant.io | Yes |
LANGFUSE_SECRET_KEY / LANGFUSE_PUBLIC_KEY | https://cloud.langfuse.com — free tier, create a project, copy both keys from Settings → API Keys | Yes |
QDRANT_API_KEY | Only if using Qdrant Cloud instead of local Docker | No |
Don't have Docker or want to skip signing up for Qdrant? See the note in Getting Qdrant running below.
Add this to your claude_desktop_config.json (Windows: %APPDATA%\Claude\claude_desktop_config.json, macOS: ~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": { "sec-intelligence-mcp": { "command": "uvx", "args": ["sec-intelligence-mcp"], "env": { "GEMINI_API_KEY": "your-key", "QDRANT_URL": "http://localhost:6333", "LANGFUSE_SECRET_KEY": "your-key", "LANGFUSE_PUBLIC_KEY": "your-key" } } } }
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.
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.
| Tool | What it does | Example question |
|---|---|---|
ingest_company_filings | Fetches, parses, and indexes a company's recent SEC filings | "Ingest NVIDIA's last 3 10-Ks" |
search_filings | Semantic search across ingested filings, returns passages with citations | "Search Apple's 10-K for anything about AI investment" |
analyze_filing | Answers a specific question with a grounded, cited answer (RAG) | "What were Apple's main risk factors in their 2024 10-K?" |
get_filing_summary | Structured executive summary of a full filing (business, financials, MD&A, risks, outlook) | "Summarize NVIDIA's latest 10-K" |
compare_companies | Side-by-side comparison of 2-4 companies on a specific aspect, grounded in each company's own filing | "Compare NVIDIA and AMD's AI chip strategy" |
detect_financial_anomalies | Flags notable year-over-year changes in a company's MD&A/risk disclosures | "Did NVIDIA's risk language around China change between 2023 and 2024?" |
get_earnings_summary | Extracts headline metrics, guidance, and management commentary from a quarterly earnings release (8-K) | "Summarize Apple's Q2 2024 earnings" |
Open source and free-tier first — no paid API is required to run this end to end.
| Layer | Tool | Why |
|---|---|---|
| MCP protocol | mcp Python SDK | Official Anthropic SDK |
| SEC data | SEC EDGAR Full-Text & Submissions API | Official, free, no API key |
| Embeddings | sentence-transformers — intfloat/e5-base-v2 | Runs on CPU, no GPU needed |
| Vector store | Qdrant | Free self-host (Docker) or Qdrant Cloud |
| Local cache | DuckDB | Ticker lookups, filing metadata, BM25 text |
| Keyword search | rank-bm25 | Hybrid retrieval alongside dense search |
| Reranking | sentence-transformers CrossEncoder (ms-marco-MiniLM-L-6-v2) | Re-scores top candidates before the LLM sees them |
| HTML/PDF parsing | beautifulsoup4, pdfplumber | Cleans raw filing documents to text |
| LLM | Google Gemini (free tier) | Answer generation |
| Observability | LangFuse | Tracing, spans, faithfulness scores |
| Evaluation | RAGAS | Automated faithfulness/correctness/recall scoring |
| Testing | pytest, pytest-asyncio | 120+ tests, fully mocked, no network calls |
| Linting | Ruff | |
| CI/CD | GitHub Actions | Lint, test, Docker build, eval-gate on every PR |
| Containerization | Docker + Docker Compose | |
| Deployment | Oracle Cloud "Always Free" tier | Real persistent disk, up to 24GB RAM, $0 |
| Packaging | PyPI + uv/uvx, Hatchling | One-command install, no clone needed |
flowchart LR
A[Claude Desktop / MCP client] -->|MCP tool calls| B[sec-intelligence-mcp server] B --> C[SEC EDGAR API] B --> D[Qdrant vector search] B --> E[Gemini answer generation] B --> F[LangFuse tracing + eval scores] C -->|filings| B D -->|cited passages| B E -->|grounded answer| B
Measured with RAGAS on 50 hand-verified question/ground-truth pairs across 5 companies (full methodology and raw results in eval/README.md):
| Retrieval strategy | Faithfulness | Correctness | Context Recall |
|---|---|---|---|
| v1: semantic-only (dense embeddings) | 0.92 | 0.67 | 0.84 |
| v2: hybrid (BM25 + semantic via RRF) — production default | 0.95 | 0.78 | 0.99 |
| v3: hybrid + cross-encoder reranking | 0.98 | 0.82 | 1.00 |
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.
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:
Want to run from source, contribute, or self-host instead of using the published package?
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.
git clone https://github.com/jahanv01/sec-intelligence-mcp.git
cd sec-intelligence-mcp uv sync
3. Copy `.env.example` to `.env` and fill in the keys from the table above.
docker compose up -d qdrant
uv run python src/server.py
Or with the MCP Inspector (dev UI, requires Node.js):
uv run mcp dev src/server.py
For Claude Desktop, point it at your clone instead of the published package:
{
"mcpServers": { "sec-intelligence-mcp": { "command": "uv", "args": [ "--directory", "C:\\ABSOLUTE\\PATH\\TO\\sec-intelligence-mcp", "run", "python", "src/server.py" ] } } }
src/config.py fails fast at import time (raises RuntimeError) if any required key is missing.
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.
uv run python -c "import mcp" # SDK installed correctly
uv run python scripts/test_server_stdio.py # server responds over stdio (ping -> pong) docker compose up -d qdrant uv run python scripts/test_qdrant.py # Qdrant round-trip works
uv run python scripts/test_edgar_lookup.py # ticker -> CIK, DuckDB-cached uv run python scripts/test_edgar_filings.py # recent 10-K filings for a ticker uv run python scripts/test_edgar_parser.py # download + clean a real filing uv run python scripts/test_edgar_sections.py # section detection + metadata
uv run python scripts/test_chunker.py # section/paragraph chunking uv run python scripts/test_encoder.py # E5 embedding shape/latency uv run python scripts/test_ingest.py # chunk -> embed -> upsert to Qdrant uv run python scripts/test_search.py # semantic search with citations
uv run python scripts/test_tool_ingest_company_filings.py uv run python scripts/test_tool_search_filings.py uv run python scripts/test_tool_analyze_filing.py uv run python scripts/test_tool_get_filing_summary.py
uv run pytest tests/ -m "not integration"
src/
├─
ตัดมาแค่ช่วงต้น อ่านต่อใน repo