PostgreSQL Explorer
БесплатноНе проверенEnables AI clients to explore a PostgreSQL database schema and run read-only queries, including listing tables, describing columns, executing SELECT queries, an
Описание
Enables AI clients to explore a PostgreSQL database schema and run read-only queries, including listing tables, describing columns, executing SELECT queries, and retrieving foreign key relationships.
README
MCP PostgreSQL Explorer is a TypeScript MCP server that lets AI clients explore a PostgreSQL database schema and run read-only queries.
This is my first project of this kind. I am a computer science student building it to learn how MCP servers, TypeScript, PostgreSQL introspection, and database tooling work together.
Features
- Lists base tables in a PostgreSQL schema.
- Describes table columns, data types, defaults, nullability, and constraints.
- Runs
SELECT-only queries. - Lists foreign key relationships between tables.
- Uses
publicas the default schema, with an optional schema override.
Tools
list_tables
Lists base tables in a schema.
Default:
{
"schema": "public"
}
describe_table
Describes a table in a schema.
{
"schema": "public",
"table": "users"
}
execute_query
Runs a read-only PostgreSQL query.
{
"query": "SELECT * FROM users LIMIT 10",
"params": []
}
The tool rejects mutations, semicolons, and non-SELECT statements.
get_relationships
Lists foreign key relationships for tables in a schema.
{
"schema": "public"
}
Tech Stack
- TypeScript
- Node.js
@modelcontextprotocol/sdkpg- PostgreSQL system catalogs and
information_schema
Setup
Install dependencies:
npm install
Set your database connection string:
export DATABASE_URL="postgres://user:password@localhost:5432/database_name"
On Windows PowerShell:
$env:DATABASE_URL="postgres://user:password@localhost:5432/database_name"
Run
npx tsx src/index.ts
Type Check
npx tsc --noEmit
Установка PostgreSQL Explorer
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/arseniytech/MCPPostgreSQLExplorerFAQ
PostgreSQL Explorer MCP бесплатный?
Да, PostgreSQL Explorer MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для PostgreSQL Explorer?
Нет, PostgreSQL Explorer работает без API-ключей и переменных окружения.
PostgreSQL Explorer — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить PostgreSQL Explorer в Claude Desktop, Claude Code или Cursor?
Открой PostgreSQL Explorer на 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 PostgreSQL Explorer with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории data
