Last active
May 5, 2025 01:35
-
-
Save up1/d8f68b8994971a28c545790b7375e316 to your computer and use it in GitHub Desktop.
Docker MCP Catalog and toolkit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pull image | |
$docker image pull mcp/postgres | |
Using default tag: latest | |
latest: Pulling from mcp/postgres | |
6e771e15690e: Already exists | |
6943333fe3c9: Downloading 23.82MB/49.62MB | |
19f059763ac0: Download complete | |
422fec2897b5: Download complete | |
3beeba27d5a1: Download complete | |
acd090080dfa: Download complete | |
a750e23f113a: Download complete | |
4f4fb700ef54: Waiting | |
37bb7101b811: Waiting | |
# config | |
{ | |
"mcpServers": { | |
"postgres": { | |
"command": "docker", | |
"args": [ | |
"run", | |
"-i", | |
"--rm", | |
"-e", | |
"POSTGRES_URL", | |
"mcp/postgres", | |
"postgres://myuser:[email protected]:5432/mydb" | |
] | |
} | |
} | |
} | |
# Log ใน container ของ MCP postgres | |
{"result":{"protocolVersion":"2024-11-05","capabilities":{"resources":{},"tools":{}},"serverInfo":{"name":"example-servers/postgres","version":"0.1.0"}},"jsonrpc":"2.0","id":1} | |
{"result":{"tools":[{"name":"query","description":"Run a read-only SQL query","inputSchema":{"type":"object","properties":{"sql":{"type":"string"}}}}]},"jsonrpc":"2.0","id":2} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment