MCP server for PostgREST — 10 tools for CRUD operations, filtering, resource embedding, and RPC on PostgreSQL databases via REST API
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
本地运行
claude mcp add postgrest --env POSTGREST_URL='<POSTGREST_URL>' -- npx -y @node2flow/postgrest-mcp~/.codex/config.toml
[mcp_servers.postgrest]
command = "npx"
args = ["-y", "@node2flow/postgrest-mcp"]
env = { POSTGREST_URL = "<POSTGREST_URL>" }
# codex mcp add postgrest --env POSTGREST_URL='<POSTGREST_URL>' -- npx -y @node2flow/postgrest-mcp~/.cursor/mcp.json
{
"mcpServers": {
"postgrest": {
"command": "npx",
"args": [
"-y",
"@node2flow/postgrest-mcp"
],
"env": {
"POSTGREST_URL": "<POSTGREST_URL>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"postgrest": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@node2flow/postgrest-mcp"
],
"env": {
"POSTGREST_URL": "<POSTGREST_URL>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"postgrest": {
"command": "npx",
"args": [
"-y",
"@node2flow/postgrest-mcp"
],
"env": {
"POSTGREST_URL": "<POSTGREST_URL>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"postgrest": {
"command": "npx",
"args": [
"-y",
"@node2flow/postgrest-mcp"
],
"env": {
"POSTGREST_URL": "<POSTGREST_URL>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"postgrest": {
"command": "npx",
"args": [
"-y",
"@node2flow/postgrest-mcp"
],
"env": {
"POSTGREST_URL": "<POSTGREST_URL>"
}
}
}
}远程托管
claude mcp add --transport http postgrest https://postgrest-mcp-community.node2flow.net/mcp~/.codex/config.toml
[mcp_servers.postgrest]
url = "https://postgrest-mcp-community.node2flow.net/mcp"
# codex mcp add postgrest --url https://postgrest-mcp-community.node2flow.net/mcp~/.cursor/mcp.json
{
"mcpServers": {
"postgrest": {
"url": "https://postgrest-mcp-community.node2flow.net/mcp"
}
}
}.vscode/mcp.json
{
"servers": {
"postgrest": {
"type": "http",
"url": "https://postgrest-mcp-community.node2flow.net/mcp"
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"postgrest": {
"httpUrl": "https://postgrest-mcp-community.node2flow.net/mcp"
}
}
}claude_desktop_config.json · Customize › Connectors › Add custom connector
{
"mcpServers": {
"postgrest": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://postgrest-mcp-community.node2flow.net/mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"postgrest": {
"url": "https://postgrest-mcp-community.node2flow.net/mcp"
}
}
}需要的环境变量
POSTGREST_URL
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。