dataclaw.sh

Give local AI agentsscoped database access.

DataClaw is a localhost-only server that connects Claude Code, Cursor, and other MCP clients to PostgreSQL or SQL Server — with per-agent keys, approved queries, and no public surface.

~/install.sh
$

macOS · Linux · Windows/press Enter to copy

// capabilities

A small, explicit surface.

Four guarantees. Nothing hidden, nothing phoning home.

01

Localhost-only

Binds to 127.0.0.1. Never exposed to the network. Your database credentials stay on your machine.

02

MCP over HTTP

Exposes query, execute, list_queries, and execute_query through a streamable-http MCP endpoint.

03

Per-agent keys

Create named agents with individual API keys. Toggle raw query access. Scope to approved queries only.

04

Approved queries

Expose the SQL you trust. Agents run named queries with parameters — no raw statements required.

// how it works

From install to MCP in four lines.

~/run
$dataclaw
==>Starting DataClaw on 127.0.0.1:18790
==>SQLite store at ~/.dataclaw/dataclaw.db
==>Open http://127.0.0.1:18790 to configure
==>MCP endpoint: http://127.0.0.1:18790/mcp
  1. 01.Install the binary with the one-liner above.
  2. 02.Run dataclaw. Configure a datasource in the browser.
  3. 03.Create an agent — get its API key and MCP snippet.
  4. 04.Drop the snippet into Claude Code, Cursor, or any MCP client.
mcp config snippet
{
  "mcpServers": {
    "warehouse-analyst-123456": {
      "url": "http://127.0.0.1:18790/mcp",
      "transport": "streamable-http",
      "headers": {
        "Authorization": "Bearer ${DATACLAW_API_KEY}"
      }
    }
  }
}
Databases
PostgreSQL · SQL Server
Runs on
macOS · Linux · Windows
Default port
127.0.0.1:18790
Data dir
~/.dataclaw
Requires
Go 1.25+ to build
License
MIT

Ready in under a minute.

Install the binary, open the browser, plug an agent in.

~/install.sh
$curl -fsSL https://dataclaw.sh/install.sh | sh

made by ekaya·MIT·github