datahub-okf-governed-query
Executes closed, typed queries against synthetic PostgreSQL data with policy enforcement and schema verification.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@datahub-okf-governed-queryrun the governed query for active users"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
DataHub + OKF Governed Query
A security-focused MCP adapter that combines read-only DataHub metadata evidence with a reviewed OKF-derived policy IR before executing a closed, typed query against synthetic PostgreSQL data.
Status
The architecture and implementation slices are specified. Implementation starts with the reproducible TypeScript and Nix foundation.
Related MCP server: PostgreSQL MCP Server
Core boundary
MCP caller
-> Context MCP
-> pinned DataHub MCP (read-only evidence)
-> private Unix socket
-> Query Executor
-> reviewed Policy IR
-> live PostgreSQL schema and role verification
-> fixed typed SQL
<- validated structured resultDataHub is evidence, not the authorization authority.
Runtime authorization is deterministic; an LLM does not decide
ALLOW.The executor never accepts arbitrary SQL.
The MVP does not write decisions or query results back to DataHub.
The demo uses one synthetic dataset and fails closed on ambiguity or drift.
Development checks
Enter the pinned Nix shell, install with pnpm, and use Deno as the least-privilege TCB runtime:
nix develop
pnpm install --frozen-lockfile
deno task checkpnpm-lock.yaml is the only npm dependency lock. Deno uses the existing
node_modules in manual mode and receives repository read access only for the
TCB check. Environment access is limited to 22 exact non-secret TypeScript
watcher, inspector, mode, and terminal keys; Deno receives no write, network,
subprocess, FFI, or system permission.
Start with the design specification and the implementation plan index.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables secure querying of PostgreSQL databases through MCP-compatible clients. Supports read-only SQL execution, table exploration, and connection management with built-in security validation.Last updated3389MIT
- Alicense-qualityDmaintenanceA production-ready MCP server that enables safe, read-only SQL SELECT queries against PostgreSQL databases with built-in security validation. It features connection pooling, automatic row limits, and structured logging to ensure secure and reliable database interactions.Last updated53ISC
- Alicense-qualityAmaintenanceProvides a read-only PostgreSQL SQL surface for LLM agents via MCP, with defense-in-depth security layers for safe database queries.Last updated3MIT
- AlicenseAqualityCmaintenanceA self-hostable PostgreSQL MCP server for exploring database schemas and running guarded read/write queries with selectable access modes (readonly, readwrite, admin), plus a dry-run confirm workflow for safety.Last updated14MIT
Related MCP Connectors
Query PostgreSQL databases in plain English — LLM-generated, safety-validated SQL.
MCP server for managing Prisma Postgres.
Analytical memory for AI agents: a real Postgres queried in plain English over MCP. One command.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Anionix/datahub-okf-governed-query'
If you have feedback or need assistance with the MCP directory API, please join our Discord server