Unofficial SEC EDGAR MCP Server
A Model Context Protocol (MCP) server that provides comprehensive access to the U.S. Securities and Exchange Commission's EDGAR (Electronic Data Gathering, Analysis, and Retrieval) system. This server enables AI assistants and applications to search, retrieve, and analyze public company filings, financial statements, and dimensional XBRL data from the SEC's database.
Key Features
Company Discovery: Find companies by name or ticker with real-time SEC data
Complete Filing Access: Full company submission histories and document details
Advanced XBRL Analysis: Extract dimensional financial facts with geographic/segment breakdowns
Intelligent Fact Search: Find specific financial values with dimensional context
Business Intelligence: Automated fact classification and table generation
Multi-API Integration: Robust fallback mechanisms across SEC endpoints
Real-time Data: Direct access to SEC's live EDGAR database
MCP Compatible: Works seamlessly with Cursor, Claude Desktop, and other MCP clients
European Filings - Sister Project
Looking for European company financial data? Check out our companion server:
EU Filings MCP Server - Access financial filings from 27+ EU countries via ESEF (European Single Electronic Format)
98% feature parity with this SEC server, optimized for European regulatory frameworks.
Usage
Dimensional XBRL Capabilities
Fact Table Generation
Extract precise financial facts with complete dimensional context:
Returns dimensional facts like:
$638.0M = J&J Electrophysiology Non-US Revenue (Q1 2025)
Complete dimensional breakdown: Geography + Business Segment + Subsegment
Full XBRL context:
us-gaap:NonUsMember+jnj:MedTechMember+jnj:ElectrophysiologyMember
Business Intelligence Extraction
Automatically classifies and analyzes financial facts:
Subsegment Revenue: Product-line specific performance
Geographic Revenue: International vs domestic breakdowns
Segment Revenue: Business division analysis
Comparative Analysis: Cross-product and cross-geography insights
Complete API Reference
The server provides a unified sec_edgar tool with 10 powerful methods:
Core Company Operations
1. Search Companies (search_companies)
Find companies by name or ticker using SEC's official database.
2. Get Company CIK (get_company_cik)
Convert ticker symbols to Central Index Keys with validation.
3. Get Company Submissions (get_company_submissions)
Retrieve complete filing history with enhanced metadata.
Financial Data Access
4. Get Company Facts (get_company_facts)
Access all XBRL financial data with structured organization.
5. Get Company Concept (get_company_concept)
Extract specific financial concepts with historical trends.
6. Get Frames Data (get_frames_data)
Analyze aggregated data across companies and periods.
Advanced Dimensional Analysis
7. Get Dimensional Facts (get_dimensional_facts)
Extract facts with complete dimensional context from XBRL instance documents.
8. Search Facts by Value (search_facts_by_value)
Find financial facts around specific target values with filters.
9. Build Fact Table (build_fact_table)
Generate comprehensive dimensional fact tables with business intelligence.
Utility Operations
10. Filter Filings (filter_filings)
Enhanced filtering with date ranges and form types.
🏗️ Enhanced Architecture
Multi-Tier API Access Strategy
Primary: Direct iXBRL document parsing from EDGAR Archives
Secondary: SEC Submissions API for filing discovery and metadata
Tertiary: Company Facts API with dimensional inference
Emergency: Known dimensional structure mapping
SEC API Compliance
Official Endpoints: Uses
data.sec.govAPIs per SEC guidelinesProper User-Agent:
SEC-Research-Tool/1.0 (contact@research.org)Rate Limiting: Respects 10 requests/second SEC limit
Error Recovery: Graceful degradation with meaningful diagnostics
iXBRL Parser Technology
Modern Format Support: Handles Inline XBRL (HTML-embedded) instead of legacy XML
Dimensional Extraction: Parses
<ix:nonFraction>,<ix:fraction>, and context relationshipsBusiness Classification: Automatically categorizes facts by type and dimensional scope
Context Resolution: Maps XBRL contexts to readable dimensional breakdowns
Real-World Use Cases
Investment Analysis
Find all facts around $100B for Apple with dimensional context
Competitive Intelligence
Analyze Tesla's international revenue performance
Regulatory Compliance Monitoring
Monitor JPMorgan's loan loss provisions with risk segmentation
Cross-Company Benchmarking
Compare operating income across all companies for Q3 2024
SEC Filing Reference
Major Form Types
Form | Description | Frequency | Key Data |
10-K | Annual Report | Yearly | Complete financials, business overview |
10-Q | Quarterly Report | Quarterly | Unaudited financials, interim updates |
8-K | Current Report | As needed | Material events, acquisitions |
DEF 14A | Proxy Statement | Annually | Executive compensation, voting matters |
20-F | Foreign Annual | Yearly | Non-US company annual report |
S-1 | Registration | As needed | IPO registration statement |
XBRL Taxonomies
US-GAAP (us-gaap)
Primary financial concepts:
Assets- Total company assetsLiabilities- Total liabilitiesStockholdersEquity- Shareholders' equityRevenueFromContractWithCustomerExcludingAssessedTax- Revenue excluding taxesNetIncomeLoss- Net income or lossOperatingIncomeLoss- Operating income or lossCashAndCashEquivalents- Cash and equivalents
Dimensional Axes
srt:StatementGeographicalAxis- Geographic segmentationus-gaap:StatementBusinessSegmentsAxis- Business segment breakdownus-gaap:SubsegmentsAxis- Product line subsegmentsus-gaap:StatementEquityComponentsAxis- Equity components
Common Members
Geography:
us-gaap:UsMember,us-gaap:NonUsMemberBusiness:
*:TechnologyMember,*:HealthcareMember,*:MedTechMemberProducts:
*:ElectrophysiologyMember,*:OrthopedicsMember
Advanced Query Patterns
Finding Dimensional Revenue Facts
Building Comprehensive Analysis Tables
Cross-Period Comparison
Performance Optimization
Best Practices
Use CIK instead of ticker when possible for faster lookups
Cache Company Facts data for repeated concept queries
Limit fact table rows with
maxRowsoption for large datasetsUse specific accession numbers to avoid submission lookups
Batch similar requests to respect rate limits
Resources
SEC EDGAR: Official SEC Resources
XBRL Resources: XBRL.org
Important: This is an unofficial tool. Please respect SEC's data usage guidelines and terms of service. Always verify critical financial data through official SEC sources.