Skip to content
Working in development builds

AI assistants that operate your databases, through your guardrails

ElastiCluster’s MCP server lets Claude Code, Cursor, Codex, VS Code and other MCP clients inspect clusters, diagnose problems and make changes, with every API operation apart from a short list of decisions only people make. Assistants get no back door and no exemption: they use the same plans, policies and audit log as people, within limits you set per environment.
Connect an assistant for Claude Code, step 2 of 4: choose read-only, propose changes or operate, then the project and environments; the side panel lists the choices and states that assistants never approve their own changes and every call is audited.
Connecting Claude Code: the access step, with read-only recommended. Interactive demo, simulated data. Open this screen in the demo

What an assistant can do

The MCP server exposes tools to list and inspect clusters, read metrics, logs and events, diagnose a cluster from its health report, run read-only queries, and prepare plans for changes. Every REST operation is reachable through MCP as well, with identical permission checks, so an assistant can do whatever its token allows and nothing more.

Typical requests:

  • “Why is orders-db slow this afternoon?”
  • “Add a replica to sessions in eu-1c and show me the plan.”
  • “Which clusters have restore drills overdue?”
  • “Prepare a minor upgrade for every staging PostgreSQL cluster.”

There is deliberately no tool for approving plans, no shell on the servers, and no way to obtain superuser or system credentials.

Limits per environment

Each environment decides how far assistants may go, and a token’s effective level is the lowest of its own level, the environment’s limit and the instance-wide limit. The defaults:

SettingProductionStagingDevelopment
Most an assistant may apply on its ownNothing (propose only)Up to medium riskEverything
Write SQLOffOffOn
Reveal secretsOffOffOn
Submit scripts and init filesOffOffOn

Only people can turn these switches on. Turning one on in production takes an instance admin in sudo mode and notifies the project. An instance admin can also forbid full control everywhere with one setting.

AI settings: the instance policy that allows full control, notes that tokens cannot turn switches on and that production is loud, and a table of switches per environment, with production set to propose and switches off, staging to operate and development to unrestricted with switches on.
The AI switches per environment. Interactive demo, simulated data. Open this screen in the demo

Autonomy levels

A token’s autonomy decides what it may apply without a person:

LevelWhat it allows
observeRead only. The default in Connect an assistant.
proposePrepares plans; a person applies them. The default for AI tokens created without a preset.
operate-lowApplies low-risk plans on its own.
operateApplies plans up to medium risk.
fullApplies plans up to high risk; critical plans still need a person.
unrestrictedApplies anything the environment allows, still with confirmation for high and critical plans.

What always needs a person

  • Approving plans and approving new servers. Approvals are always human.
  • With four-eyes on, the owner of a token can’t approve that token’s requests either.
  • Granting elevated database privileges or loosening a production policy, at any autonomy level.
  • Sign-in and two-factor changes, turning deletion protection off, and emergency access.
  • Turning on full-control switches and the kill switches.

Built to contain mistakes and prompt injection

A prompt-injected or confused assistant is part of the threat model. Tool output is marked as untrusted, and no output can cause a write by itself; containment comes from autonomy levels, policies and human approvals, not from asking the model to behave.

  • Read-only means read-only: queries run under a database role that cannot write, on a replica when the cluster has one, with a 5-second timeout and row limits. It is enforced by the database, not by parsing SQL, and it is switched on per cluster.
  • Rate limits per token, such as 20 applies an hour and one cluster per plan, limit how much any single token can change.
  • Kill switches: one stops every AI write instantly while reads continue; another closes the MCP endpoint altogether.
  • Everything is audited, with an AI activity page that shows each call, its token and its result.
  • Tested against injection: an injection test suite shows that no write happens without a plan and a policy decision, and in the project’s tests Claude Code and Codex ignored an instruction planted in a log line.

Connecting an assistant

In the console, Connect an assistant walks through four steps: choose the assistant, choose its access (read-only is recommended and preselected), install it, and verify that its first call arrives. It shows the effective permissions per environment before the token exists. From the terminal, one command does the same:

ecl mcp setup claude-code --preset read-only

Supported presets are read-only, propose, operate and full-control, for claude-code, cursor, vscode, codex and claude-desktop. Tokens expire after 30 days by default. Assistants authenticate with a personal token in the first version; OAuth sign-in, needed for hosted connectors such as claude.ai, is planned for v1.1.

Status

The MCP server, the autonomy levels and limits, the kill switches, the AI pages in the console and assistant setup work in development builds and ship in v0.3, which is not published yet. In the project’s tests, Claude Code and Codex completed seven scenarios against a development stack with real PostgreSQL clusters; the setups for Cursor, VS Code and Claude Desktop are generated from the vendors’ documented formats and have not been tried in those applications yet. In the demo, the “AI agent requests a change” scenario sends a high-risk plan from an assistant to the approvals inbox, where you can approve or reject it.

Try the console before it ships

The interactive demo runs the whole console on simulated data. Trigger a failover, approve an AI assistant’s plan, restore a backup to a point in time. Nothing to install.