Skip to main content
Glama
the13f-mcp

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 密钥

免费,无需付款,无需信用卡:

  1. 访问 https://the13f.com/developers/

  2. 输入您的电子邮件并完成 Cloudflare Turnstile 验证

  3. 复制您的 pf13f_ 密钥 — 仅显示一次

  4. 将其粘贴到您的 MCP 主机配置中,命名为 THE13F_API_KEY(见下文)

  5. 重启主机

免费层级:每天 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(读取层级,免费)

工具

功能

list_quarters

所有包含持仓数据的季度 + 最新季度

search_managers

按名称自动补全 13F 申报机构

get_manager_holdings

获取特定 CIK 和季度的完整持仓

get_manager_holdings_bulk

单次调用最多获取 25 个 (cik, quarter) 对

list_all_managers

包含 8,600 多家申报机构的数据库,提供各机构的汇总统计数据

find_similar_managers

将投资组合与数据库进行匹配

get_consensus_portfolio

每季度持仓最广泛的证券

get_market_regime

机构市场机制快照(IIOI 综合指数、状态、转换)

get_sector_flows

各行业的资金流向和风险态势

计划中的工具 — 后续版本

版本

工具

要求

v0.2.0

get_security_signals, get_security_signals_bulk, get_portfolio_signals

标准层级订阅

v0.3.0

generate_manager_report, generate_security_report, generate_sector_report, check_report_status, wait_and_download_report

标准层级 + 存储卡;两步确认

免费层级的读取工具足以探索数据并针对其构建提示词。信号和报告工具将等待付费层级的计费系统完善后推出。

提示词示例

“提取伯克希尔·哈撒韦公司截至 2025 年第四季度的前 20 大持仓,并总结环比增长最显著的持仓。”

“我持有等权重的 AAPL、MSFT 和 NVDA。找出投资组合与我最相似的 5 家机构管理人。”

“13F 申报机构在上个季度减持最激进的行业是什么?列出减持该行业的前三名管理人。”

MCP 主机的 LLM 会选择正确的工具,填入参数,展示 disclaimer,并以结构化 JSON 格式返回结果。

环境变量

变量

默认值

控制内容

THE13F_API_KEY

(无)

您的 pf13f_ 密钥。若无此密钥,工具将返回一个结构化的“需要免费注册”响应,并附带注册页面链接。

THE13F_API_BASE_URL

https://api.the13f.com

用于针对正在运行的 the13f gui_server 本地副本进行开发时的覆盖设置。

THE13F_MCP_TIMEOUT

30

每次请求的 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 tools
find_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

    A4.1/5.0

    Scored across 9 tools

    Disambiguation5/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      Provides 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.
      36
      416
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      Connects 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.
      -
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables 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.
      -
    • A
      license
      A
      quality
      B
      maintenance
      Enables 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.
      7
      1
      MIT