Global law
The law of nearly every country on earth, any date: read it, see what changed it, check citations.
U.S. government economic data (FRED, BLS, BEA, Census, Treasury and more), cited and audited.
作者による原文
一覧は利用スコア(100 点満点)で並びます。内訳は次のとおり
| 人気 | 0/80 | GitHub スターか週間ダウンロード数。大きい方を 60、小さい方を 20 で数えます |
|---|---|---|
| 新しさ | 12/12 | 30 日以内のリリースかコード更新で満点 |
| 応答中 | 0/8 | 前回の確認でクラウドのエンドポイントが応答 |
| 利用スコア | 12/100 |
品質: 基本チェック 3/3 項目に合格(表示のみ、並び順には不使用) · 勢い: データなし (「急上昇」タブでのみ使用)
使っているAIアプリを選んで、設定をコピーしてください。
ひとことで AI にインストールしてもらう
US Government Data Analyst をインストールして。https://mcp.popnx.com/i/zsu-data-analyst-mcp.md に従い、コマンドを見せて、私が OK するまで実行しないで。パソコンで作業できる AI(Claude Code や Cursor など)に貼り付けます。手順を読み、コマンドを見せて、あなたの OK を待ちます。キー不要・登録不要。 · AI が読む全文を見る
チェック 3/3 合格 · あなたのパソコンで動きます · ✓ コマンド確認済み 2026年11月21日
まず:どの AI を使っていますか?
使っているアプリを選ぶと、下に手順が表示されます。
Claude につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
このメッセージを Claude のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。
このパソコンの Claude に MCP server US Government Data Analyst を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "data-analyst": { "command": "npx", "args": [ "-y", "data-analyst-mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、US Government Data Analyst のツールが本当に表示されるか確認する。このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
node -vMac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: node -v
一度入れれば、Node.js を使うすべてのツールで使えます
SettingsDeveloperEdit Config
{
"mcpServers": {
"data-analyst": {
"command": "npx",
"args": [
"-y",
"data-analyst-mcp"
]
}
}
}US Government Data Analyst を使って、私に何ができるか教えて、1 つやってみせて✓ Claude が US Government Data Analyst を使っていると言うか、回答に US Government Data Analyst のツール名が出れば接続成功です
上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。
DATA_GOV_API_KEY 無料の api.data.gov キー(Congress.gov、FDA、FEC、GovInfo など 6 件を含む)。任意 FRED_API_KEY 検索、vintages、GeoFRED 用の無料の FRED キー。任意 BLS_API_KEY 上限の引き上げと年間平均のための無料の BLS キー。任意 BEA_API_KEY API のみのデータセット用の無料の BEA キー。任意 CENSUS_API_KEY 無料の Census キー。ない場合は Census が手動ダウンロードを提供します。任意 説明は自動翻訳です。変数名は原文のままです。迷ったら原文を確認してください。
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
ChatGPT はまだ US Government Data Analyst につなげません
US Government Data Analyst はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません
A · US Government Data Analyst につなげるアプリを使う
B · 法律・行政データ の中で ChatGPT につなげる別のサーバー
同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました
Claude Code につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ)
このメッセージを Claude Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。
このパソコンの Claude Code に MCP server US Government Data Analyst を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):claude mcp add --scope user data-analyst -- npx -y data-analyst-mcp 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、US Government Data Analyst のツールが本当に表示されるか確認する。このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
node -vMac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: node -v
一度入れれば、Node.js を使うすべてのツールで使えます
Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く
claude mcp add --scope user data-analyst -- npx -y data-analyst-mcpUS Government Data Analyst が一覧にあり、接続済みと表示されれば OK です
US Government Data Analyst を使って、私に何ができるか教えて、1 つやってみせて✓ Claude Code が US Government Data Analyst を使っていると言うか、回答に US Government Data Analyst のツール名が出れば接続成功です
上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。
DATA_GOV_API_KEY 無料の api.data.gov キー(Congress.gov、FDA、FEC、GovInfo など 6 件を含む)。任意 FRED_API_KEY 検索、vintages、GeoFRED 用の無料の FRED キー。任意 BLS_API_KEY 上限の引き上げと年間平均のための無料の BLS キー。任意 BEA_API_KEY API のみのデータセット用の無料の BEA キー。任意 CENSUS_API_KEY 無料の Census キー。ない場合は Census が手動ダウンロードを提供します。任意 説明は自動翻訳です。変数名は原文のままです。迷ったら原文を確認してください。
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Cursor につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ)
このメッセージを Cursor のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。
このパソコンの Cursor に MCP server US Government Data Analyst を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "data-analyst": { "command": "npx", "args": [ "-y", "data-analyst-mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、US Government Data Analyst のツールが本当に表示されるか確認する。このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
node -vMac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: node -v
一度入れれば、Node.js を使うすべてのツールで使えます
US Government Data Analyst を使って、私に何ができるか教えて、1 つやってみせて✓ Cursor が US Government Data Analyst を使っていると言うか、回答に US Government Data Analyst のツール名が出れば接続成功です
上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。
DATA_GOV_API_KEY 無料の api.data.gov キー(Congress.gov、FDA、FEC、GovInfo など 6 件を含む)。任意 FRED_API_KEY 検索、vintages、GeoFRED 用の無料の FRED キー。任意 BLS_API_KEY 上限の引き上げと年間平均のための無料の BLS キー。任意 BEA_API_KEY API のみのデータセット用の無料の BEA キー。任意 CENSUS_API_KEY 無料の Census キー。ない場合は Census が手動ダウンロードを提供します。任意 説明は自動翻訳です。変数名は原文のままです。迷ったら原文を確認してください。
メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
VS Code につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ)
このメッセージを VS Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。
このパソコンの VS Code に MCP server US Government Data Analyst を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "servers": { "data-analyst": { "type": "stdio", "command": "npx", "args": [ "-y", "data-analyst-mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、US Government Data Analyst のツールが本当に表示されるか確認する。このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
node -vMac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: node -v
一度入れれば、Node.js を使うすべてのツールで使えます
US Government Data Analyst を使って、私に何ができるか教えて、1 つやってみせて✓ VS Code が US Government Data Analyst を使っていると言うか、回答に US Government Data Analyst のツール名が出れば接続成功です
上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。
DATA_GOV_API_KEY 無料の api.data.gov キー(Congress.gov、FDA、FEC、GovInfo など 6 件を含む)。任意 FRED_API_KEY 検索、vintages、GeoFRED 用の無料の FRED キー。任意 BLS_API_KEY 上限の引き上げと年間平均のための無料の BLS キー。任意 BEA_API_KEY API のみのデータセット用の無料の BEA キー。任意 CENSUS_API_KEY 無料の Census キー。ない場合は Census が手動ダウンロードを提供します。任意 説明は自動翻訳です。変数名は原文のままです。迷ったら原文を確認してください。
メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Claude Code
claude mcp add --scope user data-analyst -- npx -y data-analyst-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"data-analyst": {
"command": "npx",
"args": [
"-y",
"data-analyst-mcp"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"data-analyst": {
"command": "npx",
"args": [
"-y",
"data-analyst-mcp"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"data-analyst": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"data-analyst-mcp"
]
}
}
}DATA_GOV_API_KEY 秘密 envFRED_API_KEY 秘密 envBLS_API_KEY 秘密 envBEA_API_KEY 秘密 envCENSUS_API_KEY 秘密 env説明は自動翻訳です。変数名は原文のままです。迷ったら原文を確認してください。
この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
npm: data-analyst-mcpこのサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。
パソコン上で動かせるアプリ
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月21日にチェック
レジストリ名は、リポジトリを所有するGitHubアカウント zsu で確認済みです
コードの最終更新:今日
MITを使用
これはパソコンで動くため、インターネット上のエンドポイントはありません
パソコンで動き、代わりにローカルの設定を使います
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
OSV.dev に data-analyst-mcp@0.11.2 の登録はありません
このバージョンのパッケージ本体のみ確認。すべての依存関係ではありません · 確認日 2026年11月21日
作者の方は、このコードを README に貼れます。バッジはこのページにリンクします。
[](https://mcp.popnx.com/en/servers/zsu-data-analyst-mcp)質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。
まだレビューはありません
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック3項目のうち3項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
GitHubリポジトリの最終更新は今日、最新バージョン(0.11.2)がレジストリに届いたのは今日です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。
同じカテゴリには:Global law, Open Legal Data (Germany), LibreJustice, InfraNode, Fedlex Connector
同じカテゴリでほかの作者のもの。コマンドは確認済み。公式を先に、次にスター順。
カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
The law of nearly every country on earth, any date: read it, see what changed it, check citations.
German court decisions (Rechtsprechung) and laws (Gesetze) with citation graph and citation checks.
Search French, European, Swiss, Belgian, Luxembourg, Dutch and African case law and legal texts.
Keyless open data for 84 German cities: 12 lean read-only MCP tools covering 67 data types.
Search Swiss federal legislation: laws, articles, amendments via the Fedlex SPARQL endpoint.
| これ US Government Data Analyst | Global law | Open Legal Data (Germany) | LibreJustice | InfraNode | Fedlex Connector | |
|---|---|---|---|---|---|---|
| 動く場所 | パソコンにインストールが必要 | クラウドで動き、インストール不要 | クラウドで動き、インストール不要 | クラウドで動き、インストール不要 | クラウドで動き、インストール不要 | クラウドで動き、インストール不要 |
| キーが必要 | いいえ | いいえ | いいえ | いいえ | いいえ | いいえ |
| Claude で + から追加 | いいえ | いいえ | いいえ | いいえ | いいえ | いいえ |
| 基本チェック | 3/3 | 4/4 | 4/4 | 4/4 | 4/4 | 4/4 |
| ライセンス | MIT | NOASSERTION | MIT | Apache-2.0 | Apache-2.0 | MIT |
| 料金 | 登録情報に費用の記載なし | 登録情報に費用の記載なし | 登録情報に費用の記載なし | 登録情報に費用の記載なし | 登録情報に費用の記載なし | 登録情報に費用の記載なし |
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
data-analyst-mcp)A Model Context Protocol (MCP) server for U.S. economic analysis and official U.S. government data across 77 federal agencies (FRED, BLS, BEA, Census, Treasury, Congress.gov, FDA, CDC, EPA, and more).
Requires Node.js 22 or later. Most sources need no key, so steps 2 and 3 are optional.
Claude Code
claude mcp add data-analyst -- npx -y data-analyst-mcp
Add --scope user to make it available in every project. To pass a key here, put -e before the --, for example claude mcp add data-analyst -e DATA_GOV_API_KEY=your-key -- npx -y data-analyst-mcp.
Claude Desktop: claude_desktop_config.json, in ~/Library/Application Support/Claude/ (macOS) or %APPDATA%\Claude\ (Windows). Settings → Developer → Edit Config opens it. Restart Claude Desktop after editing.
{
"mcpServers": { "data-analyst": { "command": "npx", "args": ["-y", "data-analyst-mcp"], "env": { "DATA_GOV_API_KEY": "your-key" } } } }
Cursor: the same mcpServers block in ~/.cursor/mcp.json (every project) or .cursor/mcp.json (one project).
VS Code: .vscode/mcp.json uses servers instead of mcpServers. An inputs entry makes VS Code ask for the key once and store it, so the key is not written into a file you might commit.
{
"inputs": [ { "type": "promptString", "id": "data-gov-key", "description": "api.data.gov API key", "password": true } ], "servers": { "data-analyst": { "type": "stdio", "command": "npx", "args": ["-y", "data-analyst-mcp"], "env": { "DATA_GOV_API_KEY": "${input:data-gov-key}" } } } }
Codex: ~/.codex/config.toml
[mcp_servers.data-analyst]
command = "npx" args = ["-y", "data-analyst-mcp"]
[mcp_servers.data-analyst.env] DATA_GOV_API_KEY = "your-key"
Leave out the env block if you have no keys, or if you store them with setup (step 2).
To run from a clone instead of npm, build it and point the client at the build:
git clone https://github.com/zsu/data-analyst-mcp.git
cd data-analyst-mcp && npm install && npm run build
Then use "command": "node", "args": [" /data-analyst-mcp/dist/bin/cli.js"] in the configs above, and node dist/bin/cli.js setup in place of npx -y data-analyst-mcp setup below.
Each key is free. Without a key, a source either falls back to a keyless route with lower limits, or offers a manual download (manual_bundle): the user downloads the files in a browser, and the server packages them.
| Variable | Sources | Without it | Free key |
|---|---|---|---|
AQS_API_KEY + AQS_EMAIL | epa-aqs | manual download only | aqs.epa.gov |
BEA_API_KEY | bea | bulk files for the main tables; the API-only datasets need the key | apps.bea.gov |
BLS_API_KEY | bls | 25 queries a day, 25 series and 10 years each; no annual averages or catalog titles | data.bls.gov |
CENSUS_API_KEY | census | manual download only | api.census.gov |
DATA_GOV_API_KEY | college-scorecard, congress, fbi, fda, fec, govinfo, nrel, regulations, usda-fooddata, usgs | DEMO_KEY or keyless, at a few requests an hour (fda: 1,000 a day; usgs earthquakes never need a key) | api.data.gov |
DOL_API_KEY | dol | catalog and field lists only; data queries need the key | dataportal.dol.gov |
EIA_API_KEY | eia | DEMO_KEY, about 10 requests an hour | eia.gov |
FRED_API_KEY | fred | observations only; search, vintages, revision history and GeoFRED need the key | fredaccount.stlouisfed.org |
HUD_USER_TOKEN | hud | manual download only | huduser.gov |
IPUMS_API_KEY | ipums | build the extract on the IPUMS website (free account) | account.ipums.org |
LDA_API_KEY | senate-lobbying | 15 requests a minute instead of 120 | lda.gov |
NOAA_API_KEY | noaa | the keyless data and station-search endpoints; Climate Data Online v2 needs the key | ncei.noaa.gov |
USDA_NASS_API_KEY | usda-nass | manual download only | quickstats.nass.usda.gov |
USPTO_API_KEY | uspto | manual download only | data.uspto.gov |
Two settings are not keys. SEC asks every client to identify itself, so set SEC_USER_AGENT to your name and email ("Jane Doe jane@example.com"). NWS_USER_AGENT is optional and does the same for the weather service.
Store a key with `setup` (recommended). It shows the signup link, reads the key with hidden input, and writes it to ~/.config/data-analyst/keys.json. The key stays out of client config files, and every client reads it. It works mid-session, with no restart.
npx -y data-analyst-mcp setup congress
setup takes any source that uses the key: setup congress stores DATA_GOV_API_KEY, and all 10 api.data.gov sources use it. setup epa-aqs also asks for AQS_EMAIL. Or put the variables in the client's env block, as in step 1. API keys lists every place the server looks.
Ask your assistant: *"Is my api.data.gov key set up?"* The check_key tool reports whether the key was found and where, never its value. For census, eia, epa-aqs, noaa, usgs, bea, fred and ipums it also tests the key with one small call to the agency's own site and says whether it was accepted, rejected or the site could not be reached. To list only the sources you can use, start the server with --hide-unconfigured (see Options).
The assistant asks the questions that change the answer first (which measure, which years, which population), then fetches, computes and cites.
To host the server for claude.ai or a team, see docs/hosting.md.
| Tool | What it does |
|---|---|
guide | the method: framing, asking only critical questions, the accuracy checklist, combining sources |
find_sources | ranks the sources for a question, or lists them all |
source_brief | one source's playbook, its questions_to_ask, key status, rules and request index |
request_schema | full parameters of the requests to use; searches a source's catalog |
record_decisions | how each critical question was settled (answered, Don't know, skipped, not asked and why) |
fetch | downloads into the session workspace; returns a summary, the files, the citation and notes |
manual_bundle, ingest | a one-command download for the user's own computer, then packaging what they downloaded |
compute | builds exhibits from the full tables with declarative steps (a whitelisted expression language, no eval); the steps are recorded for rerun |
facts, write_table, cite | register the numbers cited, write the benchmark and sensitivity tables, snapshot cited pages |
audit_answer, rerun | the release gate: every number in the answer is a registered fact, the method record is complete, and the analysis reproduces |
build_report, style_check, audit_report | an HTML report and replication ZIP, only when asked |
handoff | the per-source data hand-off |
check_key | whether a key is set up (never shows it), and tested live where the source allows |
read_file | a small text file from the workspace |
open_workspace | after a server restart (which starts a new, empty workspace), lists the earlier workspaces and reopens one (local server only) |
Asking before fetching is enforced, not just suggested. fetch returns gate_blocked until, for that source, the model has read source_brief and the schemas of the requests it uses, and has recorded how each critical question was settled. The model asks the questions in chat, in one round. A blocking question that the user skips is asked once more. The server also exposes an analyze prompt and source:// resources, for clients that let users pick prompts or attach resources.
Results have one shape. Success: {status: "ok" | "partial", summary, files, citation, notes}. Failure: {status: "error", code, message, fix, retry_after_s?}. The codes are invalid_request, not_found, not_supported, agency_rejected, agency_unavailable, key_missing, key_rejected, rate_limited, gate_blocked, in_progress and server_error. in_progress comes from a rerun (rerun, or an audit with rerun: true) that needs longer than a client waits for one call: the replay continues in a worker thread, the same call made again waits on that same replay, and the finished result is kept until the workspace changes. DATA_ANALYST_RERUN_WAIT_S sets how long a call waits first (default 45 seconds). The replay gets its own heap, DATA_ANALYST_RERUN_HEAP_MB (default: 60 percent of the memory the process may use, a container's limit when it has one); if it runs out, the audit reports that, and the server keeps running.
| Option (flag / environment) | What it does |
|---|---|
--sources fred,treasury / DATA_ANALYST_SOURCES | serve only these sources |
--domains economy,health / DATA_ANALYST_DOMAINS | serve only the sources in these domains |
--hide-unconfigured / DATA_ANALYST_HIDE_UNCONFIGURED=1 | leave out of listings the sources whose required key is not set up |
--workspace / DATA_ANALYST_WORKSPACE | (stdio) one fixed analysis folder, so a fetch is reused after a restart |
{ "mcpServers": { "data-analyst": { "command": "npx", "args": ["-y", "data-analyst-mcp", "--domains", "economy,health"] } } }
The tool list stays the same size whatever is enabled: sources are found with find_sources, not loaded as tools.
Every result lists its upstream requests (requests: method, credential-free URL, status, cached, time), and citation names the publisher, page and retrieval date. Requests are rate-limited per host (a token bucket), retried with backoff on 429 and 5xx (honoring Retry-After), and kept within each agency's per-minute budgets.
Caching follows each source's terms.
cache.mode: persistent) can be cached on disk in DATA_ANALYST_CACHE (default ~/.cache/data-analyst). census and bea do; opm's terms allow it, but its port downloads again for now.--workspace gives reuse across restarts without keeping copies anywhere else.import { route, brief, fetchSource, compute, registerFacts } from "data-analyst-mcp";
const r = await fetchSource("cdc", { description: "NY deaths 2017", requests: [{ name: "ny", endpoint: "query", params: { dataset: "leading_death", $where: "state = 'New York' AND year = '2017'" } }] }, { out: "./out/ny" }); console.log(r.summary.tables[0].rows, r.citation.text);
listSources, route, brief, requestSchema, fetchSource, ingest, manualBundle, compute,