🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

edgar-mcp

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

edgar-mcp

MCP server for SEC EDGAR financial data with a manifest-backed 29-tool surface

Source
pipPyPI
Version
1.0.0
Weekly downloads
29
-42%
Maintainers
1
Weekly downloads
 

edgar-mcp

SEC EDGAR financial data for AI agents, exposed as an MCP stdio server.

Install

pip install edgar-mcp

Configuration

VariableRequiredPurpose
EDGAR_API_KEYyesAPI key for the hosted EDGAR API.
EDGAR_API_URLnoOverride the API base URL. Defaults to https://www.edgarparser.com.
EDGAR_MCP_OUTPUT_DIRnoDirectory for output="file" tool responses.

Claude Desktop / Claude Code config:

{
  "mcpServers": {
    "edgar-financials": {
      "type": "stdio",
      "command": "edgar-mcp",
      "env": {
        "EDGAR_API_KEY": "YOUR_KEY_HERE"
      }
    }
  }
}

Tool Inventory

This package exposes 29 public MCP tools. The inventory below is generated from the same manifest that drives the hosted API documentation.

ToolSummaryTierCache Behavior
get_filingsReturn filing metadata and SEC accession details for one ticker period.publiccache_only
get_event_filingsDiscover event filings by ticker, CIK, date range, form type, or query.publiccold_allowed
describe_filingShow cached availability for financials, sections, tables, markdown, and extractions for one filing.publiccache_only
get_filing_documentReturn a readable markdown filing document with section filtering and pagination.registeredcold_allowed
get_filing_sectionsExtract selected qualitative filing sections and optional embedded tables.publiccold_allowed
get_filing_cover_factsReturn exact DEI cover-page facts such as shares outstanding with citations.registeredcold_allowed
get_filing_evidencePlan and retrieve citation-ready filing evidence for qualitative SEC questions.paidllm_call
get_operational_kpi_driversExtract non-XBRL operational KPI values and driver growth rates from filing narrative.paidllm_call
get_filing_extractionsReturn cached langextract spans for one filing or run paid extraction on cache miss.paidllm_call
search_extractionsSearch cached langextract spans across filings with structured filters.paidcache_only
get_extraction_seriesReturn periodized counts and optional hits for cached langextract spans.paidcache_only
extract_filing_fileIngest a trusted local markdown filing and run a selected extraction schema.internalllm_call
list_extraction_schemasList document extraction schemas available to the internal document API.internalcache_only
get_filing_tablesReturn filing table metadata or one hydrated structured table.publiccold_allowed
search_filing_tablesSearch cached filing table metadata across a ticker and period range.publiccache_only
compare_filing_tablesCompare matching filing tables across multiple tickers.publiccache_only
search_filing_textSearch cached markdown within one filing and return matching spans.registeredcache_only
get_financialsReturn the full structured XBRL financial fact payload for one filing period.publiccache_only
get_metricReturn one discovered metric or XBRL tag with current, prior, and YoY values.publiccache_only
get_metric_seriesReturn one metric across multiple periods with per-period cache and coverage status.publiccache_only
list_metricsList exact metric candidates available in one filing period.publiccache_only
search_metricsSearch filing metrics by natural-language query and return ranked exact candidates.publiccold_allowed
get_statementReturn a template-backed income statement, balance sheet, or cash flow statement from cached concepts.publiccache_only
get_conceptResolve one registry-backed financial concept from cached filing facts.publiccache_only
compare_conceptCompare one registry-backed concept across a caller-provided ticker set.publiccache_only
concept_trendReturn a cache-only concept time series across a requested period range.publiccache_only
cite_conceptJoin a registry-backed concept value to filing prose and optional extraction evidence.paidcache_only
warm_metric_cacheQueue paid-tier background warming for metric periods before follow-up reads.paidcold_allowed
warm_metric_cache_statusPoll a background cache-warming job returned by warm_metric_cache.paidcache_only

Tool Families

Filing Metadata and Documents

get_filings, get_event_filings, describe_filing, get_filing_document, get_filing_sections, get_filing_cover_facts, get_filing_evidence

Operational KPIs

get_operational_kpi_drivers

LangExtract

get_filing_extractions, search_extractions, get_extraction_series, extract_filing_file, list_extraction_schemas

Filing Tables

get_filing_tables, search_filing_tables, compare_filing_tables

Filing Text

search_filing_text

XBRL and Concepts

get_financials, get_metric, get_metric_series, list_metrics, search_metrics, get_statement, get_concept, compare_concept, concept_trend, cite_concept, warm_metric_cache, warm_metric_cache_status

Runtime Notes

  • This is a thin client for the hosted EDGAR API; it does not parse filings locally.
  • Missing or invalid EDGAR_API_KEY lets the server start, but tool calls return authentication errors.
  • Large payload tools support output="file" and write to EDGAR_MCP_OUTPUT_DIR or a local fallback directory.
  • API rate limits and paid-tool access are enforced by the hosted service.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts