1. Conduid
  2. Finance
  3. io.github.valuein/mcp-sec-edgar
MCP server · Finance

io.github.valuein/mcp-sec-edgar

SEC EDGAR fundamentals, ratios, valuation, and filings for AI agents. Point-in-time safe.

Unclaimed finance
34Low

Scored 4 months ago · breakdown

About io.github.valuein/mcp-sec-edgar

io.github.valuein/mcp-sec-edgar is an MCP server in the Finance category: sEC EDGAR fundamentals, ratios, valuation, and filings for AI agents. Point-in-time safe. It has been installed 0 times through Conduid.

Install

Clone
git clone https://github.com/valuein/valuein

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

Ask AI about io.github.valuein/mcp-sec-edgar

Powered by Claude · Grounded in docs

I know everything about io.github.valuein/mcp-sec-edgar. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ·README presentNot checked yet.
  • ·License declaredNot checked yet.
  • ·Tests presentNot checked yet.
  • ·Dependencies pinnedNot checked yet.
  • ·No dynamic code executionNot checked yet.
  • ·Scoped permissionsNot checked yet.

README

Valuein

PyPI version PyPI downloads GitHub stars MCP Registry Docs

Valuein — SEC EDGAR fundamentals for analysts, quants, and AI agents

Survivorship-bias-free, point-in-time US fundamentals — streamed as Parquet, queried with DuckDB or natural language.

This repository is the public home and discovery hub for the Valuein data platform. It hosts the documentation, examples, notebooks, and the MCP registry manifest used by AI agents to find us. Source code for the SDK, MCP server, and data pipeline lives in dedicated repositories — this is the front door.

pip install valuein-sdk          # data for code
# or add this URL to any MCP-capable AI client:
# https://mcp.valuein.biz/mcp     # data for agents

What's in here

You want to… Go to
Try the SDK in 30 seconds without a token Quickstart
See every channel we ship through Distribution channels
Check pricing and what each plan unlocks Plans & access
Connect an AI agent (Claude, Cursor, Codex…) MCP for AI agents
Read the data model Data model
Find a quick recipe by role Recipes by role
Run end-to-end Python examples examples/python/
Run interactive notebooks (Colab) examples/notebooks/
Read the methodology / SLA / compliance Documentation
Report a data error or request a feature Support & community
Contribute an example or notebook CONTRIBUTING.md

The data product

Survivorship-bias-free, point-in-time US fundamentals sourced directly from SEC EDGAR.

  • 12M+ filings — 10-K, 10-Q, 8-K, 20-F, and amendments since 1994
  • 105M+ standardized facts across 16,000+ active and delisted US entities
  • 11,966 raw XBRL tags normalized to ~150 canonical standard_concept values (95% coverage)
  • Cloud Parquet on Cloudflare R2 — stream with DuckDB; no database setup, no local downloads
  • PIT-correct — every fact carries filing_date and millisecond-precision accepted_at
  • Semantic core — every 10-K / 10-Q / 20-F's narrative sections (Risk Factors, MD&A, Business, Legal, Controls) chunked and indexed for natural-language search via the MCP server

Why it's different

Property What it means for you
🕒 Point-in-time filing_date <= trade_date removes look-ahead bias. accepted_at gives intraday resolution for same-day signals.
⚖️ Survivorship-bias free Delisted, bankrupt, and acquired companies remain in every snapshot — your backtest sees the universe the market saw.
📊 Standardized concepts Both the raw XBRL tag (fact.concept) and the canonical name (fact.standard_concept) are on every row. No hidden mapping table.
🚀 DuckDB-native Millisecond analytics over remote Parquet via httpfs. Zero database provisioning.
🔁 Append-only restatements A 10-K/A adds a new row — the original stays. Reconstruct the as-reported view of any historical date.
🔐 One token, every channel The same Bearer token authenticates the SDK, MCP server, and bulk-data API.

