SEC EDGAR MCP Server
This server provides comprehensive access to SEC EDGAR data via MCP tools, enabling company research, financial analysis, filing retrieval, insider tracking, and more.
Company Profiles & Screening: Retrieve metadata, search by ticker/CIK/name, screen by industry, exchange, state, or SIC code.
Financial Statements & Trends: Extract structured balance sheets, income statements, cash flows, and time series with growth rates.
Filing Retrieval & Search: List, read, and search SEC filings by form type, date, or full-text content; access specific sections like risk factors or MD&A.
Ownership & Insider Trading: View Form 4 insider trades, institutional 13F portfolios, and quarter-over-quarter changes.
Executive Compensation & Governance: Extract CEO pay, pay-vs-performance, and governance details from proxy statements.
Notes & Disclosures: Drill into financial statement notes for debt, revenue recognition, leases, etc.
Comparative Analysis: Compare companies side-by-side on key metrics or analyze an entire industry.
Fund, ETF & BDC Analysis: Access mutual fund/ETF holdings, money market yields, BDC investments.
Live Filing Monitor: Track latest SEC filings in near real-time, filterable by form type.
Health Check: Verify server connectivity and SEC compliance.
Pre-built Prompts: Ready-made prompts for competitor comparison, investment risk audit, and earnings quality analysis.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SEC EDGAR MCP Server get financial statements for AAPL"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
SEC EDGAR MCP Server
A Model Context Protocol (MCP) server that exposes endpoints to retrieve SEC company profiles, historic filing listings, and structured XBRL financial statements directly into AI environments. Built with Python, FastMCP, and edgartools.
βοΈ Configuration & Setup
Clone the Repository:
git clone https://github.com/MakAcp/sec-insight-mcp.git cd sec-insight-mcpCreate and Activate Virtual Environment:
Windows:
python -m venv .venv .\.venv\Scripts\activatemacOS/Linux:
python3 -m venv .venv source .venv/bin/activate
Install Dependencies: Install the project in editable mode so dependencies listed in
pyproject.tomlare correctly resolved:pip install -e .Configure Environment: Create a
.envfile in the root directory (refer to.env.example):SEC_EDGAR_USER_AGENT="YourName (your.email@example.com)"Note: SEC compliance requires a valid name and email address in the User-Agent header. Program requests will be blocked if this is not provided.
Related MCP server: io.github.aion-org/edgar-answers-mcp
π οΈ Run & Test
Run the MCP Server (Stdio Mode):
Windows:
.\.venv\Scripts\python server.pymacOS/Linux:
python server.py
Run the Automated Test Suite:
Windows:
.\.venv\Scripts\python tests/run_tests.pymacOS/Linux:
python tests/run_tests.py
π MCP Tools Legend
Below are the tool endpoints exposed by the server for integration with Cursor, Claude Desktop, or other MCP clients:
1. health_check
Perform a connection and compliance check on the server.
Parameters: None
Returns:
str(Confirmation message containing the active SEC User-Agent).
2. get_company_profile
Retrieve administrative and registration metadata for a target company.
Parameters:
ticker_or_cik(required,str): The company's ticker symbol (e.g.AAPL,SOFI) or 10-digit CIK (e.g.0000320193).
Returns:
str(Markdown profile table containing Official Name, CIK, Tickers, Industry SIC, shares outstanding, filer category, and addresses).
3. list_filings
Search and list recent filings submitted by a company. Supports row-based pagination (capped at max 20 pages / 2,000 filings to prevent infinite iteration loops).
Parameters:
ticker_or_cik(required,str): The ticker symbol or CIK.form(optional,str): Filter by form type (e.g.10-K,10-Q,8-K,4). Defaults to no filter.limit(optional,int): Max number of filings per page to return (default:10, max:100).page(optional,int): Page number to retrieve (default:1, max safety cap:20).year(optional,int): Filter by filing calendar year.
Returns:
str(Markdown table listing Accession Numbers, Dates, Forms, Period of Report, formatted File Sizes, and XBRL structures with pagination metadata).
4. get_financial_statements
Extract the Consolidated Balance Sheets, Income Statements (Operations), and Cash Flow Statements from a company's XBRL report.
Parameters:
ticker_or_cik(optional,str): The ticker or CIK. If provided alone, extracts statements from the latest report.accession_number(optional,str): Specific 20-character accession number (e.g.,0000320193-25-000079). If provided, extracts statements from that specific filing.
Returns:
str(Concatenated Markdown sheets detailing account lines, values, and comparative periods).
5. get_filing_section
Extract a specific text section (e.g. Item 1A Risk Factors, Item 7 MD&A, Item 1 Business Overview) from a target filing, supporting character chunk-based pagination (capped at max 10 pages / 120,000 characters to prevent infinite iteration loops).
Parameters:
ticker_or_cik(optional,str): The ticker or CIK. If provided alone, extracts section from the latest 10-K or 10-Q filing.accession_number(optional,str): Specific 20-character accession number.section_name(optional,str): The name/ID of the section to retrieve (e.g.,Item 1A,Item 7,Item 1). Defaults toItem 1A.page(optional,int): Page number of the text chunk to retrieve (default:1, max safety cap:10).page_size(optional,int): Number of characters per page (default:12000, min:1000, max:30000).
Returns:
str(Markdown-formatted text section chunk, with pagination info banner).
π MCP Prompts Legend
Below are the custom prompt templates registered on the server for user invocation:
1. compare_competitors
Renders a structured plan to perform a side-by-side comparative analysis of two competing companies.
Parameters:
ticker_a(required,str): The first company's ticker symbol.ticker_b(required,str): The second company's ticker symbol.
Flow: Instructs the client model to retrieve profiles, Business Overviews (Item 1), and financial statements for both companies, compiling a comparative markdown table covering segment overlay, revenue, strategic advantages, and leverage.
2. audit_investment_risks
Directs the client model to act as a Senior Risk Analyst and perform a comprehensive risk and financial health audit on a target company.
Parameters:
ticker(required,str): The company's ticker symbol.
Flow: Instructs the model to retrieve the company's profile, Item 1A Risk Factors, and financial statements to output an Executive Summary risk assessment, top 3 operational hazards, financial health check, and management-to-balance-sheet red flags evaluation.
3. analyze_earnings_quality_ttm
Directs the client model to act as a Forensic Accountant and audit the quality of earnings of a company over the Trailing Twelve Months (TTM).
Parameters:
ticker(required,str): The company's ticker symbol.
Flow: Instructs the model to retrieve the company's quarterly financial statements, extract Net Income and Operating Cash Flow (OCF) for the last 4 available quarters, calculate the TTM totals and the TTM Quality of Earnings Ratio (
TTM OCF / TTM Net Income), and analyze working capital drivers/non-cash items causing gaps.
π Client Integration
1. Claude Desktop
Add the following configuration to your %APPDATA%\Claude\claude_desktop_config.json (Windows) or ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": {
"sec-edgar": {
"command": "/path/to/your/project/.venv/bin/python",
"args": [
"/path/to/your/project/server.py"
],
"env": {
"SEC_EDGAR_USER_AGENT": "YourName (your.email@example.com)"
}
}
}
}(On Windows, use backslashes for paths and point to Scripts\python.exe instead of bin/python)
2. Cursor
To configure the server in Cursor Settings:
Go to Settings -> Features -> MCP.
Click + Add New MCP Server.
Fill in the details:
Name:
sec-edgarType:
commandCommand:
/path/to/your/project/.venv/bin/python /path/to/your/project/server.py(or local Windows equivalent path)
Click Save.
3. Codex
Add the following configuration to your global Codex configuration file (located at %USERPROFILE%\.codex\config.toml on Windows) or to the local project-specific .codex/config.toml file:
[mcp_servers.sec-edgar]
command = "/path/to/your/project/.venv/bin/python"
args = ["/path/to/your/project/server.py"]
env = { SEC_EDGAR_USER_AGENT = "YourName (your.email@example.com)" }Available Tools
13 toolsedgar_companyA
Use this as the starting point for any company-level question. Returns profile, financials, recent filings, and ownership data in one call. Control what's included with the 'include' parameter.
Examples:
Company overview: identifier="AAPL"
Financials only: identifier="MSFT", include=["financials"], periods=8
Full analysis: identifier="AAPL", include=["profile", "financials", "filings", "ownership"]
Inputs: identifier (required), annual, period, include, +1 more.
edgar_compareA
Use this to compare companies side-by-side on financial metrics, or analyze an industry sector with automatic peer selection.
Examples:
Compare companies: identifiers=["AAPL", "MSFT", "GOOGL"]
Industry analysis: industry="software", limit=5
Bank comparison: identifiers=["JPM", "BAC", "WFC"], metrics=["revenue", "net_income", "assets"]
Inputs: limit, annual, metrics, periods, +2 more.
edgar_filingA
Use this to examine any SEC filing. Returns structured context: what the filing is, key data, and available next steps. If the filing has a typed data object (10-K, 10-Q, 8-K, Form 4, 13F, DEF 14A, etc.), returns extracted financials, sections, ownership, transactions, etc.
Two ways to specify the filing:
By company + form type: identifier="AAPL", form="10-K" (gets the latest)
By accession number or URL: input="0000320193-23-000077"
Examples:
Apple's latest 10-K: identifier="AAPL", form="10-K"
Latest 8-K: identifier="TSLA", form="8-K"
By accession: input="0000320193-23-000077"
From URL: input="https://www.sec.gov/Archives/edgar/data/320193/000032019323000077/..."
Minimal overview: identifier="MSFT", form="10-Q", detail="minimal"
Inputs: form, input, detail, identifier.
edgar_fundA
Use this for mutual fund, ETF, BDC, and money market fund analysis. Supports fund lookup, portfolio holdings, money market yields, and BDC investments.
Actions: lookup (find fund by ticker/CIK), search (by name), portfolio (NPORT holdings), money_market (yields/NAV), bdc_search, bdc_portfolio.
Examples:
Fund lookup: action="lookup", identifier="VFINX"
Fund search: action="search", query="Vanguard 500"
Fund portfolio: action="portfolio", identifier="VFINX"
Money market: action="money_market", identifier="VMFXX"
BDC search: action="bdc_search", query="Ares"
BDC portfolio: action="bdc_portfolio", identifier="ARCC"
Inputs: action (required), limit, query, identifier.
edgar_monitorA
Use this to see what was just filed with the SEC. Returns the latest filings from today's live feed, updated every few minutes. Filter by form type to track specific events.
Examples:
All latest: (no parameters)
Today's 8-Ks: form="8-K"
Insider trades: form="4"
Latest 10-Ks: form="10-K"
More results: limit=50
Inputs: form, limit.
edgar_notesA
Drill into the notes and disclosures behind financial statement numbers. Use this when you need to explain WHY a number is what it is β debt terms, revenue recognition policies, lease schedules, contingencies, etc.
Returns the note's narrative text, which statement line items it explains, and structured table data.
Examples:
What does Apple's debt note say? topic="debt", identifier="AAPL"
Revenue recognition policy: topic="revenue", identifier="MSFT"
All notes overview: identifier="TSLA" (no topic = table of contents)
Inputs: identifier (required), form, topic, detail.
edgar_ownershipA
Use this for insider trading activity (Form 4) or institutional fund portfolios (13F). For companies, use analysis_type="insiders". For funds/institutions, use analysis_type="fund_portfolio" with the fund's CIK.
Examples:
Insider trades: identifier="AAPL", analysis_type="insiders"
Berkshire portfolio: identifier="1067983", analysis_type="fund_portfolio"
Portfolio changes: identifier="1067983", analysis_type="portfolio_diff"
Inputs: identifier (required), analysis_type (required), days, limit.
edgar_proxyA
Use this for CEO compensation, executive pay, and corporate governance questions. Extracts compensation tables, pay-vs-performance metrics, and governance data from DEF 14A proxy statements.
Examples:
CEO pay: identifier="AAPL"
Compare pay: identifier="MSFT"
Prior year: identifier="AAPL", filing_index=1
Inputs: identifier (required), filing_index.
edgar_readA
Use this to read the text content of specific sections from a filing. Extracts narrative content like risk factors, MD&A, business descriptions, financial tables, and event items.
Use edgar_filing first to identify a filing, then edgar_read to extract its content.
Available sections by form type:
10-K/10-Q: business, risk_factors, mda, financials, controls, legal
20-F: business, risk_factors, mda, financials, directors, shareholders, controls
8-K: items, press_release, earnings
DEF 14A: compensation, pay_performance, governance
SC 13D/13G: ownership, purpose
13F-HR: holdings, summary
Examples:
Read risk factors: identifier="AAPL", form="10-K", sections=["risk_factors"]
Read 8-K event: identifier="AAPL", form="8-K", sections=["items"]
Read CEO pay: identifier="AAPL", form="DEF 14A", sections=["compensation"]
Inputs: form, sections, identifier, accession_number.
edgar_screenA
Use this to discover or screen companies by industry, exchange, or state. Returns matching companies from SEC reference data β instant results, no API calls. Combine filters to narrow results.
Examples:
By industry: industry="software"
By SIC code: sic=2834 (pharmaceutical)
By exchange: exchange="NYSE"
By state: state="DE" (Delaware)
Combined: industry="semiconductor", exchange="Nasdaq", limit=20
Inputs: sic, limit, state, exchange, +1 more.
edgar_searchA
Use this to find companies by name or list filings by form type and company. This searches metadata (names, form types, dates) β not filing text content. For full-text content search, use edgar_text_search instead.
Examples:
Find companies: query="software", search_type="companies"
Company's 8-Ks: identifier="AAPL", form="8-K", search_type="filings"
Recent 10-Ks: form="10-K", search_type="filings"
Inputs: form, limit, query, identifier, +1 more.
edgar_text_searchA
Use this to find filings that mention specific topics, products, risks, or events. Searches the actual text content of all SEC filings via EDGAR's full-text search index (EFTS). Different from edgar_search which only searches metadata.
Examples:
Topic search: query="artificial intelligence"
8-K events: query="cybersecurity incident", forms=["8-K"]
Date range: query="supply chain disruption", start_date="2024-01-01"
Company-specific: query="tariff impact", forms=["10-K"], identifier="AAPL"
Inputs: query (required), forms, limit, end_date, +2 more.
edgar_trendsA
Use this for financial trend analysis over time. Returns XBRL-sourced time series with growth rates for revenue, income, EPS, and other metrics across multiple periods.
Examples:
Revenue trend: identifier="AAPL", concepts=["revenue"]
Multi-metric: identifier="MSFT", concepts=["revenue", "net_income", "eps"], periods=10
Quarterly: identifier="TSLA", period="quarterly", periods=8
Inputs: identifier (required), period, periods, concepts, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 13 tools
Each tool targets a distinct aspect of SEC data: monitoring, company profiles, metadata search, full-text search, filing retrieval, section reading, comparison, ownership, trends, company screening, fund analysis, proxy statements, and financial notes. The descriptions clearly differentiate overlapping tools like edgar_search vs. edgar_text_search.
All tools follow the consistent pattern 'edgar_<word>' with a mix of nouns and verbs. The naming is predictable and intuitive (e.g., edgar_filing, edgar_read, edgar_compare).
With 13 tools, the set is well-scoped for an SEC filings server. Each tool covers a specific task without overlap, and the count is appropriate for the domain's complexity.
The tool set comprehensively covers SEC-related tasks: monitoring, searching, retrieving, reading, comparing, analyzing ownership, trends, screening, fund analysis, proxy, and financial notes. There are no obvious gaps for the intended use case.
Maintenance
Related MCP Connectors
Read, search, and compare SEC EDGAR filings, pull tables, and run AI analysis from any MCP client.
SEC & financial-data MCP: filings, financials, ownership, factors, fund letters, prompts.
Provide AI assistants with real-time access to official SEC EDGAR filings and financial data. Enabβ¦
SEC MCP β SEC EDGAR public APIs (free, no auth)
Related MCP Servers
- AlicenseCqualityBmaintenanceMCP server for accessing SEC EDGAR filings. Connects AI assistants to company filings, financial statements, and insider trading data with exact numeric precision.211,029 PyPI388AGPL 3.0
- FlicenseNot gradedqualityDmaintenanceProvides normalized SEC EDGAR data (financials, filings, insider trades) to AI agents via MCP.-
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to query financial datasets, including institutional holders, insider transactions, investor portfolios, and SEC filings, via MCP tools.59 npmMIT
- AlicenseNot gradedqualityBmaintenanceConnects filing search and financial research tools to MCP-compatible assistants, letting them look up companies, query annual, quarterly and trailing-twelve-month financials, and ask questions answered with citations traceable to original SEC filings. It also supports company comparisons, valuation assumptions, and language selection for the returned research.MIT