|
| 1 | +{ |
| 2 | + "$schema": "../schemas/server-definition.schema.json", |
| 3 | + "id": "crystaldba.postgres-mcp-docker", |
| 4 | + "name": "PostgreSQL (Docker)", |
| 5 | + "alias": "postgres-docker", |
| 6 | + "description": "Query PostgreSQL databases, analyze performance, and optimize indexes via Docker. Execute SQL, inspect schemas, get EXPLAIN plans, identify slow queries, and run health checks.", |
| 7 | + "icon": "https://www.postgresql.org/media/img/about/press/elephant.png", |
| 8 | + "schema_version": "2.1", |
| 9 | + "categories": [ |
| 10 | + "database" |
| 11 | + ], |
| 12 | + "tags": [ |
| 13 | + "postgres", |
| 14 | + "postgresql", |
| 15 | + "database", |
| 16 | + "sql", |
| 17 | + "docker", |
| 18 | + "index-tuning", |
| 19 | + "performance" |
| 20 | + ], |
| 21 | + "transport": { |
| 22 | + "type": "stdio", |
| 23 | + "command": "docker", |
| 24 | + "args": [ |
| 25 | + "run", "-i", "--rm", |
| 26 | + "-e", "DATABASE_URI", |
| 27 | + "crystaldba/postgres-mcp", |
| 28 | + "--access-mode=unrestricted" |
| 29 | + ], |
| 30 | + "env": { |
| 31 | + "DATABASE_URI": "${input:DATABASE_URI}" |
| 32 | + }, |
| 33 | + "metadata": { |
| 34 | + "inputs": [ |
| 35 | + { |
| 36 | + "id": "DATABASE_URI", |
| 37 | + "label": "PostgreSQL Connection URI", |
| 38 | + "description": "PostgreSQL connection string. Use host.docker.internal instead of localhost for local instances.", |
| 39 | + "type": "text", |
| 40 | + "required": true, |
| 41 | + "secret": true, |
| 42 | + "placeholder": "postgresql://username:password@host.docker.internal:5432/mydb", |
| 43 | + "obtain": { |
| 44 | + "url": "https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING-URIS", |
| 45 | + "instructions": "1. Format: postgresql://username:password@host:port/database\n2. For local PostgreSQL via Docker: use host.docker.internal instead of localhost\n3. For cloud providers: check your dashboard for the connection string", |
| 46 | + "button_label": "Connection Docs" |
| 47 | + } |
| 48 | + } |
| 49 | + ] |
| 50 | + } |
| 51 | + }, |
| 52 | + "auth": { |
| 53 | + "type": "none" |
| 54 | + }, |
| 55 | + "contributor": { |
| 56 | + "name": "Crystal DBA", |
| 57 | + "github": "crystaldba", |
| 58 | + "url": "https://github.com/crystaldba" |
| 59 | + }, |
| 60 | + "links": { |
| 61 | + "repository": "https://github.com/crystaldba/postgres-mcp", |
| 62 | + "homepage": "https://www.postgresql.org", |
| 63 | + "documentation": "https://github.com/crystaldba/postgres-mcp#readme" |
| 64 | + }, |
| 65 | + "platforms": [ |
| 66 | + "all" |
| 67 | + ], |
| 68 | + "capabilities": { |
| 69 | + "tools": true, |
| 70 | + "resources": false, |
| 71 | + "prompts": false, |
| 72 | + "read_only_mode": true |
| 73 | + }, |
| 74 | + "changelog_url": "https://github.com/crystaldba/postgres-mcp/releases" |
| 75 | +} |
0 commit comments