search_datasets
Pack: data-bahrain · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/search_datasets for the schema, then POST the same URL with its arguments for the data.
Search Bahrain government open data for datasets by keyword (population, census, education, GDP, labor market, industry). Returns dataset_ids (pass to query/dataset_info), titles and record counts.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | no | Keyword(s) to search dataset titles/descriptions, e.g. “population”. |
limit | number | no | Max datasets (1-100, default 20). |
offset | number | no | Pagination offset (default 0). |
Example call
Arguments
{
"query": "population"
}
curl
curl -X POST https://gateway.pipeworx.io/data-bahrain/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_datasets","arguments":{"query":"population"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('search_datasets', {
"query": "population"
});
More examples
{
"query": "education",
"limit": 10,
"offset": 0
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the data-bahrain pack
{
"mcpServers": {
"data-bahrain": {
"url": "https://gateway.pipeworx.io/data-bahrain/mcp"
}
}
}
See Getting Started for client-specific install steps.