e-Stat MCP
Server Details
政府統計 (e-Stat) の API を通じて、統計データやメタ情報を取得するためのサービスです。
- Status
- Healthy
- Last Tested
- Transport
- Streamable HTTP
- URL
Glama MCP Gateway
Connect through Glama MCP Gateway for full control over tool access and complete visibility into every call.
Full call logging
Every tool call is logged with complete inputs and outputs, so you can debug issues and audit what your agents are doing.
Tool access control
Enable or disable individual tools per connector, so you decide what your agents can and cannot do.
Managed credentials
Glama handles OAuth flows, token storage, and automatic rotation, so credentials never expire on your clients.
Usage analytics
See which tools your agents call, how often, and when, so you can understand usage patterns and catch anomalies.
Tool Definition Quality
Average 4.2/5 across 3 of 3 tools scored.
Each tool targets a distinct aspect: catalog metadata, statistical table metadata, and table listing. Their descriptions clarify the workflow (catalog -> list -> meta), so there is no ambiguity about which tool to use.
All tool names follow the consistent pattern e-stat-get-<resource>, using snake_case and a clear verb-noun structure. This makes the set predictable and easy to navigate.
With only 3 tools, the server is on the smaller side but not necessarily too few for a focused purpose. However, the descriptions refer to a missing e-stat-get-stats-data tool, suggesting the count is incomplete for the intended workflow.
The server lacks a tool to actually retrieve statistical data (e-stat-get-stats-data), which is explicitly referenced in two existing tools. This is a severe gap that prevents the server from fulfilling its core purpose.
Available Tools
3 toolse-stat-get-data-cataloge-Stat データカタログ情報取得 / e-Stat Data Catalog InfoARead-onlyInspect
e-Statに登録されている統計データベースのカタログ情報(統計名、説明、提供状況、ファイルのダウンロードURLなど)を取得する。統計データの全体像把握やファイル取得用途に使用する。
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | 言語 (J: 日本語, E: 英語) | |
| limit | No | データ取得件数 (省略時は20件、最大50件) | |
| dataType | No | 検索データ形式 (XLS, CSV, PDF, XML, DBなどカンマ区切り) | |
| catalogId | No | カタログID | |
| openYears | No | 公開年月 (Format: 単年検索: yyyy, 単月検索: yyyymm, 範囲検索: yyyymm-yyyymm) | |
| statsCode | No | 作成機関コード(5桁)または政府統計コード(8桁)。作成機関コード: 内閣官房=00000, 内閣法制局=00010, 人事院=00020, 内閣府=00100, 宮内庁=00110, 公正取引委員会=00120, 国家公安委員会・警察庁=00130, 防衛庁=00140, 防衛施設庁=00141, 金融庁=00150, 消費者庁=00160, こども家庭庁=00170, デジタル庁=00180, 個人情報保護委員会=00190, 総務省=00200, 公害等調整委員会=00201, 消防庁=00202, 法務省=00250, 公安調査庁=00251, 外務省=00300, 財務省=00350, 国税庁=00351, 文部科学省=00400, 文化庁=00401, スポーツ庁=00402, 厚生労働省=00450, 社会保険庁=00451, 中央労働委員会=00452, 農林水産省=00500, 林野庁=00501, 水産庁=00502, 経済産業省=00550, 資源エネルギー庁=00551, 特許庁=00552, 中小企業庁=00553, 国土交通省=00600, 観光庁=00601, 気象庁=00602, 運輸安全委員会=00603, 海上保安庁=00604, 環境省=00650, 防衛省=00700 | |
| resourceId | No | カタログリソースID | |
| searchWord | No | 検索キーワード (AND, OR, NOT使用可能) | |
| statsField | No | 統計分野 大分類: 国土・気象=01, 人口・世帯=02, 労働・賃金=03, 農林水産業=04, 鉱工業=05, 商業・サービス業=06, 企業・家計・経済=07, 住宅・土地・建設=08, エネルギー・水=09, 運輸・観光=10, 情報通信・科学技術=11, 教育・文化・スポーツ・生活=12, 行財政=13, 司法・安全・環境=14, 社会保障・衛生=15, 国際=16, その他=99 小分類: 国土=0101, 気象=0102, 人口=0201, 世帯=0202, 人口動態=0203, 人口移動=0204, 労働力=0301, 賃金・労働条件=0302, 雇用=0303, 労使関係=0304, 労働災害=0305, 農業=0401, 畜産業=0402, 林業=0403, 水産業=0404, 鉱業=0501, 製造業=0502, 商業=0601, 需給流通=0602, サービス業=0603, 企業活動=0701, 金融・保険・通貨=0702, 物価=0703, 家計=0704, 国民経済計算=0705, 景気=0706, 住宅・土地=0801, 建設=0802, 電気=0901, ガス=0902, エネルギー需給=0903, 水=0904, 運輸=1001, 倉庫=1002, 観光=1003, 情報通信・放送=1101, 科学技術=1102, 知的財産=1103, 学校教育=1201, 社会教育=1202, 文化・スポーツ・生活=1203, 行政=1301, 財政=1302, 公務員=1303, 選挙=1304, 司法=1401, 犯罪=1402, 災害=1403, 事故=1404, 環境=1405, 社会保障=1501, 社会保険=1502, 社会福祉=1503, 保健衛生=1504, 医療=1505, 貿易・国際収支=1601, 国際協力=1602, その他=9999 | |
| collectArea | No | 集計地域区分 (1:全国, 2:都道府県, 3:市区町村) | |
| surveyYears | No | 調査年月 (Format: 単年検索: yyyy, 単月検索: yyyymm, 範囲検索: yyyymm-yyyymm) | |
| updatedDate | No | 更新日付 (Format: 単年検索: yyyy, 単月検索: yyyymm, 単日検索: yyyymmdd, 範囲検索: yyyymmdd-yyyymmdd) | |
| startPosition | No | データ取得開始位置。前回応答の nextKey を指定すると続きを取得できる | |
| explanationGetFlg | No | 解説情報有無 |
Output Schema
| Name | Required | Description |
|---|---|---|
| nextKey | Yes | 続きがある場合の次の取得開始位置。startPosition に指定する |
| catalogs | Yes | データカタログの一覧 |
| toNumber | Yes | 今回取得した範囲の終了位置 |
| fromNumber | Yes | 今回取得した範囲の開始位置 |
| totalCount | Yes | 検索条件に該当したカタログの総数 |
Tool Definition Quality
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With annotations already declaring readOnlyHint=true and destructiveHint=false, the description's safety profile is covered. It adds context about the return fields (name, description, download URL) and intended use, but does not detail pagination, rate limits, or other behavioral nuances. This is adequate given the annotation coverage.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two concise sentences, front-loaded with the verb and resource, and includes a clear purpose statement. Every word contributes value without redundancy or filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the complex parameter set (14 optional parameters) but with a fully documented schema and an output schema, the description sufficiently covers the tool's role and context. It could mention more about query construction scenarios, but the schema's exhaustive parameter descriptions compensate, making this adequate for an agent to select and invoke.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema description coverage is 100%, and many parameters have rich descriptions including enums and format guidance. The tool description itself does not add parameter details, but the schema already provides comprehensive semantics, so the description adds no extra value beyond what's structured. Baseline of 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool retrieves catalog information from e-Stat, listing specific content such as statistical names, descriptions, availability, and file download URLs. It also mentions the intended use case (overview grasp and file acquisition), distinguishing it from sibling tools like get-meta-info and get-stats-list.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides clear context on when to use this tool ('統計データの全体像把握やファイル取得用途'), which implies it is for catalog-level exploration rather than detailed metadata or statistics retrieval. However, it does not explicitly exclude cases or mention alternative tools, so it stops short of full guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
e-stat-get-meta-infoe-Stat 統計表メタ情報取得 / e-Stat Statistics Table Meta InfoARead-onlyInspect
e-stat-get-stats-list ツールで取得した統計表IDに基づいて、メタ情報(分類項目、地域区分、時間軸、表章事項などの構造情報)を取得する。ここで得た分類ID・項目コードは e-stat-get-stats-data ツールの絞り込み引数(cdCat01, cdArea など)に指定する。
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | 言語 (J: 日本語, E: 英語) | |
| classId | No | 項目を取得する分類事項を限定する(例: cat01, area, time, tab)。指定しない分類は件数のみ返す | |
| classLimit | No | 分類ごとに返す項目数の上限(省略時は100件。全項目数以上を指定すると全量取得できる) | |
| statsDataId | Yes | 統計表情報取得ツール(e-stat-get-stats-list)で取得した統計表ID | |
| classNameFilter | No | 分類項目名の部分一致フィルタ(例: 東京)。該当する項目のみ返す | |
| explanationGetFlg | No | 解説情報有無 |
Output Schema
| Name | Required | Description |
|---|---|---|
| note | Yes | 項目の省略が発生した場合の案内 |
| table | Yes | 統計表の基本情報 |
| classifications | Yes | 分類事項(表章事項・地域・時間軸・分類)の一覧 |
Tool Definition Quality
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=true and destructiveHint=false, so the read-only safety is covered. The description adds context about the types of metadata returned and how to use the results in subsequent data retrieval, which goes beyond the annotations without contradicting them.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two sentences, front-loaded with the primary purpose and followed by a clear workflow note. No redundant or extraneous content.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool has an output schema and read-only annotations, the compact description is sufficient. It covers the typical usage path (from list to meta to data) and does not need to explain return values because the output schema exists.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Input schema descriptions cover 100% of parameters with detailed explanations (e.g., classId examples, classLimit behavior, lang enum). The description itself does not add parameter-specific information, so the baseline of 3 for full schema coverage is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states it retrieves meta information (classification items, area, time axis, table presentation) for a stats table ID obtained from e-stat-get-stats-list. It distinguishes from siblings by naming both the source tool (e-stat-get-stats-list) and the downstream consumer (e-stat-get-stats-data), making its role in the workflow explicit.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides workflow context: use after getting a statsDataId from e-stat-get-stats-list and before fetching data with e-stat-get-stats-data. It implies when to use the tool but does not explicitly mention when not to use it or compare it with e-stat-get-data-catalog.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
e-stat-get-stats-liste-Stat 統計表一覧取得 / e-Stat Statistics Table ListARead-onlyInspect
指定した条件に基づき、e-Statに登録されている統計表の一覧および基本情報(統計表ID、統計名、調査年月、公開日など)を取得する。実際の統計数値は含まれないため、ここで得た統計表IDを e-stat-get-stats-data ツールに渡して取得する。
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | 言語 (J: 日本語, E: 英語) | |
| limit | No | データ取得件数 (省略時は20件、最大50件) | |
| openYears | No | 公開年月 (Format: 単年検索: yyyy, 単月検索: yyyymm, 範囲検索: yyyymm-yyyymm) | |
| statsCode | No | 作成機関コード(5桁)または政府統計コード(8桁)。作成機関コード: 内閣官房=00000, 内閣法制局=00010, 人事院=00020, 内閣府=00100, 宮内庁=00110, 公正取引委員会=00120, 国家公安委員会・警察庁=00130, 防衛庁=00140, 防衛施設庁=00141, 金融庁=00150, 消費者庁=00160, こども家庭庁=00170, デジタル庁=00180, 個人情報保護委員会=00190, 総務省=00200, 公害等調整委員会=00201, 消防庁=00202, 法務省=00250, 公安調査庁=00251, 外務省=00300, 財務省=00350, 国税庁=00351, 文部科学省=00400, 文化庁=00401, スポーツ庁=00402, 厚生労働省=00450, 社会保険庁=00451, 中央労働委員会=00452, 農林水産省=00500, 林野庁=00501, 水産庁=00502, 経済産業省=00550, 資源エネルギー庁=00551, 特許庁=00552, 中小企業庁=00553, 国土交通省=00600, 観光庁=00601, 気象庁=00602, 運輸安全委員会=00603, 海上保安庁=00604, 環境省=00650, 防衛省=00700 | |
| searchKind | No | 検索データ種別 (1:統計情報, 2:小地域・地域メッシュ) | |
| searchWord | No | 検索キーワード (AND, OR, NOT使用可能) | |
| statsField | No | 統計分野 大分類: 国土・気象=01, 人口・世帯=02, 労働・賃金=03, 農林水産業=04, 鉱工業=05, 商業・サービス業=06, 企業・家計・経済=07, 住宅・土地・建設=08, エネルギー・水=09, 運輸・観光=10, 情報通信・科学技術=11, 教育・文化・スポーツ・生活=12, 行財政=13, 司法・安全・環境=14, 社会保障・衛生=15, 国際=16, その他=99 小分類: 国土=0101, 気象=0102, 人口=0201, 世帯=0202, 人口動態=0203, 人口移動=0204, 労働力=0301, 賃金・労働条件=0302, 雇用=0303, 労使関係=0304, 労働災害=0305, 農業=0401, 畜産業=0402, 林業=0403, 水産業=0404, 鉱業=0501, 製造業=0502, 商業=0601, 需給流通=0602, サービス業=0603, 企業活動=0701, 金融・保険・通貨=0702, 物価=0703, 家計=0704, 国民経済計算=0705, 景気=0706, 住宅・土地=0801, 建設=0802, 電気=0901, ガス=0902, エネルギー需給=0903, 水=0904, 運輸=1001, 倉庫=1002, 観光=1003, 情報通信・放送=1101, 科学技術=1102, 知的財産=1103, 学校教育=1201, 社会教育=1202, 文化・スポーツ・生活=1203, 行政=1301, 財政=1302, 公務員=1303, 選挙=1304, 司法=1401, 犯罪=1402, 災害=1403, 事故=1404, 環境=1405, 社会保障=1501, 社会保険=1502, 社会福祉=1503, 保健衛生=1504, 医療=1505, 貿易・国際収支=1601, 国際協力=1602, その他=9999 | |
| collectArea | No | 集計地域区分 (1:全国, 2:都道府県, 3:市区町村) | |
| surveyYears | No | 調査年月 (Format: 単年検索: yyyy, 単月検索: yyyymm, 範囲検索: yyyymm-yyyymm) | |
| updatedDate | No | 更新日付 (Format: 単年検索: yyyy, 単月検索: yyyymm, 単日検索: yyyymmdd, 範囲検索: yyyymmdd-yyyymmdd) | |
| startPosition | No | データ取得開始位置。前回応答の nextKey を指定すると続きを取得できる | |
| explanationGetFlg | No | 解説情報有無 |
Output Schema
| Name | Required | Description |
|---|---|---|
| tables | Yes | 統計表の一覧 |
| nextKey | Yes | 続きがある場合の次の取得開始位置。startPosition に指定する |
| toNumber | Yes | 今回取得した範囲の終了位置 |
| fromNumber | Yes | 今回取得した範囲の開始位置 |
| totalCount | Yes | 検索条件に該当した統計表の総数 |
Tool Definition Quality
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds valuable behavioral context by stating that the result contains only list and basic information, not actual statistical values ('実際の統計数値は含まれない'), clarifying what the user can expect beyond the annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two sentences: the first defines the core action, the second clarifies what is excluded and how to proceed for actual data. Every sentence earns its place, with no redundant information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the high parameter count (12), rich schema descriptions, output schema presence, and annotations, the description is complete enough. It adds the crucial note about using an external tool for actual data, which is essential for the overall workflow.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100% for all 12 parameters, including formats, enums, defaults, and semantics. The tool description does not add parameter-level detail beyond mentioning the output includes stats table ID, name, survey year, etc., so it neither improves nor degrades beyond the schema baseline.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states '指定した条件に基づき、e-Statに登録されている統計表の一覧および基本情報(統計表ID、統計名、調査年月、公開日など)を取得する', which clearly identifies the verb (取得する), the resource (統計表の一覧), and the scope. It also explicitly says actual statistical values are not included, distinguishing it from data-retrieval tools.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides explicit guidance: 'ここで得た統計表IDを e-stat-get-stats-data ツールに渡して取得する', telling users to use the returned IDs with a specific complementary tool for actual data. It lacks comparisons with sibling tools e-stat-get-data-catalog and e-stat-get-meta-info, but the workflow guidance is clear.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Claim this connector by publishing a /.well-known/glama.json file on your server's domain with the following structure:
{
"$schema": "https://glama.ai/mcp/schemas/connector.json",
"maintainers": [{ "email": "your-email@example.com" }]
}The email address must match the email associated with your Glama account. Once published, Glama will automatically detect and verify the file within a few minutes.
Control your server's listing on Glama, including description and metadata
Access analytics and receive server usage reports
Get monitoring and health status updates for your server
Feature your server to boost visibility and reach more users
For users:
Full audit trail – every tool call is logged with inputs and outputs for compliance and debugging
Granular tool control – enable or disable individual tools per connector to limit what your AI agents can do
Centralized credential management – store and rotate API keys and OAuth tokens in one place
Change alerts – get notified when a connector changes its schema, adds or removes tools, or updates tool definitions, so nothing breaks silently
For server owners:
Proven adoption – public usage metrics on your listing show real-world traction and build trust with prospective users
Tool-level analytics – see which tools are being used most, helping you prioritize development and documentation
Direct user feedback – users can report issues and suggest improvements through the listing, giving you a channel you would not have otherwise
The connector status is unhealthy when Glama is unable to successfully connect to the server. This can happen for several reasons:
The server is experiencing an outage
The URL of the server is wrong
Credentials required to access the server are missing or invalid
If you are the owner of this MCP connector and would like to make modifications to the listing, including providing test credentials for accessing the server, please contact support@glama.ai.
Discussions
No comments yet. Be the first to start the discussion!
Related MCP Servers
- Alicense-qualityCmaintenanceEnables querying Japanese government statistics from e-Stat, including metadata, data observations, and catalog browsing.10MIT
- FlicenseBqualityDmaintenanceEnables access to Japan's official government statistics portal (e-Stat) API to search, retrieve, and analyze statistical data including census data, economic indicators, and demographic information across 17 statistical fields.13
- Alicense-qualityDmaintenanceMCP server for Japan's e-Stat (Government Statistics Portal). Search statistical datasets, retrieve data tables, and access metadata from official Japanese government statistics.8Apache 2.0
- AlicenseBqualityFmaintenanceMCP server for accessing Japanese government statistics portal 'e-Stat' API, enabling language models to search and retrieve statistical data.520MIT