india-gov-data-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DATA_GOV_API_KEY | Yes | Your personal data.gov.in API key, generated from the My Account page after registering at https://www.data.gov.in/. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
MCP server for India's Open Government Data portal (api.data.gov.in). Use search_catalog to discover datasets by keyword, inspect_schema to understand column names and types before querying, find_filter_values to resolve exact filter strings, query_records to fetch data with auto-pagination, aggregate_dataset for exact math, join_on_geography to merge two datasets on state/district, export_dataset to save CSV/JSON/Parquet locally, and get_citation for reproducible references.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": true
} |
| resources | {
"subscribe": false,
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search_catalogA | Search data.gov.in for datasets by keyword. Returns up to limit matching datasets with their Examples of good queries:
|
| inspect_schemaA | Inspect the schema of a data.gov.in resource before querying it. Fetches 5 sample rows, infers each column's type ( Always call this before |
| query_recordsA | Fetch records from a data.gov.in resource with auto-pagination. Automatically paginates past the 100-row API limit in batches,
normalizes field names to |
| aggregate_datasetA | Compute an exact aggregation over a data.gov.in dataset using DuckDB. Fetches filtered data, loads it into an in-memory DuckDB table, and
runs a deterministic |
| join_on_geographyA | Join two data.gov.in datasets on normalized Indian geography. Normalizes state or district names in both datasets (e.g. maps
Use case: Combine AQI data with health data by state, or merge crop production with rainfall data by district. |
| get_citationA | Generate an official citation for a data.gov.in dataset. Returns a citation block including the dataset title, resource_id, portal URL, any applied filters, and the UTC timestamp of retrieval. Use this to attribute data properly in reports and answers. |
| find_filter_valuesA | Discover exact, case-sensitive filter values for a dataset column.
|
| export_datasetA | Export records from a data.gov.in resource to CSV, JSON, or Parquet. Normalizes column names to |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| compare_states | Guide the assistant to compare two Indian states on a public data topic. |
| mandi_price_check | Guide the assistant to inspect and aggregate daily APMC mandi prices. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| geography_states_resource | Canonical 36 Indian States/UTs and known spelling/legacy variants. |
| featured_catalog_resource | Curated featured datasets from data.gov.in. |
TDQS
Scored across 8 tools
The eight tools map to clearly distinct stages of a data workflow: discovery (search_catalog), schema inspection (inspect_schema), retrieval (query_records), aggregation, joining, filtering, exporting, and citation. The only mild overlap is between inspect_schema and find_filter_values, both of which reveal exact filter values, but their descriptions draw a workable line between column/types and case-sensitive categorical values.
Every tool follows a snake_case verb_noun pattern (inspect_schema, search_catalog, query_records, aggregate_dataset, find_filter_values, export_dataset, get_citation), all describing a concrete action on a concrete object. The one deviation, get_citation using 'get' rather than search/find, is trivial and still consistent with the pattern.
Eight tools is well within the ideal 3-15 range and each one earns its place by covering a distinct step of the data access pipeline. There is no obvious filler or redundant tool.
The surface covers the full agent lifecycle from discovery through schema inspection, filtered retrieval, aggregation, geographic joins, export, and citation, with no real dead ends for ad-hoc analysis. Minor gaps exist: no direct metadata/resource-listing call, and no explicit control over pagination limits or catalog browsing by ministry/sector.