https://github.com/zed-extensions/postgres-context-server
An extension providing a Model Context Server extension for PostgreSQL
https://github.com/zed-extensions/postgres-context-server
Last synced: 5 months ago
JSON representation
An extension providing a Model Context Server extension for PostgreSQL
- Host: GitHub
- URL: https://github.com/zed-extensions/postgres-context-server
- Owner: zed-extensions
- License: apache-2.0
- Created: 2024-11-09T01:21:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-12-29T17:27:54.000Z (6 months ago)
- Last Synced: 2026-01-01T22:36:24.254Z (6 months ago)
- Language: Rust
- Size: 57.6 KB
- Stars: 183
- Watchers: 3
- Forks: 9
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zed-extensions - Postgres Context Server
README
# Zed Postgres Context Server
This extension provides a Model Context Server for Postgres, for use with the Zed AI assistant.
It adds a `/pg-schema` slash command to the Assistant Panel.
## Configuration
To use the extension, you will need to point the context server at a Postgres database by setting the `database_url` in your Zed `settings.json`:
```json
{
"context_servers": {
"postgres-context-server": {
"settings": {
"database_url": "postgresql://myuser:mypassword@localhost:5432/mydatabase"
}
}
}
}
```
## Usage
- `/pg-schema `: Retrieve the schema for the table with the given name.
- `/pg-schema all-tables`: Retrieve the schemas for all tables in the database.