Data Bahrain logo

Data Bahrain

Query Bahrain government datasets covering population, education, GDP, labor markets, and other official statistics.

Install Data Bahrain

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "data-bahrain": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-data-bahrain"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 3 tools correctly (9d ago).

Overview

Data Bahrain connects MCP clients to Bahrain’s national open data portal through the Pipeworx gateway. It supports dataset discovery, schema and record-count inspection, and ODSQL queries with filtering, selection, grouping, sorting, and pagination. Use it when an agent needs structured Bahrain government statistics rather than general web search. Access is keyless through the hosted endpoint, with an optional local npm bridge.

Use cases

  • Find Bahrain population and census datasets
  • Inspect fields before querying an education dataset
  • Aggregate GDP or labor market records
  • Filter and paginate government open-data results

Key features

  • Bahrain government open-data access
  • Dataset search by keyword
  • Schema and record-count inspection
  • ODSQL filtering and aggregation
  • Hosted MCP and local npm bridge
  • Keyless access with optional API key

Tools3

What Data Bahrain lets your agent do. Expand a tool for its parameters.

Verified live~538 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 1d ago

Recent health check succeeded.

9/9 checks healthy over the last 44d

What it can do

From the 3 tools this server returned when we ran it; 3 declare their own safety hints.

Makes network requests · 3Read-only tools · 3
Network at startup4 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age40 days
Maintainers1

Observed 2026-11-03 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 14d ago via OSV.dev · @pipeworx/mcp-data-bahrain (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads1kPackage downloads in the last 30 days.
Last commit3d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed3Callable tools this server registers over MCP.

How Data Bahrain works

What Data Bahrain does

Data Bahrain exposes selected datasets from Bahrain’s national open data portal as MCP tools. The available subject areas include population and census statistics, education, GDP, labor markets, and industry. The source endpoint is Bahrain’s official open data API at data.gov.bh/api/explore/v2.1/.

The integration is independent and unofficial. It is provided through Pipeworx, which also operates a broader gateway for many other data sources. Data Bahrain is intended for agents that need to locate and query structured public datasets, not for writing data back to the portal.

How it works

The hosted MCP endpoint is:

text
https://gateway.pipeworx.io/data-bahrain/mcp

An MCP client can connect to that URL and invoke the pack’s tools. The normal workflow is to search for a relevant dataset, inspect its schema and record count, then query records or aggregations using the dataset identifier.

The endpoint also exposes shared Pipeworx meta-tools, including ask_pipeworx, discover_tools, search_within, and remember/recall. These are listed alongside the pack-specific tools. ask_pipeworx can route a plain-language request across the wider Pipeworx catalog, including sources beyond Bahrain data. The full gateway is available at https://gateway.pipeworx.io/mcp when direct access to all catalog packs is preferred.

HTTP callers can invoke tools directly through the gateway’s /v1/tools/ API. A local npm bridge is also available; it forwards MCP calls to the same hosted endpoint and requires network access.

Setup and configuration

For a hosted connection, add the following MCP entry:

config.json
{
  "mcpServers": {
    "data-bahrain": {
      "url": "https://gateway.pipeworx.io/data-bahrain/mcp"
    }
  }
}

The local option starts the bridge with npx:

config.json
{
  "mcpServers": {
    "data-bahrain": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-data-bahrain"]
    }
  }
}

The hosted connection is keyless. The local bridge allows up to 50 anonymous calls per day; a free Pipeworx account and PIPEWORX_API_KEY raise that limit to 200 calls per day. Set PIPEWORX_META_TOOLS=1 in the local configuration to include the shared gateway tools in its listed tool set. The bridge must be able to reach the network and has no offline mode.

Tools and capabilities

  • search_datasets(query?, limit?, offset?) finds dataset identifiers by keyword.
  • dataset_info(dataset_id) returns a dataset’s description, field schema, and record count.
  • query(dataset_id, query?, where?, select?, group_by?, order_by?, limit?, offset?) retrieves records or performs aggregations with ODSQL options.
  • ask_pipeworx can accept a plain-language question and select tools across the wider gateway when shared meta-tools are enabled or when using the hosted pack endpoint.

The tools support progressive discovery: identify a dataset first, examine its fields, and then construct a focused query using the available columns and query options.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Data Bahrain

Data Bahrain is an MCP server that connects AI clients to Bahrain’s national open data portal through the Pipeworx gateway. Its main tools search datasets, inspect dataset schemas and record counts, and query records or aggregations with ODSQL options such as filters, grouping, sorting, and pagination.

Add the hosted MCP URL to your client, or run the local bridge with `npx -y @pipeworx/mcp-data-bahrain`. The hosted configuration uses `https://gateway.pipeworx.io/data-bahrain/mcp`; the local option forwards requests to that endpoint and requires network access.

Yes, Data Bahrain can be added to Cursor as a hosted MCP server using its HTTPS endpoint. Configure the server with `https://gateway.pipeworx.io/data-bahrain/mcp` and connect without an account or API key.

No, an API key is not required for initial use. Anonymous local-bridge calls are capped at 50 per day, while a free Pipeworx account with `PIPEWORX_API_KEY` increases the limit to 200 per day.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewData Bahrain AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/data-bahrain?style=directory)](https://allmcps.com/mcp/data-bahrain)
HTML Embed
<a href="https://allmcps.com/mcp/data-bahrain"><img src="https://allmcps.com/api/badge/data-bahrain?style=directory" alt="Data Bahrain on AllMCPs" /></a>