# stagproject/sec-filings-mcp [Health: Active]

**Category:** 🎮 Gaming  
**Repository:** https://github.com/stagproject/sec-filings-mcp  
**GitHub Stars:** 2  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/stagproject-sec-filings-mcp

## Description
SEC EDGAR MCP for agents: search 10-K/10-Q, free sample preview, full filing JSON via x402 USDC on Polygon. xpay: sec-edgar-filings. Trial without xpay key: docs. Registry: io.github.stagproject/sec-filings-mcp.

## Tools
Capabilities this server exposes over MCP:

- **search_filings** — 
PRIMARY discovery tool — lightweight catalog over 10k+ SEC filings (fi_listings_portfolio).
[COST: low xpay per-call fee]
Does NOT return alpha_signals, causality_events, or financial_metrics (use get_filing_sample / purchase_filing).
Always returns agent_readiness_score (higher = better structured data) and edgar_url.

Required: at least one of ticker, form_type, company_name, fiscal_period, cik (avoids full-table scans).

Agent workflow after this call:
1. Shortlist by agent_readiness_score and optional agent_one_liner
2. get_filing_sample(document_id) — free preview
3. purchase_filing(document_id) — paid full JSON (x402)

[EXAMPLE ARGUMENTS - MINIMAL]:
{"ticker": "AAPL", "limit": 5}

[EXAMPLE ARGUMENTS - MAXIMAL]:
{
  "ticker": "ADM",
  "form_type": "10-Q",
  "company_name": "Archer",
  "fiscal_period": "2026Q1",
  "min_agent_readiness_score": 70,
  "limit": 20,
  "offset": 0,
  "include_one_liner": true
}

[EXAMPLE ARGUMENTS - PAGINATION (page 2)]:
{"ticker": "MSFT", "form_type": "10-K", "limit": 10, "offset": 10}

- **get_filing_sample** — 
Free preview of one SEC filing (agent-friendly compact row from fi_listings_portfolio_compact).
[COST: $0]
Includes agent_summary and financial_metrics (CompanyFacts-derived) but NOT full
alpha_signals / causality_events — those ship only via purchase_filing after x402 payment.
Compare with purchase_filing: sample = evaluate quality; purchase = full evidence-backed JSON.

[EXAMPLE ARGUMENTS - MINIMAL]:
{}

[EXAMPLE ARGUMENTS - MAXIMAL]:
{"document_id": "000000708426000023"}

- **purchase_filing** — 
Purchase and deliver one full SEC filing row from fi_listings_portfolio (MPP v1.0 x402).
[COST: xpay per-call + on-chain USDC data price (see FINANCE_FILING_PRICE_USD)]
Full JSON includes alpha_signals with evidence_verified causality_events and financial_metrics
from SEC CompanyFacts. Do NOT return agent_bundle or internal pipeline fields.

[AGENTIC WORKFLOW — mandatory 2-step 402 flow]:
STEP 1: Call with document_id and network only; leave tx_hash EMPTY.
STEP 2: Broadcast the exact transaction_payload on-chain (polygon USDC default).
STEP 3: Call again with the same document_id, network, and confirmed tx_hash (66 chars).

[EXAMPLE ARGUMENTS - MINIMAL (Step 1 — payment info)]:
{"document_id": "000000708426000023", "network": "polygon"}

[EXAMPLE ARGUMENTS - MAXIMAL (Step 3 — claim data)]:
{
  "document_id": "000000708426000023",
  "network": "polygon",
  "tx_hash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
}


## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "sec-filings-mcp": {
    "url": "https://sec-filings-mcp-1065601264332.us-central1.run.app/mcp"
  }
}
```

## Documentation

## What stagproject/sec-filings-mcp MCP server does

The stagproject/sec-filings-mcp MCP server gives MCP-compatible agents access to structured SEC EDGAR filing data. Its supported workflow is to search for filings, inspect a free sample, and purchase the complete filing JSON when the sample is sufficient to identify the needed document.

The server focuses on 10-K and 10-Q filings according to the project description. Filing data is read from Supabase views named `fi_listings_portfolio` and `fi_listings_portfolio_compact`. Those views are populated by the separate finance-factory pipeline, so this repository provides the MCP-facing service rather than documenting the upstream data-generation process in detail.

## How it works

The stagproject/sec-filings-mcp MCP server exposes three MCP tools: `search_filings`, `get_filing_sample`, and `purchase_filing`. Production access uses MCP Streamable HTTP. The documented xpay endpoint adds billing and catalog access, while the Cloud Run upstream endpoint provides the server directly.

`search_filings` finds matching filings, and `get_filing_sample` returns a preview without requiring an xpay key when used through the documented Cloud Run trial or Glama sandbox. `purchase_filing` is the paid retrieval path.

An A2A Agent Card is available from the Cloud Run deployment for discovery. Native A2A JSON-RPC task handling is not currently implemented; agents invoke the service through MCP Streamable HTTP instead.

## Setup and configuration

For local development, clone the repository, copy `.env.example` to `.env`, configure the Supabase and x402 settings, install dependencies with `uv sync`, and run `uv run python mcp_server_finance.py --sse`. The local MCP endpoint uses port 8081 by default in the documented example, with `PORT` configurable through the environment.

Before running the service, the project instructs operators to execute `sql/fi_processed_transactions.sql` once in the Supabase SQL Editor. The local process serves the MCP endpoint at `/mcp`. The repository also documents deployment to Google Cloud Run, including an unauthenticated Cloud Run configuration and environment variables supplied separately from the repository.

For hosted use, the xpay URL requires an xpay key in its query string. The Cloud Run trial endpoint supports `search_filings` and `get_filing_sample` without that key, while the Glama listing provides a browser-based sandbox.

## Tools and capabilities

- Search structured SEC filing records with `search_filings`.
- Retrieve a free filing preview with `get_filing_sample`.
- Request complete filing JSON through `purchase_filing`.
- Discover the hosted service through its published A2A Agent Card.
- Invoke the production service using MCP Streamable HTTP.

## Limitations and notes

Full filing retrieval is tied to x402 payment using Polygon USDC, so it is distinct from the no-key sample workflow. The xpay proxy requires an xpay key even when a tool is configured with a zero-dollar price, and the project notes that this is not the same as having no signup requirement.

The documented A2A interface currently supports discovery through an Agent Card, not native A2A JSON-RPC task execution. Operators deploying locally or to Cloud Run must provide the required Supabase and x402 configuration themselves, and should not commit the environment file.

_Full upstream README: https://allmcps.com/mcp/stagproject-sec-filings-mcp/readme_

