@edgrapi

Query US government and SEC data through the Edgrapi MCP server or REST API: SAM.gov contracts, USAspending, Grants.gov, Congress trades, lobbying and EDGAR filings.

Edgrapi: US Government and SEC Data

Overview

Edgrapi serves public US government data as normalized JSON on one key. It covers federal contract opportunities and awards (SAM.gov), federal spending (USAspending), grant opportunities (Grants.gov), US House STOCK Act trades, federal lobbying filings (LDA.gov) and SEC EDGAR (insider trades, 8-K events, 13F holdings, 13D/G stakes, XBRL fundamentals, full-text search). Every record links back to its official source.

The same data is available through a hosted MCP server with 23 read-only tools and a REST API. Existing finance skills such as @equibles and @dealport-us-company-filings focus on SEC company data; use this skill when the question also involves federal contracts, spending, grants, congressional trades or lobbying, or when one key should cover both.

When to Use

  • Use when the user wants open federal contract opportunities by NAICS code, set-aside, state or keyword.
  • Use when the user asks who won federal awards, how much an agency spent, or which grants are open.
  • Use when the user wants insider trades, 13F fund holdings, 13D/G activist stakes, 8-K events or financial statements for a US public company.
  • Use when the user asks which members of the House traded a stock, or who lobbied on an issue.
  • Use @equibles instead for earnings-call transcripts or daily prices, which Edgrapi does not provide.

Prerequisites

  • The user chose Edgrapi for this task, with network access to api.edgrapi.com.
  • For tool calls and REST requests: an Edgrapi account. A free account gets one-time credits without a card. See current plans and credit charges.
  • MCP discovery (initialize, tools/list) works without credentials. Every tools/call and every REST request needs OAuth 2.1 sign-in or an API key (edgr_...).
  • Each call spends 1 to 5 credits depending on the endpoint (for example 2 for SAM.gov, USAspending, Grants.gov, Congress and lobbying; 5 for insider trades, 13F holdings and 13D/G stakes). Failed calls are free according to the provider. A successful lookup can consume a credit even when it returns no results.

How It Works

1. Connect

Use the configured Edgrapi connection when available. Ask before adding the hosted server or changing client settings. Clients that support remote OAuth can connect with just the URL. The server provides OAuth 2.1 with dynamic client registration.

{
  "mcpServers": {
    "edgrapi": {
      "url": "https://api.edgrapi.com/mcp",
      "headers": { "Authorization": "Bearer ${EDGRAPI_API_KEY}" }
    }
  }
}

Keep the key in an environment variable or the client’s secret store. Use variable expansion only where the client supports it and keep literal keys out of config examples, prompts, and logs.

2. Pick the tool

NeedTools
Federal contractsget_opportunities (open SAM.gov solicitations), get_contract_awards (awarded contracts)
Federal spending and grantsget_awards (USAspending), get_grants (Grants.gov)
Congress and lobbyingget_congress (House STOCK Act trades), get_lobbying (LDA filings)
Insiders and fundsget_insider (Form 4), get_holdings (13F), get_activist (13D/G), get_form144, get_form_d
Company dataresolve_entity, get_company, get_filings, get_events (8-K), get_fundamentals, get_ratios, get_xbrl, get_shares, get_subsidiaries, get_sections
Filing textsearch_filings (EDGAR full-text search), get_filing_document

Resolve a ticker, CIK or CUSIP with resolve_entity first when the user gives an ambiguous company name.

3. Keep calls small, then verify

Start with a small limit, since each call spends credits. Read the returned source links before stating a figure, and say which filing or record a number came from.

Examples

Illustrative requests and the calls an agent would make (not measured outputs):

User request: Find open DoD solicitations for drones and who tends to win similar work.
Calls: get_opportunities(naics="336411", ptype="o") then get_awards(keyword="drone", agency="Department of Defense")
Expected result: a short list of open solicitations with deadlines, plus the top award recipients with amounts and source links.
User request: Which insiders bought NVDA in the last quarter, and which funds added it?
Calls: get_insider(ticker="NVDA") then get_holdings for the funds the user names
Expected result: insider purchases with dates, roles and share counts, and the fund position changes, each linked to its SEC filing.

REST equivalent of the first call:

curl -s "https://api.edgrapi.com/v1/opportunities?naics=336411&limit=5" \
  -H "X-API-Key: $EDGRAPI_API_KEY"

Limitations

  • US federal data only. No state or local procurement, and no non-US filings.
  • Congressional trades cover the House only, report dollar ranges rather than exact amounts, and can lag up to 45 days by law.
  • Data is only as fresh as each agency publishes it; SEC data follows EDGAR filing times.
  • No earnings-call transcripts, intraday prices or investment advice. Do not present results as recommendations.
  • An empty result means no matching records were returned for those filters, not that none exist; widen the filters before concluding.

Safety and side effects

  • The 23 data tools query public records. Successful calls can debit the user's Edgrapi credit balance.
  • Requests and the API key go to api.edgrapi.com. Use a key scoped to this use and revoke it if exposed.
  • Check the current credit cost for the requested operations. Confirm before expanding the query scope or running large or repeated pulls.

Contributed by the service maker at Paper and Beyond.