Distribution channels

The same dataset, delivered four ways so it lands where you already work.

Channel Audience Endpoint / install
Python SDK Quants, engineers, data scientists pip install valuein-sdk · PyPI
MCP server AI agents (Claude, Cursor, Codex, custom) https://mcp.valuein.biz/mcp · server.json
Web dashboard Retail, executives, non-technical users valuein.biz
Bulk data API B2B partners, fintech platforms https://data.valuein.biz · contact us

A single Stripe-issued token unlocks every channel at your tier — no per-channel billing.


Plans & access

Pricing and feature scope are mirrored from valuein.biz/pricing — the website is the source of truth and our checkout flow routes to the correct Stripe product.

Plan Universe History Data freshness Price Get it
Sample S&P 500 (~500 tickers) 5-year window Quarterly snapshots Free · no signup Just pip install valuein-sdk
Free S&P 500 (~500 tickers) 1994 – present Daily Free · register Register
Pro Full universe (16,000+ tickers, active + delisted) 10 years 24h after SEC $49 / mo · $470 / yr Subscribe
Enterprise Full universe 1994 – present 4h priority $200 / mo · $1,920 / yr Subscribe
Custom Negotiated · redistribution license · webhooks Custom Real-time 8-K Talk to us sales@valuein.biz

Rate limits per tier (canonical at https://data.valuein.biz/v1/plans):

Plan Per minute Per hour
Sample (anonymous) 15 150
Free 60 1,000
Pro 100 3,000
Enterprise 300 10,000

Quickstart (30 seconds, no token)

pip install valuein-sdk
from valuein_sdk import ValueinClient

with ValueinClient() as client:
    print(client.me())               # {plan, status, email, createdAt}
    print(client.manifest())         # snapshot id, last_updated, tables
    print(client.tables())           # currently loaded tables

    df = client.run_query("""
        SELECT r.symbol, r.name, r.sector
        FROM   "references" r
        JOIN   index_membership im ON im.cik = r.cik
        WHERE  im.index_name = 'SP500'
          AND  im.removal_date IS NULL
          AND  r.is_active = TRUE
        ORDER  BY r.name
        LIMIT  10
    """)
    print(df)

That's a real query against the live S&P 500 sample. Add a token only when you need full universe or full history:

echo 'VALUEIN_API_KEY="your_token_here"' >> .env

The same code now reads from your tier — no other changes.

Production pattern — context manager, typed errors, pre-built templates

from valuein_sdk import (
    ValueinClient,
    ValueinAuthError,
    ValueinPlanError,
    ValueinRateLimitError,
    ValueinAPIError,
)

with ValueinClient() as client:
    try:
        df = client.run_template(
            "fundamentals_by_ticker",
            ticker="AAPL",
            start_date="2020-01-01",
            end_date="2024-12-31",
            form_types=["10-K", "10-Q"],
            metrics=["TotalRevenue", "NetIncome", "OperatingCashFlow"],
        )
        print(df.head())
    except ValueinAuthError:
        print("Token missing or expired — set VALUEIN_API_KEY.")
    except ValueinPlanError:
        print("This query needs a higher plan — see valuein.biz/pricing.")
    except ValueinRateLimitError as e:
        print(f"Rate limited; retry in {e.retry_after}s.")
    except ValueinAPIError as e:
        print(f"Gateway error (HTTP {e.status_code}).")

The SDK ships 44 named SQL templates for the most common screens, ratios, and PIT backtests. List them:

from valuein_sdk import ValueinClient
with ValueinClient() as c:
    print(c.list_templates())

Reference: docs/QUERY_COOKBOOK.md (DuckDB recipes) · docs/data_catalog.md (canonical concepts) · PyPI README (SDK quickstart).


Recipes by role

Every link below points to a runnable script in examples/python/ (mirror notebook in examples/notebooks/). The Sample tier runs every example — no token, no signup.

You are a… Start with What you'll see
Financial analyst financial_analysis.py Revenue trend, margin walk, peer comparison from one ticker
Quant / researcher pit_backtest.py PIT-correct factor query, restatement impact, common mistakes
Portfolio manager factor_screen.py Quality + Growth + Efficiency composite z-score over the S&P 500
Trader / signals earnings_momentum.py YoY revenue & earnings acceleration ranking
Asset manager survivorship_bias.py Quantify how survivorship bias inflates returns
Valuation modeler dcf_inputs.py Free-cash-flow assembly, balance sheet, Valuein's pre-computed DCF
Data engineer production-ready.py Service pattern for FastAPI / Celery / Airflow
First-time user getting_started.py First query, token check, sector counts
Building an AI agent MCP for AI agents Use natural language — no SDK required

Run any of them:

# Sample tier — works without a token
python examples/python/getting_started.py

# Paid tier
VALUEIN_API_KEY=xxx python examples/python/factor_screen.py

Data model

Full schema in docs/schema.json (machine-readable) and docs/data_catalog.md (canonical concept names).

Table What it is Why it matters
references Start here. Flat join of entity + security. One row per security with cik, is_active, sector, exchange, FIGI. For membership, JOIN index_membership on cik = cik. One scan for cross-company metadata; index membership stays in its own table so historical entry/exit is preserved.
entity Company metadata — CIK, name, sector, SIC, status, fiscal year end The legal entity dimension.
security Ticker history (SCD Type 2 with valid_from / valid_to) Resolve historical tickers, share classes, exchanges.
filing Filing metadata — accession_id, filing_date, report_date, form type, amendment flag The "what was filed when" dimension.
fact Standardized financial facts — both raw concept and canonical standard_concept on every row The numbers. PIT-safe via accepted_at.
ratio Pipeline-computed financial ratios per filing Skip the SQL — margins, returns, leverage, efficiency pre-calculated.
valuation Two-stage DCF + DDM intrinsic values per entity per period Cross-check your model against ours.
taxonomy_guide 2026 US GAAP Taxonomy Definitions for every standard_concept.
index_membership Historical index constituents (SP500, NASDAQ100, RUSSELL3000, WILSHIRE5000) — keyed on cik, with effective_date / removal_date half-open windows Reconstruct any index on any historical date. JOIN references.cik = index_membership.cik for company metadata.
factor_scores Cross-sectional factor scores + percentile ranks (10 factors + composite) computed from latest two 10-Ks Quality / value / momentum screens with one query — no recomputation.
earnings_signals Trailing 4-quarter EPS trend + surprise %, plus YoY revenue growth Earnings-momentum signals without re-deriving them from fact.
filing_text Narrative chunks from 10-K / 10-Q / 20-F TextBlocks (Risk Factors, MD&A, Business, Legal, Controls) Source of the Vectorize index that powers semantic search via MCP.

Date columns — which to use when

Column Table Use for
report_date / period_end filing / fact Aligning to the fiscal calendar
filing_date filing PIT backtest filter — when the SEC received it
accepted_at fact, valuation, filing_text Millisecond-precision PIT for intraday research

For any cross-company backtest, always filter by filing_date <= trade_date. Filtering by report_date introduces look-ahead bias.

Three patterns that pay off in DuckDB

1. Start from references (one join for cross-company filters; membership is in index_membership):

SELECT r.symbol, r.name, r.sector
FROM   "references" r
JOIN   index_membership im ON im.cik = r.cik
WHERE  im.index_name = 'SP500'
  AND  im.removal_date IS NULL          -- current member
  AND  r.is_active     = TRUE
  AND  r.sector ILIKE '%technology%'

2. LATERAL for the latest filing per company:

JOIN LATERAL (
    SELECT accession_id, filing_date FROM filing
    WHERE  entity_id = r.cik AND form_type = '10-K'
    ORDER  BY filing_date DESC LIMIT 1
) f ON TRUE

3. Pivot multiple concepts in one fact scan:

SELECT
    MAX(CASE WHEN standard_concept = 'TotalRevenue'       THEN numeric_value END) AS revenue,
    MAX(CASE WHEN standard_concept = 'StockholdersEquity' THEN numeric_value END) AS equity
FROM   fact
WHERE  standard_concept IN ('TotalRevenue', 'StockholdersEquity')
GROUP  BY accession_id

Quarterly cash flows: use COALESCE(derived_quarterly_value, numeric_value) — Q2/Q3 10-Qs report YTD; this column isolates the single quarter. CAPEX sign varies by filer — always ABS(capex).

The full cookbook — 20 recipes, 8 anti-patterns, end-to-end factor screen — lives in docs/QUERY_COOKBOOK.md.

Canonical concept names

Query fact.standard_concept with canonical names like 'TotalRevenue', 'NetIncome', 'OperatingCashFlow', 'CAPEX', 'StockholdersEquity'not raw XBRL tags ('Revenues', 'NetIncomeLoss', 'Assets'). The full list lives in docs/data_catalog.md and the machine-readable form is in docs/data_catalog.json.


MCP for AI agents

Valuein ships a remote Model Context Protocol server so any MCP-capable agent (Claude Desktop, Cursor, Codex, custom) can answer fundamentals questions without writing code.

  • Endpoint: https://mcp.valuein.biz/mcp (Streamable HTTP, MCP spec 2025-11-25)
  • Auth: Authorization: Bearer <your_api_token> — same token as the SDK and bulk-data API
  • Manifest: server.json — published to registry.modelcontextprotocol.io as io.github.valuein/mcp-sec-edgar
  • Reference: docs/MCP_TOOLS.md — every tool, every parameter, every tier gate

Tools

The server exposes 14 tools, plus 10 analyst SOP prompts (two flagship cross-persona briefs — equity_research_brief and screen_and_shortlist — plus eight specialised chains) and 2 data resources. Tier gating happens at the data layer — Sample / Free tokens see Sample / S&P 500 data; Pro and Enterprise see the full universe.

Discovery & schema

Tool What it does
search_companies Look up tickers, names, CIKs; filter by sector, S&P 500, active status
describe_schema Return columns, types, and descriptions for any table
get_pit_universe The live constituent list (S&P 500 or all) for any historical as_of_date

Fundamentals & ratios

Tool What it does
get_company_fundamentals Income statement, balance sheet, cash flow per ticker per period
get_financial_ratios Margins, returns, leverage, efficiency, FCF yield (per category)
get_valuation_metrics Margins + ROIC + DCF inputs + Valuein's pre-computed valuations
get_capital_allocation_profile CapEx intensity, buyback yield, dividend history

Filings & lineage

Tool What it does
get_sec_filing_links Direct EDGAR URLs for 10-K / 10-Q / 8-K / 20-F
verify_fact_lineage Trace any number back to the exact filing + accession ID it came from

Comparison & analytics

Tool What it does
compare_periods Side-by-side comparison across periods with material-change flags
get_peer_comparables Peer set + comparable metrics by sector
screen_universe Factor-score-driven screen across the universe
get_earnings_signals EPS trends and surprise metrics around earnings releases

Bulk & semantic

Tool What it does
get_compute_ready_stream Issue presigned R2 URLs for direct Parquet streaming (skip the gateway)
search_filing_text Semantic search over Risk Factors / MD&A / Business across every 10-K / 10-Q / 20-F (rolling out — Vectorize backfill in progress)

Configure in Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "valuein": {
      "url": "https://mcp.valuein.biz/mcp",
      "headers": { "Authorization": "Bearer YOUR_VALUEIN_API_KEY" }
    }
  }
}

