Skip to main content
Glama

Edgar MCP Service

by brettvtcrowe

🏛️ Edgar MCP Service

Model Context Protocol (MCP) Server for SEC EDGAR Database
Deep financial document analysis and content extraction service

🚀 Quick Deploy to Railway

One-Click Deployment:

  1. Fork this repository to your GitHub account
  2. Connect to Railway: Go to Railway → New Project → Deploy from GitHub repo
  3. Set environment variable: SEC_API_USER_AGENT="Your Company/1.0 (your-email@example.com)"
  4. Get your service URL from Railway dashboard
  5. Done! Your MCP service is live

🎯 What This Service Provides

  • Find ANY public company by name, ticker, or partial match
  • Works with Apple, Netflix, small caps, recent IPOs, etc.
  • No hardcoded company lists - truly universal

📄 Deep Document Analysis

  • Business descriptions from 10-K Item 1
  • Risk factors from 10-K Item 1A
  • Financial statements with structured data
  • Management discussion (MD&A) extraction
  • Full-text search within any SEC filing
  • Date range filtering: "filings between Jan-Mar 2024"
  • Form type filtering: 10-K, 10-Q, 8-K, etc.
  • Content search: "documents mentioning revenue recognition"
  • Direct SEC EDGAR links for all results

📡 API Endpoints

GET /search/company?q=Netflix

Response:

{ "found": true, "cik": "0001065280", "name": "NETFLIX INC", "ticker": "NFLX", "confidence": 1.0 }
POST /search/filings { "company": "Apple", "form_types": ["10-K", "10-Q"], "date_from": "2024-01-01", "content_search": "artificial intelligence", "limit": 10 }

Content Extraction

POST /extract/business-description { "cik": "0000320193", "form_type": "10-K" }

🏗️ Architecture

This MCP service is designed to work with AI query engines:

User Query → AI Engine → Edgar MCP → SEC Database ↓ "Netflix's risk factors" → Company Resolution → Deep Content → Structured Response

Integration Example:

// In your AI application const edgarMCP = 'https://your-service.up.railway.app'; // 1. Resolve company const company = await fetch(`${edgarMCP}/search/company?q=Netflix`); // 2. Get content const riskFactors = await fetch(`${edgarMCP}/extract/risk-factors`, { method: 'POST', body: JSON.stringify({ cik: company.cik }) }); // 3. Use in AI analysis const analysis = await openai.chat.completions.create({ messages: [{ role: 'user', content: `Analyze these risk factors: ${riskFactors}` }] });

🛠️ Manual Deployment

Prerequisites

  • Python 3.11+
  • Railway account
  • SEC compliance: proper User-Agent string

Local Development

git clone <this-repo> cd edgar-mcp-service chmod +x start.sh ./start.sh

Service runs at http://localhost:8001

Deploy to Railway

railway login railway init railway variables set SEC_API_USER_AGENT="Your Company/1.0 (email@example.com)" railway up

📋 Environment Variables

VariableRequiredDescriptionExample
SEC_API_USER_AGENTSEC API compliance identifier"Crowe/EDGAR Query Engine 1.0 (brett.vantil@crowe.com)"
PORTService port (auto-set by Railway)8001

🔒 SEC Compliance

This service is fully compliant with SEC EDGAR API requirements:

  • ✅ Proper User-Agent identification
  • ✅ Rate limiting respected
  • ✅ Official SEC data sources only
  • ✅ No data caching (always fresh)

🧪 Test Your Deployment

# Health check curl https://your-service.up.railway.app/health # Find any company curl "https://your-service.up.railway.app/search/company?q=Tesla" # Get business description curl -X POST "https://your-service.up.railway.app/extract/business-description" \ -H "Content-Type: application/json" \ -d '{"cik": "0001318605", "form_type": "10-K"}'

📞 Support

This MCP service enables powerful financial analysis applications by providing:

  • 🎯 Universal access to any SEC-registered company
  • 📊 Deep content extraction beyond basic metadata
  • 🔍 Advanced search capabilities across all filings
  • 🤖 AI-ready responses for natural language processing

Perfect for building financial analysis tools, compliance monitoring, and investment research platforms.


Powered by EdgarTools 📈

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Enables deep analysis of SEC EDGAR filings through universal company search, document content extraction, and advanced filing search capabilities. Provides AI-ready access to business descriptions, risk factors, financial statements, and full-text search across any public company's SEC documents.

  1. 🚀 Quick Deploy to Railway
    1. One-Click Deployment:
  2. 🎯 What This Service Provides
    1. 🔍 Universal Company Search
    2. 📄 Deep Document Analysis
    3. 🔗 Advanced Filing Search
  3. 📡 API Endpoints
    1. Company Search
    2. Advanced Filing Search
    3. Content Extraction
  4. 🏗️ Architecture
    1. Integration Example:
  5. 🛠️ Manual Deployment
    1. Prerequisites
    2. Local Development
    3. Deploy to Railway
  6. 📋 Environment Variables
    1. 🔒 SEC Compliance
      1. 🧪 Test Your Deployment
        1. 📞 Support

          Related MCP Servers

          • -
            security
            F
            license
            -
            quality
            A server exposing intelligent tools for enhancing RAG applications with entity extraction, query refinement, and relevance checking capabilities.
            Last updated -
            26
            Python
          • -
            security
            F
            license
            -
            quality
            A server that provides enterprise data services including company information, profiles, business details, shareholders, investments, branches, and key personnel through keyword search and specific queries.
            Last updated -
            4
          • -
            security
            A
            license
            -
            quality
            A Server-Sent Events Model Context Protocol server that enables both remote and local connections to retrieve SEC filing data, company information, and financial facts from the SEC EDGAR database.
            Last updated -
            4
            Python
            MIT License
            • Apple
            • Linux
          • -
            security
            A
            license
            -
            quality
            Provides specialized AI-powered comprehensive research and analysis capabilities by integrating with advanced deep research agents, offering unlimited queries with no rate limits and faster performance than comparable services.
            Last updated -
            729
            40
            JavaScript
            MIT License
            • Apple

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/brettvtcrowe/edgar-mcp-service'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server