Skip to main content
Glama
yashdhingra0

uniquery

by yashdhingra0

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/sdk

Related MCP server: Vela MCP Server

ガードレール

これらが、これが単なるデモではない理由です:

ガードレール

動作

読み取り専用アクセス

コネクタはモデルが何を生成しても書き込みを発行しません

PIIマスキング

emailssnphonedobcredit_cardcvvpassportapi_keypasswordなどに一致する列はエージェントツール内で編集されます — マスクされた値はLLMコンテキストに到達しません。追加の列は手動でタグ付けできます

行数上限のクランプ

すべてのリクエストは、エージェントやMCPクライアントが何を要求しても[1, 1000]行にクランプされます

タイムアウトのクランプ

すべてのクエリは[1s, 30s]にクランプされます

Zod検証済みツール

MCPツールの入力は、コネクタに触れる前にスキーマチェックされます

MCPサーバー

MCPサーバーは3つのツールを登録します:

  • connectDatabase — 選択したconnectionIdの下にPostgresまたはMongoDB接続を登録します

  • askQuestion — 登録された接続に対して自然言語の質問をします。マークダウンテーブルと推奨ビジュアライゼーションを返します

  • さらに、登録済みの接続を発見するための接続一覧ツール

結果はマークダウンテーブル(表示用に50行に制限)として返され、結果の形状からモデルが推測するのではなく導出されたチャート提案 — barlinetable、または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

F
license - not found
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • F
    license
    A
    quality
    C
    maintenance
    Enables 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.
    11
    1
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables 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.
    48
    Apache 2.0
  • A
    license
    Not graded
    quality
    A
    maintenance
    Enables natural language querying of SQL databases and REST APIs through the MCP protocol, grounded in a semantic layer.
    2,309
    1
    AGPL 3.0
  • F
    license
    Not graded
    quality
    C
    maintenance
    Enables 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.

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

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