Same URL + Bearer token works for any MCP client that supports Streamable HTTP remotes — Cursor, Codex, your own LangGraph / CrewAI agent.


Examples in this repository

Every script and notebook works against the SDK published on PyPI. The Sample tier runs without a token; add VALUEIN_API_KEY to use a paid tier.

Python scripts (examples/python/)

Script Level What it shows
getting_started.py Beginner First query, auth check, entity counts by sector
usage.py Reference Every public SDK method demonstrated end-to-end
entity_screening.py Beginner Screen by sector, SIC code, active vs inactive
financial_analysis.py Intermediate Revenue trends, margins, concept normalization, peer comparison
pit_backtest.py Intermediate PIT discipline, restatement impact, filing_date vs report_date
survivorship_bias.py Intermediate Delisted companies, index membership, bias quantification
factor_screen.py Intermediate Composite Quality + Growth + Efficiency z-score ranking
earnings_momentum.py Intermediate YoY revenue & earnings acceleration across the S&P 500
dcf_inputs.py Intermediate FCF history, balance sheet, Valuein's pre-computed DCF
production-ready.py Advanced Service pattern for FastAPI / Celery / Airflow integrations

Jupyter notebooks (examples/notebooks/)

Notebook Open in Colab
Quickstart Open in Colab
Fundamental Analysis Open in Colab
PIT Backtest Open in Colab
Survivorship Bias Open in Colab
Factor Screen Open in Colab
Earnings Momentum Open in Colab
DCF Inputs Open in Colab

