Integration · VS Code, IntelliJ IDEA & Universal MCP · Open Source (Apache-2.0) & Cloud

VS Code, JetBrains & Any IDE + Claix: The Best Way to Connect Your Editor to Your SQL Database
Every modern IDE now ships an autonomous agent loop — from GitHub Copilot Agent Mode in Visual Studio Code and JetBrains AI Assistant in IntelliJ IDEA, PyCharm, WebStorm, and DataGrip to Windsurf, Zed, Cline, and Roo Code. Giving your IDE real visibility into PostgreSQL, MySQL, or MariaDB eliminates hallucinated column names, broken joins, and blind debugging. Handing that same IDE agent an unrestricted database connection turns a routine prompt into a schema or data incident.
Claix speaks the open Model Context Protocol (stdio and Streamable HTTP) and sits between your editor's AI agent and your database with row-scoped reads and a deny-by-default SQL firewall that inspects actual affected rows in milliseconds — with zero model calls at check time. Install Claix Core (Apache-2.0) on your workstation, or standardize .vscode/mcp.json and IDE policies across the org with Claix Cloud.
The problem
Why traditional IDE database extensions and raw MCP servers fall short
Developers wiring AI assistants inside VS Code or JetBrains to SQL databases usually hit three walls.
Human database panels were not built for autonomous agents. Classic tools (SQLTools in VS Code or the Database tool window in IntelliJ) assume a human clicks every query. Wiring agent mode with auto-approve to those credentials gives the model standing authority to mutate or drop live tables.
Raw read-only MCP servers still leak sensitive data. Generic Postgres and MySQL MCP servers expose every table and column your database user can see. One broad SELECT * or prompt injection inside seed text can pull sensitive columns or cross-customer rows into the chat context.
Prompt instructions are not an access control layer. Writing "Never run destructive SQL" inside .github/copilot-instructions.md does not stop a confused agent when .env still points at a remote staging or production tunnel.
How Claix helps
Hard SQL boundaries outside the prompt — in every IDE
Claix replaces hope with a deterministic engine you can run locally (Core) or hosted (Cloud).
Scoped retrieval per portal or role
Reads always pass through named Claix agents (claix_retrieve_ask). Row scope filters travel with every query automatically, so your editor only ever reads the tenant slice or tables you exposed.
Deny-by-default SQL firewall
A statement passes only when an active permission covers that exact operation. A permission written for one targeted DELETE never covers DROP, ALTER, TRUNCATE, or GRANT. Without an explicit permission, writes are denied.
Session-escape immunity
Plain SELECT and transaction statements (BEGIN, COMMIT) pass, while session mutations that could turn security off — switching roles or disabling RLS — cannot be permitted.
Affected-row preflight via read-only role
Connecting through a read-only claix_agent role, Claix parses the SQL, inspects the exact rows a proposed write would touch, and returns allow, deny, or needs_approval without running the write.
Core vs Cloud
Claix Core on your workstation vs Claix Cloud across your team
Because Core and Cloud run the same SQL check and expose the same MCP tools, you can match how your team works without editor lock-in.
| How your team codes | Claix Core (Open Source · Workstation / Docker) | Claix Cloud (Hosted · Org-wide governance) |
|---|---|---|
| Best fit | Individual developers, polyglot freelancers, local Docker stacks, private VPCs, YAML policies in Git | Engineering teams using mixed IDEs (VS Code + IntelliJ + Cursor), shared staging/prod DBs, Slack sign-off |
| Runtime & license | Open source (Apache-2.0), TypeScript on Node.js 22+ (@claix-dev/core) or Docker (ghcr.io/claix-dev/claix-core). Zero signup | Hosted by Claix at claix.dev with claix_agent passwords stored in Cloud Vault. Nothing local to install |
| IDE MCP transport | Local stdio (npx -y @claix-dev/core mcp) or local HTTP on port 8787 | Remote Streamable HTTP (https://claix.dev/mcp) authenticated per workspace |
| When needs_approval triggers | Returns needs_approval directly into the IDE chat so the agent halts before applying the SQL | Routes the statement straight to Slack so a tech lead or database owner can approve it in one click |
| Audit across IDEs | Local append-only traces.jsonl on each developer's machine | Central company audit log capturing checks and reads across every IDE seat and workspace |
| Managing rules | Edit YAML files locally and verify against your live schema with claix validate | Visual policy editor and isolated workspaces in the Cloud dashboard — update team rules instantly |
When to choose which
Why Core locally — and why mixed-IDE teams standardize on Cloud
Why run open-source Claix Core locally
Even solo on localhost, autonomous agent loops can wipe seeded tables, drop columns mid-refactor, or hit a forgotten remote host in .env. Core needs no account, keeps all database traffic on your machine, and checks every route and permission against your live catalog via claix validate.
Why teams standardize on Claix Cloud
Half the company uses VS Code, several engineers live in IntelliJ or PyCharm, and others switch terminal agents. Distributing database passwords and keeping local YAML synchronized across laptops is fragile. Cloud gives every IDE a single governed endpoint (https://claix.dev/mcp), stores credentials in Cloud Vault, routes sensitive mutations to Slack, and unifies audit logs.
VS Code
Setup in Visual Studio Code (GitHub Copilot Agent Mode)
VS Code natively supports MCP servers inside GitHub Copilot Agent Mode using .vscode/mcp.json (top-level "servers" key and encrypted "inputs" prompts so secrets never touch Git) as well as one-click vscode:mcp/install links.
- 01
Initialize and validate your perimeter
With Node.js 22+ installed, scaffold and validate your ./claix YAML folder against your PostgreSQL, MySQL, or MariaDB catalog with a read-only claix_agent role.
- 02
Commit .vscode/mcp.json with secure inputs (Core)
Share the setup with teammates while letting VS Code prompt securely for the local API key and claix_agent password on first start — no secrets in Git.
- 03
Or point Agent Mode at Claix Cloud
Use an HTTP server entry for https://claix.dev/mcp with a Bearer workspace API key via inputs — zero local runtime or database passwords on developer laptops.
VS Code snippets
.vscode/mcp.json for Claix Core and Claix Cloud
Prefer inputs with password: true so developers are prompted securely instead of hardcoding keys. Optional: clone claix-core for a one-minute Docker quickstart before wiring the IDE.
Init & validate
npx -y @claix-dev/core init npx -y @claix-dev/core validate
Docker quickstart
git clone https://github.com/claix-dev/claix-core cd claix-core docker compose up -d --build --wait
.vscode/mcp.json (Core · stdio)
{
"inputs": [
{
"type": "promptString",
"id": "claix-local-key",
"description": "Local Claix Core API Key",
"password": true
},
{
"type": "promptString",
"id": "claix-db-password",
"description": "Read-only claix_agent database password",
"password": true
}
],
"servers": {
"claix": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@claix-dev/core", "mcp"],
"env": {
"CLAIX_API_KEY": "${input:claix-local-key}",
"CLAIX_CONFIG_DIR": "${workspaceFolder}/claix",
"CLAIX_DB_ENGINE": "postgres",
"CLAIX_DB_HOST": "127.0.0.1",
"CLAIX_DB_NAME": "app",
"CLAIX_DB_USER": "claix_agent",
"CLAIX_DB_PASSWORD": "${input:claix-db-password}"
}
}
}
}.vscode/mcp.json (Cloud · HTTP)
{
"inputs": [
{
"type": "promptString",
"id": "claix-cloud-key",
"description": "Your Claix Cloud Workspace API Key",
"password": true
}
],
"servers": {
"claix": {
"type": "http",
"url": "https://claix.dev/mcp",
"headers": {
"Authorization": "Bearer ${input:claix-cloud-key}"
}
}
}
}JetBrains
Setup in IntelliJ IDEA & JetBrains IDEs (PyCharm, WebStorm, GoLand, DataGrip)
All JetBrains IDEs (2026.1+ with JetBrains AI Assistant) support external MCP servers under Settings → Tools → AI Assistant → Model Context Protocol (MCP). Click Add (+), choose STDIO, set scope to Project or Global, and paste the Claix Core mcpServers block.
Using Claix Cloud in JetBrains: if you use the GitHub Copilot plugin inside IntelliJ, reuse the same servers HTTP config with headers from the VS Code Cloud snippet. If JetBrains AI Assistant's remote URL form does not expose a custom Authorization header yet, connect cleanly via mcp-remote over STDIO.
JetBrains MCP (Core · STDIO)
{
"mcpServers": {
"claix": {
"command": "npx",
"args": ["-y", "@claix-dev/core", "mcp"],
"env": {
"CLAIX_API_KEY": "replace-with-local-key",
"CLAIX_CONFIG_DIR": "./claix",
"CLAIX_DB_ENGINE": "postgres",
"CLAIX_DB_HOST": "127.0.0.1",
"CLAIX_DB_NAME": "app",
"CLAIX_DB_USER": "claix_agent",
"CLAIX_DB_PASSWORD": "replace-with-readonly-password"
}
}
}
}JetBrains MCP (Cloud · mcp-remote)
{
"mcpServers": {
"claix-cloud": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://claix.dev/mcp",
"--header",
"Authorization: Bearer YOUR_CLAIX_CLOUD_API_KEY"
]
}
}
}Universal MCP
Windsurf, Zed, Cline, Roo Code & any other MCP client
Any editor or extension that accepts the standard MCP configuration format connects to Claix Core (command: npx, args: -y @claix-dev/core mcp) or Claix Cloud (https://claix.dev/mcp) without adapters or custom plugins.
- Windsurf (~/.codeium/windsurf/mcp_config.json) & Cline / Roo Code (cline_mcp_settings.json): paste the same mcpServers JSON block (stdio for Core, or https://claix.dev/mcp with Authorization: Bearer … for Cloud).
- Docker-only environments (no local Node.js): run ghcr.io/claix-dev/claix-core via Docker Compose and point any IDE's HTTP MCP client at http://127.0.0.1:8787/mcp with header x-api-key.
Policy
Workspace instructions for Copilot & any IDE
Add these lines to .github/copilot-instructions.md (read by VS Code Copilot and JetBrains Copilot) and AGENTS.md (read across modern agentic IDEs). Keep superuser write credentials out of the agent's terminal environment.
.github/copilot-instructions.md / AGENTS.md
## Database Access Policy (Claix MCP) - Never run raw `psql`, `mysql`, or destructive ORM `--force` / `--accept-data-loss` commands in the terminal. - Use `claix_retrieve_ask` on the `claix` MCP server whenever you need database rows so route and row scopes apply. - Before proposing or applying any `INSERT`, `UPDATE`, `DELETE`, or schema statement, call `claix_guard_check`. - Proceed ONLY when `claix_guard_check` returns `allow`. Stop immediately and show the reason on `deny` or `needs_approval`.
Grow into Cloud
Start in local YAML, Import into Claix Cloud when your team grows
Starting on Claix Core on one laptop never traps your configuration. When more developers join across VS Code, IntelliJ, or Cursor and you want Slack approvals, workspaces, and central audit logs, copy your Core setup into Cloud at /dashboard/database-connection.
- 01
Gather Core files
Collect your Core .env (CLAIX_DB_HOST, PORT, NAME, USER=claix_agent, PASSWORD, and SSL=require or verify-full), plus claix/guards, routes, agents YAML, and optionally traces.jsonl (up to 8 MB; Cloud imports the newest 2,000 events).
- 02
Import as workspace owner
Sign in at /dashboard/database-connection and click Import from Core. Upload your files and choose Import into Cloud. Any error before the connection saves aborts cleanly and lists every issue by filename.
- 03
Cloud Vault and Slack for every IDE
Your database password moves into Cloud Vault, deny-by-default permissions and row scopes stay active, and every IDE can connect via .vscode/mcp.json or JetBrains MCP with Slack approvals ready out of the box.
Frequently asked questions
- Do I need a proprietary VS Code or JetBrains plugin to use Claix?
- No. Claix connects natively over the Model Context Protocol (MCP) supported by Visual Studio Code (GitHub Copilot Agent Mode), IntelliJ IDEA, PyCharm, WebStorm, Windsurf, Zed, and Cline using either open-source Claix Core (@claix-dev/core) or hosted Claix Cloud (https://claix.dev/mcp).
- Does Claix call an LLM when checking SQL statements inside VS Code or IntelliJ?
- No. Deciding whether a SQL statement may run never calls an AI model in either Claix Core or Claix Cloud. Claix parses the statement deterministically, inspects affected rows through a read-only database role, and returns allow, deny, or needs approval in milliseconds.
- Should developers use Claix Core or Claix Cloud in VS Code and JetBrains IDEs?
- Use Claix Core (Apache-2.0) to run the open-source SQL firewall on your own workstation or container via npx or Docker with YAML permissions in Git. Use Claix Cloud when engineering teams need shared workspaces, Cloud Vault secret storage, Slack approvals, and a central company audit log across all IDEs.
- Can I migrate my local Claix Core setup from VS Code to Claix Cloud later?
- Yes. Workspace owners can use Import from Core under /dashboard/database-connection to import their database connection (claix_agent with TLS require or verify-full), YAML guards, routes, agents, and up to 8 MB (newest 2,000 events) of traces.jsonl into Claix Cloud.
One MCP perimeter for every IDE on the team
Start with Claix Core (Apache-2.0) in .vscode/mcp.json or JetBrains STDIO, then Import from Core when you need Slack approvals, Cloud Vault, and a central audit log. Same SQL check everywhere.