Read-only Postgres access for agents with a semantic knowledge graph, PII refusal and a tamper-evident audit log.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add schemabrain --env DATABASE_URL='<DATABASE_URL>' -- uvx schemabrain~/.codex/config.toml
[mcp_servers.schemabrain]
command = "uvx"
args = ["schemabrain"]
env = { DATABASE_URL = "<DATABASE_URL>" }
# codex mcp add schemabrain --env DATABASE_URL='<DATABASE_URL>' -- uvx schemabrain~/.cursor/mcp.json
{
"mcpServers": {
"schemabrain": {
"command": "uvx",
"args": [
"schemabrain"
],
"env": {
"DATABASE_URL": "<DATABASE_URL>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"schemabrain": {
"type": "stdio",
"command": "uvx",
"args": [
"schemabrain"
],
"env": {
"DATABASE_URL": "<DATABASE_URL>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"schemabrain": {
"command": "uvx",
"args": [
"schemabrain"
],
"env": {
"DATABASE_URL": "<DATABASE_URL>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"schemabrain": {
"command": "uvx",
"args": [
"schemabrain"
],
"env": {
"DATABASE_URL": "<DATABASE_URL>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"schemabrain": {
"command": "uvx",
"args": [
"schemabrain"
],
"env": {
"DATABASE_URL": "<DATABASE_URL>"
}
}
}
}Environment variables
DATABASE_URL
Replace the placeholders with your own credentials and keep them out of version control.