Cxdb
БесплатноНе проверенA Model Context Protocol (MCP) server that gives Claude direct, read-only access to the cxdb PostgreSQL database. This lets you query production data in plain E
Описание
A Model Context Protocol (MCP) server that gives Claude direct, read-only access to the cxdb PostgreSQL database. This lets you query production data in plain English — no SQL knowledge required — straight from Claude Code or the Claude desktop app.
README
A Model Context Protocol (MCP) server that gives Claude direct, read-only access to the cxdb PostgreSQL database. This lets you query production data in plain English — no SQL knowledge required — straight from Claude Code or the Claude desktop app.
Why does this exist?
Normally, getting data out of cxdb means opening a database client, writing SQL, and sharing results manually. This tool removes that friction.
With cxdb-mcp connected to Claude, you can ask things like:
- "How many loads were posted last week?"
- "Give me the details of the user with email [email protected]"
- "What tables relate to companies and subscriptions?"
Claude handles the SQL, runs it safely in a read-only transaction, and returns the results directly in your conversation. No write access is possible.
Tools available
| Tool | What it does |
|---|---|
query |
Runs a SELECT or WITH query against cxdb |
list_tables |
Lists all tables in the database |
describe_table |
Shows columns and types for a given table |
Prerequisites
- Node.js v18 or higher
- Claude Code (CLI or desktop app)
- Database credentials for
cxdb— ask devops team
Setup
1. Clone the repo
git clone https://github.com/uvan1999/cxdb-mcp.git
cd cxdb-mcp
2. Install dependencies
npm install
3. Configure your credentials
Copy the example env file and fill in your own database details:
cp .env.example .env
Open .env and set the values:
DB_HOST=your-db-host
DB_PORT=5432
DB_NAME=your-db-name
DB_USER=your-db-user
DB_PASSWORD=your-db-password
Never commit
.envto git. It is already listed in.gitignore.
4. Register the MCP server with Claude Code
Open your Claude Code settings file at ~/.claude/settings.json and add the following inside the mcpServers object:
"cxdb": {
"command": "node",
"args": ["/absolute/path/to/cxdb-mcp/index.js"],
"env": {
"DB_HOST": "your-db-host",
"DB_PORT": "5432",
"DB_NAME": "your-db-name",
"DB_USER": "your-db-user",
"DB_PASSWORD": "your-db-password"
}
}
Replace /absolute/path/to/cxdb-mcp/ with the actual path where you cloned the repo (e.g. /Users/yourname/projects/cxdb-mcp).
The credentials go in
settings.jsonrather than the.envfile when using Claude Code, because Claude Code passes them as environment variables directly to the server process.
5. Restart Claude Code
After saving settings.json, restart Claude Code for the MCP server to be picked up.
Verify it's working
In Claude Code, ask:
"List the tables in cxdb"
Claude should respond with a list of all tables — no SQL required.
Security notes
- All queries run inside a read-only transaction (
BEGIN READ ONLY). Writes, deletes, and schema changes are not possible. - Only
SELECTandWITHstatements are accepted. Any other statement type is rejected before it reaches the database. - Your credentials are never stored in this repository. The
.gitignoreexcludes.envand the source code contains no hardcoded values.
Установка Cxdb
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/uvan1999/cxdb-mcpFAQ
Cxdb MCP бесплатный?
Да, Cxdb MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Cxdb?
Нет, Cxdb работает без API-ключей и переменных окружения.
Cxdb — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить Cxdb в Claude Desktop, Claude Code или Cursor?
Открой Cxdb на 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 Cxdb with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории data
