What is the Midplane MCP server?
Safe-by-default SQL guardrails for AI agents: AST-checked queries, per-table policy, audit log.
How to install Midplane
Copy-paste configuration for popular MCP clients.
DATABASE_URLrequiredsecretPostgres connection string the agent's queries run against. Give it a least-privilege role: Midplane constrains what SQL is allowed, it does not widen or narrow what the role itself can reach.
MIDPLANE_POLICY_FILEPath to a policy YAML granting per-table read/read_write access, tenant scoping, and column masking. Omit for the safe default: reads allowed, writes and DDL denied. Generate one with `npx midplane init`.
DB_PATHWhere the local SQLite audit log is written. Defaults to ~/.midplane/audit.db; read it back with `midplane audit denies`.
MIDPLANE_TELEMETRYSet to 0 to disable anonymous usage telemetry (DO_NOT_TRACK=1 also works). Never includes SQL, table or column names, or identifiers.
PORTPort the Streamable HTTP transport binds. Must match the url above if changed.
{
"mcpServers": {
"midplane": {
"command": "npx",
"args": [
"-y",
"midplane",
"server",
"--stdio"
],
"env": {
"DATABASE_URL": "<YOUR_DATABASE_URL>",
"MIDPLANE_POLICY_FILE": "<YOUR_MIDPLANE_POLICY_FILE>",
"DB_PATH": "<YOUR_DB_PATH>",
"MIDPLANE_TELEMETRY": "<YOUR_MIDPLANE_TELEMETRY>",
"PORT": "<YOUR_PORT>"
}
}
}
}{
"mcpServers": {
"midplane": {
"command": "npx",
"args": [
"-y",
"midplane",
"server",
"--stdio"
],
"env": {
"DATABASE_URL": "<YOUR_DATABASE_URL>",
"MIDPLANE_POLICY_FILE": "<YOUR_MIDPLANE_POLICY_FILE>",
"DB_PATH": "<YOUR_DB_PATH>",
"MIDPLANE_TELEMETRY": "<YOUR_MIDPLANE_TELEMETRY>",
"PORT": "<YOUR_PORT>"
}
}
}
}{
"mcpServers": {
"midplane": {
"command": "npx",
"args": [
"-y",
"midplane",
"server",
"--stdio"
],
"env": {
"DATABASE_URL": "<YOUR_DATABASE_URL>",
"MIDPLANE_POLICY_FILE": "<YOUR_MIDPLANE_POLICY_FILE>",
"DB_PATH": "<YOUR_DB_PATH>",
"MIDPLANE_TELEMETRY": "<YOUR_MIDPLANE_TELEMETRY>",
"PORT": "<YOUR_PORT>"
}
}
}
}{
"servers": {
"midplane": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"midplane",
"server",
"--stdio"
],
"env": {
"DATABASE_URL": "<YOUR_DATABASE_URL>",
"MIDPLANE_POLICY_FILE": "<YOUR_MIDPLANE_POLICY_FILE>",
"DB_PATH": "<YOUR_DB_PATH>",
"MIDPLANE_TELEMETRY": "<YOUR_MIDPLANE_TELEMETRY>",
"PORT": "<YOUR_PORT>"
}
}
}
}claude mcp add midplane --env DATABASE_URL=<YOUR_DATABASE_URL> --env MIDPLANE_POLICY_FILE=<YOUR_MIDPLANE_POLICY_FILE> --env DB_PATH=<YOUR_DB_PATH> --env MIDPLANE_TELEMETRY=<YOUR_MIDPLANE_TELEMETRY> --env PORT=<YOUR_PORT> -- npx -y midplane server --stdioRelated MCP servers
Control a real Chrome browser to complete any task: fill forms, extract data, book flights.
World Monitor
Live global intelligence: real-time markets, conflicts, country risk, chokepoints, energy. 39 tools.
Netdata
Real-time infrastructure monitoring with metrics, logs, alerts, and ML-based anomaly detection.
Trending hip-hop artist momentum scores across four cultural dimensions.
AI orchestration with hive-mind swarms, neural networks, and 87 MCP tools for enterprise dev.
Scrapling MCP Server
Give your AI agent stealth web scraping with Cloudflare bypass and CSS selection, powered by Scrapling.