New

v1.4 · Safer sign-in for hosted connections

Plug AI into your database.
Without the risk.

Socket connects Claude, ChatGPT or Cursor to your Postgres database. Your team asks questions in plain English. The AI can read the data, but it can’t change or leak it.

Works with Postgres 13–17

Read-only by default

mcp.socket.ai/northwind/queries

Northwind

Overview

Queries

Approvals

2

Tools

Audit log

Access

Settings

prod-replica

Read-only · Postgres 16

Queries

Last 24 hours · 1,284 calls from 3 clients

All clients

Export

Queries

1,284

+12% vs yesterday

p50 latency

38 ms

p95 212 ms

Writes

0

Read-only mode

Pending approvals

2

Oldest 14 min

Time

Client

Tool

Statement

Rows

Latency

Status

14:02:11

Claude

run_query

select plan, count(*) …

3

41 ms

OK

14:01:56

Cursor

describe_table

events

1

12 ms

OK

13:58:40

ChatGPT

sample_rows

users · PII masked

5

23 ms

Masked

13:57:02

Claude

explain_query

select * from orders …

—

9 ms

OK

13:52:19

Cursor

propose_migration

create index on events …

—

—

Needs approval

13:49:33

Claude

find_slow_queries

pg_stat_statements

10

64 ms

OK

13:41:07

ChatGPT

list_tables

public, billing

42

7 ms

OK

Works with the AI tools your team already uses

Claude

ChatGPT

Cursor

VS Code

Raycast

Supabase

Ready-made AI actions

8
8
8

Look up, explain and sample.

Rows of your data stored

0
0
0

Streamed to you, never saved.

Max time per query

15 s
15 s
15 s

Most answers come back in 38 ms.

Install to first answer

< 2 min
< 2 min
< 2 min

Install, connect, then ask.

01 / Get started

Set up in three steps.

It runs next to your AI tool. Nothing new to host or maintain.

From install to first answer.

Choose your AI tool and paste one snippet.

1

Create a read-only login

A database user that can only read the tables you choose.

create role socket login

password '…' in role readers;

2

Connect Socket

Run one command, or paste your Socket Cloud link.

npx -y @socketmcp/server init

3

Ask in plain English

The AI writes the query for you, and you can see exactly what it ran.

“How many trials converted last month?”

From install to first answer.

Choose your AI tool and paste one snippet.

1

Create a read-only login

A database user that can only read the tables you choose.

create role socket login

password '…' in role readers;

2

Connect Socket

Run one command, or paste your Socket Cloud link.

npx -y @socketmcp/server init

3

Ask in plain English

The AI writes the query for you, and you can see exactly what it ran.

“How many trials converted last month?”

claude_desktop_config.json
{"mcpServers": {"socket": {"command": "npx","args": ["-y", "@socketmcp/server", "--read-only"],"env": { "DATABASE_URL": "postgres://…" }}}}

Restart Claude Desktop. Socket appears under Connectors.

03 / Safety

Safe without extra setup.

Socket enforces the rules itself, so the AI can't talk its way around them.

Read-only access

The AI can look at your data, but it can never edit or delete it.

Private data hidden

Emails, names and phone numbers are blurred before the AI sees them.

A person approves changes

Any change to your database waits until a teammate says yes.

Built-in limits

Queries stop after 15 seconds and return at most 200 rows.

A record of everything

See every question, the query it ran, who asked and how long it took.

Runs where you want

On your laptop, on your own servers, or hosted by us.

04 / See it work

One question, answered safely.

On the left, the chat. On the right, everything Socket checked and recorded.

Churn by plan

Claude · Opus

socket · prod-replica

Which plan has the highest churn this quarter?

socket · describe_table

read-only · 38 ms

describe_table({ table: subscriptions })

plan · status · canceled_at · started_at

socket · run_query

read-only · 38 ms

select plan, round(100.0 * count(*) filter (where canceled_at is not null) / count(*), 1) as churn

from subscriptions where started_at >= '2026-10-01' group by plan;

starter 6.8 · team 3.1 · business 1.4

Claude

Churn this quarter

3 rows · 41 ms

Starter

6.8%

Team

3.1%

Business

1.4%

Starter has the highest churn this quarter at 6.8%, more than double Team (3.1%). Business is lowest at 1.4%. Want me to break Starter down by signup month?

Break Starter down by signup month

Audit log

session 7f3a

14:02:09

describe_table

subscriptions · 4 columns

12 ms

14:02:10

run_query

1 statement · 3 rows

41 ms

14:02:11

response

Answer returned to Claude

—

Checks passed

Read-only transaction

Schema allowed: billing

No PII columns in result

3 of 200 max rows

Under 15 s timeout (53 ms)

How Socket checks every request

“We connected Claude to production in an afternoon. The security review took one meeting.”

Maya Okafor

Staff Engineer, Northwind Analytics

Open source · MIT

Connect your database in two minutes.

Free if you run it yourself. Hosted plans from $19 a month.

Create a free website with Framer, the website builder loved by startups, designers and agencies.