Skip to main content
Glama
the13f-mcp

the13f-mcp

the13f-mcp

Сервер протокола контекста модели (MCP) для the13f. Предоставляет институциональную аналитику 13F в Claude Desktop, Cursor, VS Code + Continue и любой хост, совместимый с MCP — без необходимости писать HTTP-код с вашей стороны.

Важные ограничения

Только исследовательские данные. Источником являются публично раскрытые отчеты SEC по форме 13F, которые запаздывают относительно конца квартала на срок до 45 дней. Прошлое институциональное позиционирование не предсказывает будущие результаты. Ничто из представленного здесь не является инвестиционным советом. Ответ каждого инструмента включает поле disclaimer; хост-LLM должен отображать его вместе с любым анализом, который он создает.

Related MCP server: congress-whales

Установка

uvx the13f-mcp

Или pip install the13f-mcp, если вы предпочитаете управлять средами Python самостоятельно. Требуется Python 3.11+.

Получение бесплатного API-ключа

Бесплатно, без оплаты, без кредитной карты:

  1. Посетите https://the13f.com/developers/

  2. Введите свой email и решите задачу 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

Settings → MCP → Add Server. Вставьте тот же блок JSON в поле "Custom".

VS Code с Continue

Settings → experimental.modelContextProtocolServers → добавьте транспорт stdio, запускающий uvx the13f-mcp с 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

Вселенная из 8600+ подателей со сводной статистикой по каждому

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

Подписка уровня Standard

v0.3.0

generate_manager_report, generate_security_report, generate_sector_report, check_report_status, wait_and_download_report

Уровень Standard + сохраненная карта; двухэтапное подтверждение

Инструменты чтения бесплатного уровня достаточны для изучения данных и создания промптов на их основе. Инструменты сигналов и отчетов намеренно ожидают внедрения биллинга для платных уровней.

Примеры промптов

"Получи топ-20 позиций Berkshire Hathaway по состоянию на 4 квартал 2025 года и резюмируй, что выросло больше всего по сравнению с предыдущим кварталом."

"У меня есть AAPL, MSFT и NVDA в равных долях. Найди 5 институциональных управляющих, чьи портфели наиболее похожи на мой."

"Какой сектор 13F-податели наиболее агрессивно сокращали в прошлом квартале? Покажи мне трех лучших управляющих, лидирующих в этом сокращении."

LLM MCP-хоста выбирает нужный инструмент, заполняет аргументы, отображает disclaimer и возвращает результат в виде структурированного JSON.

Переменные окружения

Переменная

По умолчанию

Что контролирует

THE13F_API_KEY

(нет)

Ваш ключ pf13f_. Без него инструменты возвращают структурированный ответ "требуется бесплатная регистрация" со ссылкой на страницу регистрации.

THE13F_API_BASE_URL

https://api.the13f.com

Переопределение для локальной разработки с использованием запущенной копии gui_server от the13f.

THE13F_MCP_TIMEOUT

30

Тайм-аут HTTP для каждого запроса в секундах. Минимум 5.

Исходный код

Публичный исходный код: https://github.com/pickelfintech/the13f-mcp. Это снимок, на который указывают PyPI, Glama.ai и сообщество MCP. Репозиторий GitHub является зеркалом репозитория GitLab по адресу gitlab.com/pickel-fintech/the13f-mcp; GitLab остается основным и также поддерживает CI релизов. Отчеты об ошибках и PR принимаются с обеих сторон.

Лицензия

MIT — см. LICENSE. Хостируемый API api.the13f.com, к которому обращается этот клиент, является отдельной службой. Требуется бесплатный API-ключ (100 вызовов/день); зарегистрируйтесь на https://the13f.com/developers/.

Поддержка

tom@pickelfintech.com — укажите поле request_id, возвращаемое любым неудачным вызовом инструмента, для максимально быстрой обработки.

Лицензия

MIT. См. LICENSE. Исходный код MCP-сервера лицензирован по MIT; использование самого API the13f регулируется Условиями использования по адресу 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