DataDawn MCP Server

DataDawn MCP Server

Enables AI agents to query the IRS 990 nonprofit database and OpenRegs federal regulations database via SQL, providing access to nonprofit filings, grants, lobbying, and congressional data.

Category
访问服务器

README

DataDawn MCP Server

An MCP (Model Context Protocol) server that gives AI agents direct access to two large public-interest databases:

  • 990 Database (data.datadawn.org) — IRS 990 nonprofit filings, foundation grants, DAF disbursements, officers, and the IRS Business Master File for ~2M tax-exempt organizations.
  • OpenRegs Database (regs.datadawn.org) — Federal Register documents, regulations.gov dockets/documents/comments, congressional legislation, floor speeches, stock trades, lobbying filings, campaign finance, hearings, nominations, and more.

The server proxies queries to the Datasette JSON API — no API keys or database files needed.

Install

pip install mcp httpx

Or with uv:

uv pip install mcp httpx

Tools

990 Database (data.datadawn.org)

Tool Description
search_nonprofit(query, state?) Search the IRS Business Master File by org name. Starting point for finding EINs.
lookup_ein(ein) Look up an org by EIN. Returns BMF data + recent 990 filings with financials.
search_grants(recipient, min_amount?) Search foundation grants (~12.5M) by recipient name.
search_daf_grants(recipient) Search Donor-Advised Fund disbursements by recipient name.
org_officers(ein) Get officers/directors/key employees for an org (most recent filing).
org_grants_made(ein, limit?) Get grants made by a foundation (by funder EIN).
run_990_sql(sql) Run arbitrary read-only SQL against the 990 database.

OpenRegs Database (regs.datadawn.org)

Tool Description
search_federal_register(query, type?, year?) Search ~1M Federal Register documents (1994-present).
search_legislation(query, congress?) Search congressional bills (~168K, Congresses 93-119).
lookup_member(name) Find a member of Congress by name. Returns bioguide_id for cross-referencing.
member_trades(bioguide_id) Get stock trades disclosed by a member of Congress.
search_lobbying(query, year?) Search ~1.9M lobbying filings by client or registrant.
search_comments(query, agency?) Search ~3.9M public comments on federal regulations.
run_openregs_sql(sql) Run arbitrary read-only SQL against the OpenRegs database.

Add to Claude Code

Option 1: CLI command (recommended)

claude mcp add --transport stdio --scope user datadawn -- python /path/to/datadawn-mcp/server.py

This makes the server available in all your Claude Code sessions.

Option 2: Project-scoped

claude mcp add --transport stdio datadawn -- python /path/to/datadawn-mcp/server.py

Option 3: Manual JSON config

Add to ~/.claude.json under the mcpServers key:

{
  "mcpServers": {
    "datadawn": {
      "type": "stdio",
      "command": "python",
      "args": ["/path/to/datadawn-mcp/server.py"]
    }
  }
}

Verify

After adding, restart Claude Code (or start a new session) and run:

/mcp

You should see "datadawn" listed with 14 tools available.

Test

Quick test with MCP CLI

cd /path/to/datadawn-mcp
mcp dev server.py

This opens the MCP Inspector in your browser where you can call tools interactively.

Test from Python

import asyncio
import httpx

async def test():
    # Direct Datasette query (same thing the MCP server does internally)
    url = "https://data.datadawn.org/990data_public.json"
    params = {
        "sql": "SELECT name, ein, state FROM bmf WHERE ein IN (SELECT ein FROM fts_bmf WHERE fts_bmf MATCH 'ford foundation') LIMIT 5",
        "_shape": "objects",
    }
    async with httpx.AsyncClient() as client:
        resp = await client.get(url, params=params)
        print(resp.json()["rows"])

asyncio.run(test())

Test with Claude Code

After adding the MCP server, try these prompts in Claude Code:

Search for the Ford Foundation's EIN and recent filings.
What stock trades has Nancy Pelosi disclosed?
Find lobbying filings by Google in 2024.
Search for EPA rules about PFAS chemicals.

How it works

Each tool constructs a SQL query, sends it to the Datasette JSON API via HTTP, and formats the response as human-readable text. The server uses the stdio transport by default, communicating with Claude Code over stdin/stdout using JSON-RPC.

Claude Code <--stdio--> server.py <--HTTPS--> Datasette JSON API
                                                 |
                                       data.datadawn.org (990)
                                       regs.datadawn.org (OpenRegs)

Notes

  • All queries are read-only SELECT statements. The Datasette API enforces this.
  • Results are limited to 25-50 rows by default to keep responses manageable.
  • The run_990_sql and run_openregs_sql tools accept arbitrary SQL for advanced queries.
  • For the 990 database: always filter return_type IN ('990','990EZ') to exclude 990-T filings, and filter grant_type = 'paid' on grants unless you want future commitments.
  • Full schema documentation lives in the public companion repos: openregulations-public (openregs_schema.md) and 990database-public (990_schema.md).

License

CC0 1.0 Universal — see LICENSE.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选