the13f-mcp
the13f-mcp
the13f 的模型上下文协议 (MCP) 服务器。将机构 13F 情报引入 Claude Desktop、Cursor、VS Code + Continue 以及任何兼容 MCP 的主机 — 无需您编写任何 HTTP 代码。
重要限制
仅供研究数据使用。数据源自公开披露的 SEC 13F 表格,该表格较季度末有最多 45 天的滞后。过去的机构持仓情况无法预测未来表现。此处内容不构成任何投资建议。每个工具的响应都包含一个 disclaimer(免责声明)字段;主机 LLM 应将其与生成的任何分析结果一同展示。
Related MCP server: congress-whales
安装
uvx the13f-mcp或者,如果您更喜欢自己管理 Python 环境,可以使用 pip install the13f-mcp。需要 Python 3.11+。
获取免费 API 密钥
免费,无需付款,无需信用卡:
输入您的电子邮件并完成 Cloudflare Turnstile 验证
复制您的
pf13f_密钥 — 仅显示一次将其粘贴到您的 MCP 主机配置中,命名为
THE13F_API_KEY(见下文)重启主机
免费层级:每天 100 次读取调用;配额在 UTC 午夜重置。信号和报告工具将在付费层级推出后的后续小版本中加入。
配置您的 MCP 主机
Claude Desktop
编辑 ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) 或 %APPDATA%/Claude/claude_desktop_config.json (Windows):
{
"mcpServers": {
"the13f": {
"command": "uvx",
"args": ["the13f-mcp"],
"env": {
"THE13F_API_KEY": "pf13f_..."
}
}
}
}重启 Claude Desktop。The13f 工具应出现在 MCP 工具列表中。
Cursor
设置 → MCP → 添加服务器。将相同的 JSON 代码块粘贴到“自定义”字段中。
VS Code (配合 Continue)
设置 → experimental.modelContextProtocolServers → 添加一个运行 uvx the13f-mcp 的 stdio 传输,并在环境变量中设置 THE13F_API_KEY。位于 https://the13f.com/developers/signup-success 的密钥显示页面提供了一个已填入密钥的复制粘贴代码片段。
可用工具 — v0.1.0(读取层级,免费)
工具 | 功能 |
| 所有包含持仓数据的季度 + 最新季度 |
| 按名称自动补全 13F 申报机构 |
| 获取特定 CIK 和季度的完整持仓 |
| 单次调用最多获取 25 个 |
| 包含 8,600 多家申报机构的数据库,提供各机构的汇总统计数据 |
| 将投资组合与数据库进行匹配 |
| 每季度持仓最广泛的证券 |
| 机构市场机制快照(IIOI 综合指数、状态、转换) |
| 各行业的资金流向和风险态势 |
计划中的工具 — 后续版本
版本 | 工具 | 要求 |
v0.2.0 |
| 标准层级订阅 |
v0.3.0 |
| 标准层级 + 存储卡;两步确认 |
免费层级的读取工具足以探索数据并针对其构建提示词。信号和报告工具将等待付费层级的计费系统完善后推出。
提示词示例
“提取伯克希尔·哈撒韦公司截至 2025 年第四季度的前 20 大持仓,并总结环比增长最显著的持仓。”
“我持有等权重的 AAPL、MSFT 和 NVDA。找出投资组合与我最相似的 5 家机构管理人。”
“13F 申报机构在上个季度减持最激进的行业是什么?列出减持该行业的前三名管理人。”
MCP 主机的 LLM 会选择正确的工具,填入参数,展示 disclaimer,并以结构化 JSON 格式返回结果。
环境变量
变量 | 默认值 | 控制内容 |
| (无) | 您的 |
|
| 用于针对正在运行的 the13f gui_server 本地副本进行开发时的覆盖设置。 |
|
| 每次请求的 HTTP 超时时间(秒)。最小值为 5。 |
源码
公开源码:https://github.com/pickelfintech/the13f-mcp。这是 PyPI、Glama.ai 和 MCP 社区列表所指向的快照。GitHub 仓库是 gitlab.com/pickel-fintech/the13f-mcp 的推送镜像;GitLab 仍是主仓库,并负责发布 CI。欢迎在任一平台提交 Bug 报告和 PR。
许可
MIT — 见 LICENSE。此客户端调用的托管 API api.the13f.com 是一个独立服务。需要免费 API 密钥(每天 100 次调用);请在 https://the13f.com/developers/ 注册。
支持
tom@pickelfintech.com — 引用任何失败工具调用返回的 request_id 字段以获得最快处理。
许可
MIT。见 LICENSE。MCP 服务器源码采用 MIT 许可;对 the13f API 本身的使用受 https://the13f.com/terms.html 的服务条款约束。
Available Tools
9 toolsfind_similar_managersA
Research data only. Returns disclosed institutional positions; do not infer manager intent or future direction. Match a portfolio against the 13F universe and return the closest (or deliberately-different) managers.
Args: holdings: list of {"ticker": "AAPL", "weight": 0.05}; weight optional (equal weights default). quarter: defaults to latest quarter if None. top_n: 1-50, default 10. direction: "similar" (closest matches) or "unlike" (most different).
Returns: {"quarter": "...", "matches": [{"cik": ..., "similarity_score": ..., ...}, ...], "disclaimer": "..."}
Inputs: holdings (required), quarter, top_n, direction.
get_consensus_portfolioA
Research data only. Returns disclosed institutional positions; do not infer manager intent or future direction. Return the top-N consensus portfolio - securities held by the most institutional managers.
Args: quarter: quarter code (e.g. "q4y2025").
Returns: {"quarter": "...", "count": 50, "securities": [{"ticker": ..., "weight_pct": ..., ...}, ...]}
Inputs: quarter (required).
get_manager_holdingsA
Research data only. Returns disclosed institutional positions; do not infer manager intent or future direction. Return all positions held by a 13F filer in a given quarter.
Args: cik: zero-padded 10-digit SEC CIK (e.g. "0001037389"). quarter: quarter code like "q4y2025".
Returns: { "cik": "...", "quarter": "...", "n_positions": 3185, "total_value_thousands": 64461244358.0, "holdings": [{"CUSIP": ..., "TICKER": ..., "VALUE": ..., ...}, ...], "disclaimer": "..." }
Inputs: cik (required), quarter (required).
get_manager_holdings_bulkA
Research data only. Returns disclosed institutional positions; do not infer manager intent or future direction. Look up holdings for many (cik, quarter) pairs in one call (Tier 3).
More efficient than calling get_manager_holdings repeatedly: groups by quarter so each parquet file is read at most once. Single billing event regardless of how many pairs you supply (up to 25 per call).
Args: pairs: list of {"cik": "...", "quarter": "..."} dicts. Min 1, max 25.
Returns: { "results": [ {"cik": "0001067983", "quarter": "q4y2025", "status": "ok", "n_positions": 42, "total_value_thousands": ..., "holdings": [...]}, {"cik": "0001234567", "quarter": "q4y2025", "status": "not_found", "error": "..."}, ... ], "n_requested": 5, "n_ok": 4, "n_failed": 1 }
Per-pair errors do NOT raise; check status field on each result. Use this when you need holdings for multiple managers/quarters at once (e.g. comparing a portfolio across periods or surveying peer institutions).
Inputs: pairs (required).
get_market_regimeA
Research data only. Returns disclosed institutional positions; do not infer manager intent or future direction. Return the institutional regime snapshot for a quarter (IIOI composite, regime state, transition).
Args: quarter: quarter code.
Returns: {"quarter": "...", "iioi_composite": 62.4, "regime_state": "High Optimism", ...}
Inputs: quarter (required).
get_sector_flowsA
Research data only. Returns disclosed institutional positions; do not infer manager intent or future direction. Return per-sector institutional capital flow intelligence for a quarter.
Args: quarter: quarter code. sector: optional GICS sector to filter (e.g. "Information Technology").
Returns: {"quarter": "...", "sectors": [{"gics_sector": ..., "net_capital_flow_thousands": ..., "risk_posture": ..., ...}, ...]}
Inputs: quarter (required), sector.
list_all_managersA
Research data only. Returns disclosed institutional positions; do not infer manager intent or future direction. Return the full universe of 13F filers with per-manager AUM.
Args: active_only: if true (default), only managers present in the latest quarter.
Returns: { "count": 8625, "active_only": true, "managers": [{"cik": "...", "name": "...", "latest_aum": ..., ...}, ...], "disclaimer": "..." }
NOTE: response can be ~6 MB JSON; consider filtering client-side.
Inputs: active_only.
list_quartersA
Research data only. Returns disclosed institutional positions; do not infer manager intent or future direction. Return all quarter codes with available data.
Returns: {"quarters": ["q1y2013", ..., "q4y2025"], "latest": "q4y2025"}
Use the latest quarter by default unless the user specifies one.
Inputs: no named parameters.
search_managersA
Research data only. Returns disclosed institutional positions; do not infer manager intent or future direction. Find institutional 13F filers by name (case-insensitive substring, min 2 chars).
Args: query: substring of the manager's name (e.g. "renaissance", "berkshire"). limit: max results to return, 1-50, default 10.
Returns: { "query": "...", "results": [ {"cik": "0001037389", "name": "Renaissance Technologies Llc", "latest_aum": 64461244358, "available_quarters": [...]}, ... ], "disclaimer": "Research data only..." }
Inputs: query (required), limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool targets a distinct operation: searching managers, retrieving holdings, comparing portfolios, getting consensus data, sector flows, regime states, and quarter listings. No two tools have overlapping purposes.
All tool names follow a consistent verb_noun pattern (find_, get_, list_, search_) with clear action and domain. The only minor deviation is 'find_similar_managers' being more specific than others, but it remains readable.
With 9 tools, the server covers a well-scoped domain of 13F data analysis including lookups, comparisons, and market overview. Each tool serves a clear purpose without bloat.
The tool set covers key workflows: manager search, holdings retrieval (single and bulk), portfolio comparison, consensus portfolio, sector flows, and market regime. A minor gap is the lack of a tool to retrieve historical quarter-by-quarter changes for a single manager, but the core CRUD and analysis operations are present.
Related MCP Connectors
Real SEC, 13F, insider, congress & macro data your AI agent can cite. Hosted MCP, 24 tools.
Your investing research inside Claude: watchlists, financial ratios, reverse-DCF valuations, investment theses, notes, portfolio, earnings calendar and news for the companies you follow. 70 read and write tools; ask what's on your morning desk, rank a watchlist by ROE, log a trade or save a thesis. OAuth sign-in. Free to start.
SEC filings for Claude, ChatGPT, Cursor — 23 tools + 5 recipes. Financials, insider, 13F, funds.
SEC filings — 13F, Form 4, 8-K, 13D, IPO and short-interest data — as 17 agent tools.
Related MCP Servers
- AlicenseBqualityBmaintenanceProvides 32 trading analysis tools for AI-powered market analysis, including real-time data, technical indicators, options Greeks, scanners, and Interactive Brokers portfolio management, all accessible via natural language in Claude Desktop.36416MIT
- FlicenseNot gradedqualityCmaintenanceConnects Claude to live U.S. Congress stock trades and institutional 13F holdings from free public sources, enabling natural language queries about political insider trading and fund overlap.-
- FlicenseNot gradedqualityAmaintenanceEnables natural-language research across SEC filings, earnings call transcripts, company financials, stock and crypto market data, and prediction markets, returning structured, source-backed answers. It also exposes deep-research synthesis agents and live documentation search to Claude Desktop, Cursor, and other MCP clients.-
- AlicenseAqualityBmaintenanceEnables MCP clients such as Claude Desktop and Cursor to query US equity market data, search SEC filings with citations, retrieve XBRL financials, assess portfolio risk, and draft simulated orders that require human confirmation.71MIT