How to Configure Windsurf CockroachDB MCP Server

Published
Length
3 min read

Luis Felipe Dias

All posts

You set up a windsurf cockroachdb mcp server by adding the database bridge to your local editor file. Then you pass your database login details so the coding agent can run queries. Teams often use a shared admin role to get the link working fast. This broad role lets the agent read sensitive rows or drop tables by mistake. A safer setup limits what the agent can run and masks sensitive fields in flight. How a windsurf cockroachdb mcp server works in practice Cognition renamed Windsurf to Devi

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

You set up a windsurf cockroachdb mcp server by adding the database bridge to your local editor file. Then you pass your database login details so the coding agent can run queries. Teams often use a shared admin role to get the link working fast. This broad role lets the agent read sensitive rows or drop tables by mistake. A safer setup limits what the agent can run and masks sensitive fields in flight.

How a windsurf cockroachdb mcp server works in practice

Cognition renamed Windsurf to Devin Desktop in June 2026. The app keeps the same editor features and still runs the Cascade agent. Cascade can run terminal commands on its own when you give it permission. It opens a dedicated shell on your machine that loads your local profile. Any keys and shell variables in your profile are open to the agent.

To link CockroachDB, the Cascade agent reads your local MCP settings file. This file tells the editor how to start the database server process. The local process logs in to your CockroachDB cluster with a database user and password. Once the link is active, Cascade sends tool calls to the server process. The server turns those calls into SQL queries and sends them to your cluster. CockroachDB runs the statements and sends the raw rows back to the editor.

What the native setup solves and what it leaves open

This native link solves a major workflow problem for developers. Your coding agent can inspect table schemas and test queries right from the editor. You do not need to copy and paste table definitions into the chat window. Database roles and network rules control which cluster the local process can reach. They also check that the login key is valid when the session starts.

Still, the native setup leaves a wide gap during active sessions. Static database roles decide who logs in, not what each query does in flight. If the role can write data, the agent can alter or delete live rows. If the role can read customer tables, the cluster returns raw rows to the agent. Those results often contain emails, phone numbers, card numbers, or national IDs. Local shell keys also stay on engineer laptops with no central log of agent queries.

Kubernetes API Server Access + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Why teams put a control layer in front of database agents

Security and platform teams need control over every query an agent sends. Instead of giving the local MCP server a direct database key, they route traffic through a central proxy. The engineer logs in with their work identity instead of storing a static database password. Every SQL statement from the agent passes through one check point before reaching CockroachDB.

At this check point, teams can block risky commands or pause them for peer review. Read queries can run right away while schema changes wait for a human click. As results come back from CockroachDB, data masking rewrites matched fields in results. It replaces emails, phone numbers, and card numbers before the agent reads the output. You also get a full log of every query tied to the user who ran the agent.

Add runtime guardrails and masking beside your databases and APIs

Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.

Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.

Frequently asked questions

Did Windsurf change its name to Devin Desktop?

Yes, Cognition renamed Windsurf to Devin Desktop on June 2, 2026. The editor keeps the same features, and its Cascade agent still uses the same local MCP setup.

Can the Cascade agent read keys from my local shell?

Yes, Cascade runs commands in a dedicated terminal that loads your shell profile. Any database passwords or keys exported in your shell profile are open to the agent.

How do we stop the agent from reading real customer data?

Put a proxy with dynamic data masking between the MCP server and CockroachDB. Masking rewrites matched fields like emails, phone numbers, and card numbers in query results.

The query runs. The emails stay hidden.