ElectricSQL (Sync Engine)

ElectricSQL (Sync Engine) MCP Connector for Claude

A+

Sync Postgres data to your AI agent in real-time using ElectricSQL's HTTP Sync API — fetch shapes, stream updates, and query subsets.

2 tools Official Updated Jun 28, 2026 Official Vinkius Partner

Connect your ElectricSQL sync engine to any AI agent to stream data directly from Postgres into your conversation context. This server leverages the Electric HTTP Sync API to fetch 'shapes' of data efficiently.

What you can do

  • Real-time Sync — Fetch data from Postgres tables with support for initial snapshots and incremental updates using log offsets.
  • Shape Management — Define specific subsets of data (shapes) using SQL-like WHERE clauses and precise column selection.
  • Live Streaming — Enable long-polling or Server-Sent Events (SSE) to keep your agent updated as data changes in the database.
  • Complex Filtering — Use POST-based subset snapshots to handle complex WHERE clauses without hitting URL length limits.
  • Pagination & Limits — Efficiently browse large datasets with built-in limit, offset_rows, and order_by support.

How it works

  1. Subscribe to this server
  2. Provide your Electric Service URL (e.g., your local or cloud Electric endpoint)
  3. Start querying your Postgres data directly from Claude, Cursor, or any MCP client

Who is this for?

  • Developers — build AI-powered tools that need live access to application data without complex backend plumbing.
  • Data Engineers — inspect and sync specific database 'shapes' for analysis or debugging via natural language.
  • Product Teams — monitor real-time system state or user activity directly within the AI chat interface.
postgresreal-time-syncdata-streamingincremental-updateshttp-apidatabase-sync

2 tools expose this connector's capabilities to your AI agent.

get_shape

Use offset=-1 for initial sync. Sync a shape of data out of Postgres via GET

post_shape

Sync a shape of data out of Postgres via POST (Subset Snapshots)

See how to talk to your AI agent using ElectricSQL (Sync Engine).

Sync the 'public.items' table from the beginning using get_shape.

I'm initiating the initial sync for 'public.items' with offset -1. I've retrieved 150 rows. The shape handle is 'items-handle-xyz'. Would you like to see the data or wait for live updates?

Use post_shape to get the first 10 rows of 'orders' where status is 'pending', ordered by date.

Querying 'orders' via POST... I found 10 pending orders. The most recent is Order #502 from today. I've used the limit and order_by parameters as requested.

Start a live sync for the 'messages' table to watch for new entries.

Live sync enabled for 'messages'. I am now long-polling the ElectricSQL engine. I will notify you immediately when new rows are detected in the database.

Use the `get_shape` tool and set the `offset` parameter to `-1`. This triggers ElectricSQL to send the full initial snapshot of the specified table.

Related Connectors