MCP Server

Simcha DB Studio serves a Model Context Protocol (MCP) server, so AI clients such as Claude Code, Cursor, VS Code and Claude Desktop can work with DB DevOps and the IDE. Each tool calls one endpoint of the Simcha DB Studio API as the person whose personal API token the client holds: their role, sections and seat, the license and the rate limits apply exactly as they do in the app, and every call is in the Audit Log.

Turn it on

The MCP server is off until an admin turns it on. In Settings → MCP Server, click the switch: it turns the server on or off at once and says Saved, with no other step. Tool groups are different: tick or clear them, then click Save; until you do, the card says the changes are not saved yet, and Undo puts them back. The card shows the address clients connect to, https://<your server>/api/mcp, built from APP_PUBLIC_URL. Everyone else sees whether it is on and which groups it offers.

Tool groups

The tools are grouped like the product. On by default: Migration Scripts, Releases, Executions, Approvals, Audit Log. An admin can also turn on: Release Pipelines, Environments and Groupings, Connections, Repo Sources, Discovery, Schema Ops and Seed Data, Compliance Rules, Metrics, IDE, AI Agents, Notifications, Users and Roles, Settings.

A tool is named for its group and what it does, for example releases_promote, and each group's tools are listed with their inputs on its API Endpoints page. A client gets only the tools its person's role allows: someone who is not an approver gets no Audit Log tools, and only a release manager or admin gets the tools that run scripts.

Lookups

Each group also brings the lookups its tools need, so a client can fill their inputs without an admin turning on more groups. With only the default groups on, a client can list environments, DB DevOps connections, the databases on a connection, groupings, release pipelines, scripts and releases: enough to create a script for an environment and a connection, put scripts in a release on a pipeline and run them. A lookup only reads; the person's role and token still decide whether it is offered, and it is offered only while a group that needs it is on. The MCP Server card in Settings lists each group's lookups and counts them in the tools that are on.

GroupLookups it brings
Migration Scriptsenvironments_list, connections_devops_list, connections_devops_by_environment, connections_devops_databases
Releasesscripts_list, environments_list, groupings_list, pipelines_list, pipelines_get
Release Pipelinesenvironments_list, groupings_list, connections_devops_list, connections_devops_by_environment
Executionsscripts_list, releases_list, connections_devops_list, connections_devops_databases
Approvalsscripts_list, releases_list, environments_list
Connectionsenvironments_list, groupings_list
Repo Sourcesenvironments_list
Discoveryenvironments_list, groupings_list, connections_devops_list
Schema Ops and Seed Dataconnections_list
Compliance Rulesenvironments_list
IDEconnections_list
AI Agentsconnections_list
Settingsusers_list

What a client is told

When a client connects, the server's instructions name the tool groups that are on, say that the person's role decides what succeeds, and describe how a change goes from script to run, in order: Write the script, Get it approved, Run a single script, Ship it in a release and Follow it. Each step names the tools for it, the inputs that link one step to the next (an environment from environments_list, a connection from connections_devops_by_environment, the script_ids of a release) and the rules that refuse a step: compliance rules, self-approval, approval for an environment and the order of pipeline stages.

The instructions name only tools the token is offered. A step the person's role cannot take names the role that can instead, for example A release manager runs it, so an agent asks the right person rather than trying. A step whose group is off is left out. A read-only token is told it can follow each step but not take one, and gets only the reading steps.

Tokens

Create a personal API token in Settings → API Tokens and give it to the client as Authorization: Bearer sdbs_.... A Read only token gets only the tools that read, and the server refuses anything else it sends. With Run read-only queries in the IDE it also gets the IDE query tools, which run a query only when every statement reads. Authentication & Authorization Internals says exactly what a read-only token can do.

Connect a client

Replace the address with your server's and sdbs_... with the token.

Claude Code

claude mcp add --transport http simcha-db-studio https://dbstudio.example.com/api/mcp \\
  --header "Authorization: Bearer sdbs_..."

Cursor

In .cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project:

{
  "mcpServers": {
    "simcha-db-studio": {
      "url": "https://dbstudio.example.com/api/mcp",
      "headers": { "Authorization": "Bearer sdbs_..." }
    }
  }
}

VS Code

In .vscode/mcp.json; VS Code asks for the token once and keeps it out of the file:

{
  "inputs": [
    { "type": "promptString", "id": "simcha-token", "description": "Simcha DB Studio API token", "password": true }
  ],
  "servers": {
    "simcha-db-studio": {
      "type": "http",
      "url": "https://dbstudio.example.com/api/mcp",
      "headers": { "Authorization": "Bearer ${input:simcha-token}" }
    }
  }
}

Claude Desktop

Claude Desktop adds remote servers as connectors, which sign in with OAuth; Simcha DB Studio does not offer OAuth sign-in yet. Until it does, connect through the open-source mcp-remote bridge in claude_desktop_config.json (it needs Node.js):

{
  "mcpServers": {
    "simcha-db-studio": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://dbstudio.example.com/api/mcp", "--header", "Authorization:${SIMCHA_AUTH}"],
      "env": { "SIMCHA_AUTH": "Bearer sdbs_..." }
    }
  }
}

What a tool returns

The endpoint answersThe tool returns
JSONThe JSON as text
An error (4xx, 5xx)A tool error with the status, the code and the message, for example HTTP 409: The release is running.
A run, release run, rollback or promotionThe run at once, started in the background (wait: false). Follow a single run with executions_get and a run on several databases with executions_batch
More than 60,000 charactersThe first items of its longest list that fit, with a note saying how many of how many it shows. Narrow it with the tool's filters, or its limit and offset inputs where it has them
A fileText files, such as a CSV audit export, as text; other files, such as the evidence zip, as an embedded file of up to 5 MB

Inputs are checked against the tool's schema before anything is called: a missing input, a wrong type or an input the tool does not have is a tool error naming each problem.

Never available through MCP

Signing in and out, registration, MFA, passwords, single sign-on, onboarding, first-run setup, the license, API tokens, health checks, browser error reports and the MCP server's own settings. They stay in the app and the API.

In the Audit Log

Every tool call, reads included, is an MCP tool call succeeded or MCP tool call failed entry (MCP_TOOL_CALL_SUCCEEDED, MCP_TOOL_CALL_FAILED) by the token's owner, with the tool, its group and whether it reads, the inputs with secrets removed, the HTTP status, how long it took and the token's prefix and access. A change a tool makes is also recorded as that change, as when it is made in the app, with via naming the tool. Filter the Audit Log by these actions to see what an AI client did.

Protocol details