JC321's picture
Update README.md
d40b4a6 verified
metadata
title: SEC Financial Report MCP Server - API
emoji: πŸ“Š
colorFrom: blue
colorTo: green
sdk: docker
pinned: true
license: mit
app_port: 7860
short_description: MCP Server for SEC EDGAR financial data with remote access

πŸ“Š SEC Financial Report MCP Server

Model Context Protocol Server for SEC EDGAR financial data analysis.

πŸ”Œ Remote Access - Connect from Claude Desktop, Cline, or any MCP client
✨ Natural Language - Query financial data through conversation
πŸ“ˆ Formatted Output - Get beautiful, AI-ready responses

πŸ“Š Features

  • Company Search: Search companies by name, ticker, or CIK
  • Company Info: Industry, SIC code, fiscal year details
  • SEC Filings: 10-K, 10-Q, 20-F reports with dates and links
  • Financial Data: Revenue, Net Income, EPS, Cash Flow
  • Multi-Year Analysis: Comprehensive metrics extraction
  • Smart Formatting: Beautiful, AI-ready output with emoji

πŸ“ˆ Supported Data

  • Report Types: 10-K (Annual), 10-Q (Quarterly), 20-F (Foreign)
  • Standards: US-GAAP, IFRS
  • Metrics: Revenue, Net Income, EPS, Operating Expenses, Cash Flow

πŸš€ Quick Start

1. Add to Your MCP Client

Claude Desktop (%APPDATA%\Claude\claude_desktop_config.json):

{
  "mcpServers": {
    "sec-financial-data": {
      "url": "https://jc321-easyreportsmcpserver.hf.space/sse"
    }
  }
}

2. Restart Claude Desktop

3. Start Using!

"Search for Microsoft and show me their latest financial data" ✨

πŸ› οΈ Available Tools (7)

Tool Description
search_company Search by company name
get_company_info Get detailed company info
get_company_filings List SEC filings (10-K, 10-Q, 20-F)
get_financial_data Get data for specific period
extract_financial_metrics ⭐ Multi-year comprehensive metrics
get_latest_financial_data Most recent data available
advanced_search_company Smart search (name/ticker/CIK)

πŸ’¬ Usage Examples

Quick Lookup:
"Search for Tesla and show me their latest financial data"

Trend Analysis:
"Extract 5 years of financial metrics for Apple and analyze revenue growth"

Company Comparison:
"Compare NVIDIA and AMD revenue for the past 3 years"

Output Format:

πŸ’° Financial Data for 2024Q3:
{
  "period": "2024Q3",
  "revenue": "$65.59B",
  "net_income": "$24.67B",
  "eps": "$3.30"
}

βš™οΈ Technical Stack

Protocol: Model Context Protocol 2024-11-05
Transport: Server-Sent Events (SSE)
Framework: FastAPI with Uvicorn
Platform: Hugging Face Spaces
Data Source: SEC EDGAR API

πŸ“œ Compliance

SEC User-Agent (Required by SEC EDGAR API):
Juntao Peng Financial Report Metrics App (jtyxabc@gmail.com)

Rate Limiting: Follows SEC guidelines (10 requests/second max)

πŸ—οΈ Infrastructure

  • Platform: Hugging Face Spaces (CPU Upgrade, Always-On)
  • Uptime: 99.9% availability
  • Response: <200ms cached, 1-3s fresh data
  • Concurrency: Up to 200 concurrent requests
  • Health Check: Every 30 seconds

πŸ“š Documentation

πŸ”§ Local Development

# Start server
python mcp_server_sse.py

# Run tests
python test_mcp_sse.py