datagovin-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
datagovin-mcp

An MCP server that lets LLMs like Claude search and query India's Open Government Data platform (data.gov.in): GDP, trade, industry, agriculture and hundreds of thousands of other datasets published by Indian ministries.
"How did India's quarterly GDP growth move through COVID?" Claude searches the catalog, finds the MoSPI dataset, pulls the series and answers with real numbers, citing the source dataset and how current it is.
Tools
Tool | What it does |
| Keyword search over the catalog, with sector and ministry filters. Returns compact summaries with the period each dataset covers. |
| A dataset's schema: dimension columns, and for wide tables, which metrics and periods it contains. |
| Rows with exact-match filters (by column name or id), column selection and pagination. |
| Reshapes wide year/quarter tables into tidy |
All tools are marked read-only.
Related MCP server: MoSPI MCP Server
Why this is more than an API wrapper
data.gov.in data is published as-is by each ministry, and it is messy in ways that trip up LLMs:
Wide tables. The quarterly GDP dataset has ~150 columns (
value_rs_in_crore___2011_12___q1, …).get_seriesparses the column names into(metric, period)pairs and returns a sorted series.Inconsistent naming within one dataset. The same dataset mixes
___q2and__q3ids and2021-22 - Q2vs2021-22- Q3names; another mixesTotal - As on 31.03.2019withTotal as on 31.03.2018. The normalizer treats these as the same metric, so no periods get silently dropped.Token bloat. Catalog responses include every column of every dataset. Search results are trimmed to summaries, and wide tables return only dimension columns unless asked.
Stale data. Many datasets stop years ago. Every summary reports the last update date and the period covered, and the server instructions ask the model to tell the user how current the data is.
Reliability and safety. Responses are cached (TTL), HTTP 429/5xx errors are retried with exponential backoff, dataset ids are validated as UUIDs before any request, and the API key is never echoed in errors.
Setup
Get a free API key: register at data.gov.in and copy the key from your My Account page.
Install with uv:
git clone https://github.com/Oolrich/datagovin-mcp && cd datagovin-mcp
uv sync --extra devCheck it works against the live API:
export DATA_GOV_IN_API_KEY=your-key
uv run python scripts/smoke_test.pyUse with Claude Desktop
Add this to claude_desktop_config.json (Settings → Developer → Edit Config), then restart Claude:
{
"mcpServers": {
"data-gov-in": {
"command": "uv",
"args": ["--directory", "/absolute/path/to/datagovin-mcp", "run", "datagovin-mcp"],
"env": { "DATA_GOV_IN_API_KEY": "your-key" }
}
}
}Configuration
Variable | Default | Purpose |
| (required for data) | Your data.gov.in key. Catalog search works without it. |
|
| How many catalog entries one search scans, newest first. |
|
| Row cap when building a series. |
Development
uv run pytestTests run offline against a fake API built from real catalog responses, and they include an end-to-end test over the MCP protocol.
Limitations
Search scans the newest catalog entries and matches keywords locally, because the catalog API has no full-text search. Use
sectorto reach older datasets.Filters are exact-match, as supported by the upstream API.
Data is exactly as published by the source ministry. Check the dataset title and update date before relying on it.
Inspired by the datagovindia R package, rebuilt for LLM agents.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Search India datasets; inspect sources, licences and previews; get notebook and Python examples.
Indian government statistics and public data: economy, elections, health, agriculture and more
Search and query 1,500+ OECD statistical datasets via SDMX. Keyless.
Macroeconomic and other official data from 170+ publishers, resolved from natural language with provenance.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceExposes India's open government data (data.gov.in) APIs via the Model Context Protocol, enabling agentic AI data exploration.2MIT

MoSPI MCP Serverofficial
AlicenseNot gradedqualityCmaintenanceProvides AI-ready access to Indian government statistics through MCP, enabling natural language queries for economic, demographic, and social indicators.148MIT- AlicenseNot gradedqualityBmaintenanceMCP server to access India Open Government Data (data.gov.in) resources via natural language queries.464 npmMIT
- AlicenseAqualityCmaintenanceEnables natural-language access to India's Open Government Data platform, letting users discover datasets, inspect schemas, and query live data from data.gov.in.4MIT