resource_data
Pack: data-gov-in · Endpoint: https://gateway.pipeworx.io/data-gov-in/mcp
Fetch records from any India Open Government Data (data.gov.in) resource by its resourceId.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
_apiKey | string | yes | data.gov.in API key |
resourceId | string | yes | The dataset resource UUID from its data.gov.in page (e.g. “9ef84268-d588-465a-a308-a864a43d0070”). |
limit | number | no | Max records to return (default 10). The API caps page size; use offset to page. |
offset | number | no | Records to skip for pagination (default 0). |
filters | object | no | Per-field exact-match filters, mapped to filters[field]=value query params. |
additionalProperties | string | no | |
fields | string | no | Optional comma-separated list of field ids to return (projection), e.g. “state,commodity,modal_price”. |
sort | object | no | Optional sort spec mapped to sort[field]=direction, where direction is “asc” or “desc”, |
additionalProperties | string | no |
Example call
Arguments
{
"_apiKey": "your-data-gov-in-api-key",
"resourceId": "9ef84268-d588-465a-a308-a864a43d0070",
"limit": 10,
"offset": 0
}
curl
curl -X POST https://gateway.pipeworx.io/data-gov-in/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"resource_data","arguments":{"_apiKey":"your-data-gov-in-api-key","resourceId":"9ef84268-d588-465a-a308-a864a43d0070","limit":10,"offset":0}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('resource_data', {
"_apiKey": "your-data-gov-in-api-key",
"resourceId": "9ef84268-d588-465a-a308-a864a43d0070",
"limit": 10,
"offset": 0
});
More examples
{
"_apiKey": "your-data-gov-in-api-key",
"resourceId": "9ef84268-d588-465a-a308-a864a43d0070",
"limit": 20,
"offset": 0,
"filters": {
"state": "Punjab",
"commodity": "Apple"
},
"fields": "state,commodity,modal_price,arrival_date",
"sort": {
"modal_price": "desc"
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"data-gov-in": {
"url": "https://gateway.pipeworx.io/data-gov-in/mcp"
}
}
}
See Getting Started for client-specific install steps.