Skip to main content
Glama
the13f-mcp

the13f-mcp

the13f-mcp

Servidor del Protocolo de Contexto de Modelo (MCP) para the13f. Lleva la inteligencia institucional 13F a Claude Desktop, Cursor, VS Code + Continue y cualquier host compatible con MCP; no requiere código HTTP por tu parte.

Limitaciones importantes

Solo datos de investigación. Obtenidos de los formularios 13F presentados públicamente ante la SEC, los cuales tienen un retraso de hasta 45 días tras el cierre del trimestre. El posicionamiento institucional pasado no predice el rendimiento futuro. Nada de lo aquí expuesto constituye asesoramiento de inversión. La respuesta de cada herramienta incluye un campo disclaimer; el LLM anfitrión debe mostrarlo junto con cualquier análisis que produzca.

Related MCP server: congress-whales

Instalación

uvx the13f-mcp

O pip install the13f-mcp si prefieres gestionar los entornos de Python tú mismo. Se requiere Python 3.11+.

Obtén una clave API gratuita

Gratis, sin pagos, sin tarjeta de crédito:

  1. Visita https://the13f.com/developers/

  2. Introduce tu correo electrónico y resuelve el desafío de Cloudflare Turnstile

  3. Copia tu clave pf13f_ — se muestra una sola vez

  4. Pégala en la configuración de tu host MCP como THE13F_API_KEY (ver más abajo)

  5. Reinicia el host

Nivel gratuito: 100 llamadas de lectura por día; la cuota se reinicia a medianoche UTC. Las herramientas de señales e informes llegarán en versiones menores posteriores cuando se lancen los niveles de pago.

Configura tu host MCP

Claude Desktop

Edita ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) o %APPDATA%/Claude/claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "the13f": {
      "command": "uvx",
      "args": ["the13f-mcp"],
      "env": {
        "THE13F_API_KEY": "pf13f_..."
      }
    }
  }
}

Reinicia Claude Desktop. Las herramientas de The13f deberían aparecer en la lista de herramientas MCP.

Cursor

Settings → MCP → Add Server. Pega el mismo bloque JSON en el campo "Custom".

VS Code con Continue

Settings → experimental.modelContextProtocolServers → añade un transporte stdio ejecutando uvx the13f-mcp con THE13F_API_KEY en el entorno. La página de revelación de clave en https://the13f.com/developers/signup-success muestra un fragmento listo para copiar y pegar con la clave ya incluida.

Herramientas disponibles — v0.1.0 (Nivel de lectura, gratuito)

Herramienta

Qué hace

list_quarters

Todos los trimestres con datos de participaciones + el último trimestre

search_managers

Autocompletar declarantes 13F por nombre

get_manager_holdings

Posiciones completas para un CIK + trimestre

get_manager_holdings_bulk

Hasta 25 pares (cik, quarter) en una sola llamada

list_all_managers

Universo de más de 8.600 declarantes con estadísticas resumidas por gestor

find_similar_managers

Compara una cartera con el universo

get_consensus_portfolio

Valores con mayor tenencia por trimestre

get_market_regime

Instantánea del régimen institucional (compuesto IIOI, estado, transición)

get_sector_flows

Flujos de capital por sector y postura de riesgo

Herramientas planificadas — versiones posteriores

Versión

Herramientas

Requiere

v0.2.0

get_security_signals, get_security_signals_bulk, get_portfolio_signals

Suscripción de nivel estándar

v0.3.0

generate_manager_report, generate_security_report, generate_sector_report, check_report_status, wait_and_download_report

Nivel estándar + tarjeta guardada; confirmación en dos pasos

Las herramientas de lectura del nivel gratuito son suficientes para explorar los datos y crear prompts basados en ellos. Las herramientas de señales e informes esperan deliberadamente a la implementación de facturación del nivel de pago.

Ejemplos de prompts

"Obtén las 20 principales posiciones de Berkshire Hathaway al cuarto trimestre de 2025 y resume qué creció más trimestre a trimestre."

"Poseo AAPL, MSFT y NVDA con igual ponderación. Encuentra los 5 gestores institucionales cuyas carteras se parecen más a la mía."

"¿Qué sector redujeron más agresivamente los declarantes 13F el último trimestre? Muéstrame los tres principales gestores que lideran la reducción."

El LLM del host MCP elige la herramienta correcta, completa los argumentos, muestra el disclaimer y devuelve el resultado como JSON estructurado.

Variables de entorno

Var

Predeterminado

Qué controla

THE13F_API_KEY

(ninguno)

Tu clave pf13f_. Sin ella, las herramientas devuelven una respuesta estructurada de "se requiere registro gratuito" con un enlace a la página de registro.

THE13F_API_BASE_URL

https://api.the13f.com

Sustitución para desarrollo local contra una copia en ejecución de gui_server de the13f.

THE13F_MCP_TIMEOUT

30

Tiempo de espera HTTP por solicitud en segundos. Mínimo 5.

Fuente

Fuente pública: https://github.com/pickelfintech/the13f-mcp. Esta es la instantánea a la que apuntan PyPI, Glama.ai y la lista de la comunidad MCP. El repositorio de GitHub es un espejo de inserción del de GitLab en gitlab.com/pickel-fintech/the13f-mcp; GitLab sigue siendo el principal y también gestiona la CI de lanzamiento. Se aceptan informes de errores y PRs en ambos lados.

Licencia

MIT — ver LICENSE. La API alojada api.the13f.com que llama este cliente es un servicio independiente. Se requiere una clave API gratuita (100 llamadas/día); regístrate en https://the13f.com/developers/.

Soporte

tom@pickelfintech.com — cita el campo request_id devuelto por cualquier llamada de herramienta fallida para una clasificación más rápida.

Licencia

MIT. Ver LICENSE. El código fuente del servidor MCP tiene licencia MIT; el uso de la propia API de the13f se rige por los Términos de Servicio en 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