uniquery
UniQuery
データベースの質問を平易な英語で — 任意のMCPクライアントから、またはWeb UIから。
UniQueryはPostgresまたはMongoDBデータベースに読み取り専用モードで接続し、自然言語クエリエージェントとして公開します。同じエンジンへの2つのフロントドアを備えています: Claude Desktop、Claude Code、Cursor、その他のMCPクライアントに接続するMCPサーバーと、チャートで結果を探索するためのNext.js Webアプリです。
興味深いのは自然言語からSQLへの変換ステップではありません — そのようなツールはたくさんあります。重要なのはその周辺です: 行がモデルに到達する前のPIIマスキング、行数とクエリタイムアウトの厳格な上限、コネクタレベルでの読み取り専用の強制、そしてエージェントが時間とともにスキーマを学習するためのセマンティックスキーマストアです。
アーキテクチャ
apps/
web/ Next.js 16 + React 19 + Recharts UI
packages/
core/ The engine — connectors, agent loop, guardrails, viz
connectors/ Postgres (Neon serverless / pg) and MongoDB, read-only
agent/ Tool-calling loop over Vercel AI Gateway / Google Gemini
guardrails/ PII masking + row/timeout clamps
semantic/ Schema knowledge store with SQL migrations
viz/ Result-shape classifier that picks a chart type
mcp-server/ MCP server exposing core over @modelcontextprotocol/sdkRelated MCP server: Vela MCP Server
ガードレール
これらが、これが単なるデモではない理由です:
ガードレール | 動作 |
読み取り専用アクセス | コネクタはモデルが何を生成しても書き込みを発行しません |
PIIマスキング |
|
行数上限のクランプ | すべてのリクエストは、エージェントやMCPクライアントが何を要求しても |
タイムアウトのクランプ | すべてのクエリは |
Zod検証済みツール | MCPツールの入力は、コネクタに触れる前にスキーマチェックされます |
MCPサーバー
MCPサーバーは3つのツールを登録します:
connectDatabase— 選択したconnectionIdの下にPostgresまたはMongoDB接続を登録しますaskQuestion— 登録された接続に対して自然言語の質問をします。マークダウンテーブルと推奨ビジュアライゼーションを返しますさらに、登録済みの接続を発見するための接続一覧ツール
結果はマークダウンテーブル(表示用に50行に制限)として返され、結果の形状からモデルが推測するのではなく導出されたチャート提案 — bar、line、table、またはnone — が付属します。
MCPクライアントでの設定
{
"mcpServers": {
"uniquery": {
"command": "node",
"args": ["/path/to/uniquery/packages/mcp-server/dist/index.js"]
}
}
}次に、クライアントで:
postgres://…のPostgresにanalyticsとして接続し、先四半期に最も収益を生み出した5人の顧客を教えてください。
はじめに
Node.js >= 20 と pnpm 11 が必要です。
pnpm install
pnpm build
# web app
pnpm dev
# MCP server
node packages/mcp-server/dist/index.js.env.example を .env.local にコピーし、データベースURLとLLMキーを入力します — Vercel AI Gatewayキー(デフォルト)または provider: "google" を指定したGoogle Geminiキーのいずれかです。
スタック
TypeScript · pnpm workspaces · Model Context Protocol SDK · Vercel AI SDK 6 · Google Gemini · Neon serverless Postgres · MongoDB · Zod · Next.js 16 · Recharts · Vitest
ステータス
動作するプロトタイプです。エンジン、ガードレール、MCPサーバーは機能しており、Webアプリはコアのクエリとチャートのフローをカバーしています。
ライセンス
MIT
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
- FlicenseAqualityCmaintenanceEnables read-only exploration and querying of PostgreSQL or MySQL databases via MCP, with schema discovery, safe SQL validation, natural language to SQL conversion, and CSV export.111
- AlicenseNot gradedqualityBmaintenanceEnables governed, agent-agnostic data exploration by allowing users to ask natural language questions through MCP-compatible agents, executing safe, permission-scoped queries against data sources and returning interactive charts.48Apache 2.0

Atlas MCPofficial
AlicenseNot gradedqualityAmaintenanceEnables natural language querying of SQL databases and REST APIs through the MCP protocol, grounded in a semantic layer.2,3091AGPL 3.0- FlicenseNot gradedqualityCmaintenanceEnables read-only access to company data across PostgreSQL, MongoDB Atlas, and flat files through MCP tools, allowing AI assistants to query and retrieve information via natural language.
Related MCP Connectors
GibsonAI MCP server: manage your databases with natural language
Query PostgreSQL databases in plain English — LLM-generated, safety-validated SQL.
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/yashdhingra0/uniquery'
If you have feedback or need assistance with the MCP directory API, please join our Discord server