Credentials isolated
Credentials never enter the agent context.
DataPorch is an open-source data-access layer for AI agents. It connects agents to enterprise data through MCP and APIs, with isolated credentials, validated operations, and bounded execution.
Built for the stack you already use
Protect your database from hallucinations
With DataPorch: write operations stop at the access boundary and permitted reads return bounded results.
Credentials never enter the agent context.
Unsafe operations are blocked before execution.
Time, rows, and response size stay within limits.
Safe queries run without manual approval.
Credentials enter the agent context.
Agents inherit database permissions.
Queries run without standard limits.
Human review will be the guardrail.
Connect any MCP-compatible agent. DataPorch controls how every request reaches your databases.
Coding agents, agent frameworks, and any MCP-compatible client connect through DataPorch to PostgreSQL, MySQL, and SQLite.
AI Tools
Controlled data access
Data Sources
Install DataPorch, connect a source, and ask your first question.
Read the quickstart →DataPorch installs as one local binary. Initialize encrypted state, then start the per-user service.
$ go install github.com/adamraziv/dataporch/cmd/dataporch@latest
✓ DataPorch installed
$ dataporch secrets init
✓ Local keys and encrypted stores initialized
$ dataporch run
✓ Healthy at 127.0.0.1:8080
Import a source over the local admin socket. Your agent receives a source ID, never the connection string.
$ dataporch connections import --id finance --kind postgres
connection string: ••••••••••••••
✓ Source tested and stored
DataPorch lets any agent explore your connected databases safely, within the scope you allow. Simply ask your agent anything about your data.
Which customers have overdue invoices?
Thinking...
data_source.listresolved finance
relational_database.list_tablesinspected public
relational_database.queryreturned 12 rows
12 customers have overdue invoices. Acme Labs has the largest outstanding balance at $18,420, followed by Northstar at $12,700.
Ask your agent about your dataWe're looking for teams willing to run DataPorch against real agent workflows, share what works and what doesn't, and help shape what we build next.
DataPorch is an open-source data-access layer for AI agents. It connects agents to enterprise data through MCP and APIs, with isolated credentials, validated operations, and bounded execution. It sits between an agent and a relational database, exposing typed MCP tools for discovery and read-only queries without handing the agent database credentials.
The agent sees configured source IDs, schemas, tables, columns, and query results. Connection strings, DSNs, and secret references stay in DataPorch's local state, and imported connector secrets are encrypted at rest.
DataPorch applies mandatory execution limits, including query time and encoded response size, and limits returned rows by default. Large or truncated results are reported rather than passed through without a bound.
The runtime runs locally by default and listens on 127.0.0.1:8080. Codex and Claude Code plugins connect over local stdio and runtime-only local state; direct HTTP MCP clients can use the authenticated local endpoint.
Direct access puts database credentials and their privileges in the agent's tool layer. DataPorch keeps credentials and secret references inside the local runtime while the agent works with source IDs and database metadata.
Relational queries use read-only database paths, so write statements are rejected by the read-only boundary. Database permissions still define what the configured identity can read, and read-only SQL does not make arbitrary database functions free of side effects.
DataPorch v0.1 supports PostgreSQL, SQLite, and MySQL. It connects to Codex and Claude Code through local plugins, and it also exposes a local HTTP MCP endpoint for other MCP clients.
Install the CLI, initialize local state, start the runtime, import a source, and connect your agent. The quickstart walks through the exact commands for a first bounded query.