PostgreSQL MCP Server
Model Context Protocol üzerinden PostgreSQL veritabanlarına salt okunur erişim sağlar. AI agent'ların veritabanı şemalarını incelemesine, SELECT sorguları çalıştırmasına ve tablo yapılarını keşfetmesine olanak tanır. Verilerin yanlışlıkla değiştirilmesini önlemek için salt okunur transaction isolation kullanır. Daha önce referans sunucu paketinin parçasıydı; artık arşivlenmiştir ve servers-archived altında bulunur.
Bu açıklama otomatik olarak çevrilmiştir ve henüz editör tarafından incelenmemiştir.
Bağlan
Bu yapılandırmayı şuraya ekleyin: .claude/mcp.json
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-postgres",
"postgresql://localhost/mydb"
],
"env": {
"POSTGRES_CONNECTION_STRING": "<YOUR_POSTGRES_CONNECTION_STRING>"
}
}
}
}Araçlar (3)
query
Execute a read-only SQL query against the connected PostgreSQL database and return results.
{
"type": "object",
"required": [
"sql"
],
"properties": {
"sql": {
"type": "string",
"description": "SQL query to execute (SELECT statements only)"
}
}
}list_tables
List all tables in the connected PostgreSQL database with their schemas.
{
"type": "object",
"properties": {
"schema": {
"type": "string",
"description": "Schema name to filter tables (defaults to public)"
}
}
}describe_table
Get the column definitions, types, and constraints for a specific table.
{
"type": "object",
"required": [
"table_name"
],
"properties": {
"schema": {
"type": "string",
"description": "Schema name (defaults to public)"
},
"table_name": {
"type": "string",
"description": "Name of the table to describe"
}
}
}Kaynaklar (1)
postgres://{host}/{database}/schemaAccess to the database schema information including tables, columns, and relationships.
Prompt'lar
Bu sunucu herhangi bir prompt sunmuyor.
Sunucu bilgileri
- Lisans
- MIT
- Sürüm
- 0.6.2
- Yıldızlar
- 265
- Son güncelleme
- 27 Ocak 2026