Documentation

Everything in docs/ is kept in sync with the production data and the SDK on PyPI.

Document What's in it
docs/METHODOLOGY.md Sourcing, PIT architecture, restatement handling, XBRL normalization, valuation models
docs/QUERY_COOKBOOK.md 20 copy-pasteable DuckDB recipes — LATERAL, pivots, PIT, factor screens
docs/MCP_TOOLS.md Reference for every MCP tool — parameters, tier gates, examples
docs/data_catalog.md Canonical standard_concept names and definitions
docs/DATA_CATALOG.xlsx Same catalog as a workbook — columns, types, sample values
docs/data_catalog.json Machine-readable catalog (used by SDK metadata + docs sites)
docs/schema.json Machine-readable table + column schema
docs/COMPLIANCE_AND_DDQ.md Data provenance, MNPI policy, PIT integrity, security, SLA summary
docs/SLA.md Uptime targets, data freshness, support response times, SLA credits

Support & community

GitHub Issues is the primary support channel. Use the right template — it routes correctly and gets faster triage.

I want to… Open
Report incorrect or suspicious data Data Quality Report
Request a feature, concept, or dataset Feature Request
Report an outage or degraded service Service Outage
Ask a general question Q&A
Report a security issue privately See SECURITY.md
Get general help See SUPPORT.md

For private or contractual matters (DPAs, procurement, DDQs, enterprise SLAs): support@valuein.biz.

Contributions — examples, notebook improvements, documentation fixes, query recipes — are very welcome. See CONTRIBUTING.md for the workflow and CODE_OF_CONDUCT.md for community standards.


License & disclosure

Apache 2.0. See NOTICE for attribution.

This repository is provided for research and educational purposes. It is not investment advice. No warranty of fitness for any particular trading, investment, or regulatory purpose is implied.

README mirrored from the source repository 4 months ago. The original is authoritative.

Questions

About io.github.valuein/mcp-sec-edgar

How do I install io.github.valuein/mcp-sec-edgar?

Run git clone https://github.com/valuein/valuein, then add the server to your MCP client's configuration. Conduid has recorded 0 installs, so the command is known to work with current clients.

Is io.github.valuein/mcp-sec-edgar safe to use with an AI agent?

Its trust score is 34 out of 100 (low). Conduid hasn't run static security checks on this repository yet, so review the source yourself before granting it credentials. It has no ConduID identity yet, so agent calls to it are not receipted.

Is io.github.valuein/mcp-sec-edgar still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.