API vs. MCP

Choosing Between API and MCP Integration

Daloopa offers two programmatic ways to access financial data: the API and MCP (Model Context Protocol) server. Each approach has distinct strengths and ideal use cases.

Use the API When:

Building production data pipelines

  • Automated ETL processes
  • Scheduled data refreshes
  • Batch processing workflows

You need deterministic, repeatable queries

  • Specific endpoints with known parameters
  • Consistent data structures
  • Full control over requests

Performance and cost optimization are critical

  • Direct API calls are faster
  • No LLM token costs
  • Predictable pricing

Best for: Software engineers, data engineers, backend systems, automated workflows


Use MCP Integration When:

Working with LLMs and AI assistants (Claude, ChatGPT)

  • Ad-hoc analysis and exploration
  • Natural language queries
  • Conversational data access

Rapid prototyping and analysis

  • Quick questions without writing code
  • Exploring data interactively
  • Generating insights on the fly

Non-technical users need data access

  • Analysts without coding experience
  • Business users asking financial questions
  • Executive dashboards with AI assistants

Best for: Software engineers, analysts, researchers, exploratory analysis


Comparison Table

FeatureAPIMCP
Query MethodStructured HTTP requestsNatural language
SpeedFaster (direct)Depends on LLM
CostAPI calls onlyAPI + LLM tokens
FlexibilityHigh (programmatic)Very high (conversational)
Learning CurveSteeper (requires coding)Easier (plain English)
Use CaseProduction systemsAnalysis & exploration

Available Tools & Endpoints

MCP tools are built on top of API endpoints. Here's how they map:

MCP ToolAPI EndpointsWhat It Does
discover_companiesGET /api/v2/companiesSearch companies by ticker or name. Returns company_id, ticker, name, latest_quarter
discover_company_seriesGET /api/v2/companies/seriesFind available metrics for a company. Filter by keywords (e.g., "revenue", "EBITDA"). Returns series_id and full_series_name
get_company_fundamentalsGET /api/v2/companies/fundamentalsRetrieve financial data for specific series and periods. Supports quarterly (2024Q1) and annual (2024FY) formats. Returns values with source citations and hyperlinks
search_documentsPOST /api/v2/documents/keyword-searchKeyword search across SEC filings (10-K, 10-Q, 8-K). Search by keywords, company, and periods. Returns document matches with context snippets
discover_company_documentsGET /api/v2/documentsList the filings Daloopa has for a company in given quarters (10-K, 10-Q, 8-K, transcripts, presentations). Returns document_id and filing_type for each result
get_document_contentPOST /api/v2/documents/{document_id}/contentRetrieve the full processed text of a document by
document_id. Large 10-Ks/10-Qs can be pulled by named section (e.g., Risk Factors)
get_stock_pricesGet /api/v2/companies/{company_id}/stock-pricesRetrieve daily OHLCV stock price data for one or more companies across a date or date range. Enables P/E, EV/EBITDA, Price/Book, and price-performance analysis

Additional API Capabilities

The API offers many more endpoints beyond what's available through MCP:

Company & Series Discovery:

  • Check Company Model Status - View update status and latest data timestamps
  • Get Fundamental Series - List the financial series available for a company
  • List Taxonomy Metrics - Find standardized metrics across companies
  • List Taxonomy Sub-Industries - Browse taxonomy sub-industry classifications
  • Retrieve Taxonomy Metric - Get details for a specific standardized metric
  • Get Series Continuation - Handle deprecated/updated series IDs

Fundamental Data:

  • Export Company Data (CSV) - Bulk export of all company data
  • Get Fundamental Updates - Track data corrections and changes

Models & Documents:

  • Download Company Model (Excel) - Get full Excel model
  • Download Industry Model (Excel) - Get industry comparison models
  • Retrieve Document Metadata - Get filing type, character count, and named sections
  • Retrieve Document - Get a signed URL to access a specific document

Company Management:

  • Get Company Industry Model Mappings - View industry classifications
  • Bulk Add Company Subscriptions - Add tracked companies in bulk
  • Create Partnership User - Provision a partnership API user

Usage & Consumption:

  • Get Datapoint Consumption - Datapoint usage over a date range
  • Get Series Consumption - Series-level consumption for a company
  • List Datapoint Access Events - Itemized datapoint access events over a date range

Webhooks:

  • Real-time event notifications for data updates

Can I Use Both?

Yes! Many teams use or test both approaches:

  • MCP for exploration: Analysts explore data and identify insights
  • API for production: Convert proven queries into automated pipelines
  • Hybrid workflows: Use MCP to discover series IDs, then API for bulk retrieval

Getting Started