Skip to content

MCP bridge & coding agents ​

Ultimate

SqlKit embeds a local HTTP MCP Bridge (built with Rust and Axum) so external coding assistants such as Claude Code, OpenAI Codex, Cursor, Windsurf, and OpenCode can query permitted SqlKit connections through Data Studio Agent (@geek-fun/data-studio-mcp).

LOCAL MACHINE · 127.0.0.1 Credentials stay in SqlKit
Coding Agent
Claude Code · Codex · Cursor · Windsurf · OpenCode
Claude CodeCodexCursorWindsurf +10
Data Studio Agent
npx @geek-fun/data-studio-mcp
Stdio Router
SqlKit MCP Bridge
Per-connection AI policy · SQL AST & CQL guard
Policy + AST Guard
Your Database
Local, cloud, or private VPC across 68+ SQL engines
PostgreSQLMySQLSQL ServerOracle +64
Data Studio Agent runs locally over stdio and routes every database tool call through SqlKit's embedded MCP Bridge for policy and AST checks.

Your coding client never sees database passwords, SSH keys, or TLS certificates. SqlKit handles connectivity, policy checks, and AST safety locally on your machine.

Prepare SqlKit ​

Verify Ultimate & saved connections ​

Open SqlKit, sign in with Ultimate (or an active 7-day trial), and confirm you have at least one tested connection saved under Connections.

Confirm the MCP Bridge is running ​

Open Settings → MCP Bridge and verify the status shows Running on port <port>. Use the restart button if needed. When Ultimate is active, the bridge starts automatically on launch (controlled by Auto-start) and stays running in the system tray or menu bar after you close the main window.

SqlKit Settings MCP Bridge tab showing Running on port 9121, Auto-start enabled, one-click setup commands for Claude Code, Codex, Cursor, and Other clients, and Default AI permissions
Settings → MCP Bridge shows the running local port, one-click client registration snippets, active client status, and Default AI permissions.

Set default & per-connection AI permissions ​

In Settings → MCP Bridge → Default AI permissions, start with Read (schema inspection and read-only queries). Check that the target connection's AI permissions also allow reading. Connections set to No Access do not appear in MCP discovery.

Check Node.js (npx) availability ​

Confirm Node.js 18+ and npm are installed on the same machine where your coding agent runs:

bash
npx --version

Register Data Studio Agent ​

Choose the configuration for your client (the same snippets are in Settings → MCP Bridge). npx -y fetches @geek-fun/data-studio-mcp on demand.

bash
codex mcp add data-studio -- npx -y @geek-fun/data-studio-mcp
bash
claude mcp add --transport stdio data-studio -- npx -y @geek-fun/data-studio-mcp
json
{
  "mcpServers": {
    "data-studio": {
      "command": "npx",
      "args": ["-y", "@geek-fun/data-studio-mcp"]
    }
  }
}
  • Codex: run codex mcp list to verify the data-studio entry.
  • Claude Code: run /mcp inside a session to check server status.
  • Cursor: add the JSON block to .cursor/mcp.json (project) or ~/.cursor/mcp.json (user), merging into an existing mcpServers object if present, then reload MCP servers.
  • Windsurf, OpenCode, or other stdio MCP clients: configure command npx with args ["-y", "@geek-fun/data-studio-mcp"], or see the Data Studio Agent quick start.

Verify the connection & monitor sessions ​

  1. In your coding agent, ask: "List the accessible SqlKit connections, then list the tables in <your-dev-connection> without modifying any data."
  2. Confirm the tool returns safe connection metadata (ID, name, database type, never credentials) followed by the table list.
  3. Open Settings → MCP Bridge (or click SqlKit's system tray or menu bar icon) to see active client sessions (client name, version, 30-second heartbeat TTL) and copy the Bridge URL.

Registered MCP tools (25 capabilities) ​

All 25 tools are shared across the MCP Bridge, Agentic Data Studio, and the Queries AI Assistant sidebar, split by risk tier:

CategoryToolsPermission required
Discovery (1)sqlkit__list_connections (returns id, name, type only; never passwords)At least one allowed action
Read & Schema Inspection (16)sqlkit__execute_query (AST-verified read-only SELECT/SHOW/EXPLAIN), sqlkit__list_databases, sqlkit__list_schemas, sqlkit__list_tables, sqlkit__get_schema, sqlkit__describe_table, sqlkit__explain_query, sqlkit__list_indexes, sqlkit__list_foreign_keys, sqlkit__list_views, sqlkit__list_procedures, sqlkit__list_functions, sqlkit__list_triggers, sqlkit__get_object_ddl, sqlkit__get_table_info, sqlkit__get_foreign_keysRead
Write SQL (1)sqlkit__execute_write (INSERT, UPDATE, MERGE)Create / Update
Destructive SQL (2)sqlkit__execute_delete (DELETE, TRUNCATE), sqlkit__execute_ddl (CREATE, ALTER, DROP)Delete / Manage
DBA & Operations (5)sqlkit__list_sessions (Read), sqlkit__get_slow_queries (Read), sqlkit__kill_session (Manage), sqlkit__grant_privilege (Manage), sqlkit__revoke_privilege (Manage)Read or Manage

See the Data Studio Agent tool reference for full parameter schemas.

Troubleshoot the bridge ​

SymptomWhat to check
Coding client cannot launch the serverConfirm npx is on the PATH visible to your IDE or CLI and that npm can download @geek-fun/data-studio-mcp. Reload the client after changing MCP config.
MCP server starts, but reports SqlKit unavailableMake sure SqlKit is running (window open or in the system tray), Ultimate is active, and Settings → MCP Bridge shows Running on port. Both the coding client and SqlKit must run on the same machine for local discovery.
A saved connection is missing from list_connectionsCheck the connection's effective AI permissions. MCP discovery lists only connections with at least one permitted action.
A query or schema change is deniedCheck the connection's AI policy (Create, Update, Delete, Manage) and confirm the database login itself has the required privileges.

Next steps ​

How AST write guards and per-connection policies protect production.

Step-by-step blog guide with screenshots for connecting OpenAI Codex.