Polybase
БесплатноНе проверенA universal database adapter that enables read-only queries across PostgreSQL, Supabase, and MongoDB databases via the Model Context Protocol.
Описание
A universal database adapter that enables read-only queries across PostgreSQL, Supabase, and MongoDB databases via the Model Context Protocol.
README
Universal Database Adapter for PostgreSQL, Supabase & MongoDB — built with the Model Context Protocol (MCP).
Features
- PostgreSQL/Supabase — Connect via SQLAlchemy
- MongoDB — Connect to MongoDB & Atlas
- Read-Only Safety — Only SELECT/find queries allowed
- Docker Ready — Multi-stage build with non-root user
- Streamable HTTP — Works with Claude Desktop & VS Code
Quick Start
Docker (Recommended)
# Build
docker build -t polybase-mcp -f docker/Dockerfile .
# Run
docker run -p 8000:8000 polybase-mcp
Server available at http://localhost:8000/mcp
Local Development
git clone https://github.com/shrey715/polybase-mcp.git
cd polybase-mcp
uv sync
uv run python -m mcp_server.main
MCP Client Config
VS Code (.vscode/mcp.json)
{
"servers": {
"polybase-mcp": {
"url": "http://localhost:8000/mcp",
"type": "http"
}
}
}
Claude Desktop
{
"mcpServers": {
"polybase-mcp": {
"url": "http://localhost:8000/mcp",
"transport": "http"
}
}
}
Available Tools
| Tool | Description |
|---|---|
connect_db |
Connect to PostgreSQL or MongoDB |
list_tables |
List tables (PG) or collections (Mongo) |
get_schema |
Get table columns or sample doc structure |
query_db |
Execute read-only queries |
Connection Examples
# PostgreSQL
connect_db("postgresql://user:pass@host:5432/dbname")
# MongoDB
connect_db("mongodb://user:pass@host:27017/dbname")
# MongoDB Atlas
connect_db("mongodb+srv://user:[email protected]/dbname")
Query Examples
# PostgreSQL - SQL
query_db("SELECT * FROM users LIMIT 10")
# MongoDB - collection:filter format
query_db("users") # all docs
query_db('users:{"active": true}') # with filter
Environment Variables
| Variable | Default | Description |
|---|---|---|
HOST |
0.0.0.0 |
Server bind address |
PORT |
8000 |
Server port |
License
MIT
Установка Polybase
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/shrey715/polybase-mcpFAQ
Polybase MCP бесплатный?
Да, Polybase MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Polybase?
Нет, Polybase работает без API-ключей и переменных окружения.
Polybase — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить Polybase в Claude Desktop, Claude Code или Cursor?
Открой Polybase на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
wenb1n-dev/SmartDB_MCP
A universal database MCP server supporting simultaneous connections to multiple databases. It provides tools for database operations, health analysis, SQL optim
автор: wenb1n-devPostgres Server
This server enables interaction with PostgreSQL databases through the Model Context Protocol, optimized for the AWS Bedrock AgentCore Runtime. It provides tools
автор: madhurprashPostgres
Query your database in natural language
автор: AnthropicPostgreSQL
Read-only database access with schema inspection.
автор: modelcontextprotocolCompare Polybase with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории data
