Docs / Use PlatypusDB from an agent

← User guide

Use PlatypusDB from an agent

Claude Code, Codex, Cursor and other MCP clients can use your saved connections through PlatypusDB's MCP server. This page is the short path; every tool, limit and setting is in the reference, AGENTS.md.

Connect an agent

  1. Open Settings (Ctrl+,) › Agents › Setup.
  2. Find your client in the list (Claude Desktop, Claude Code, Codex, Cursor, Windsurf, Antigravity, Gemini CLI). Click Install: the app asks, saves a copy of the client's file beside it, and writes the server in it. For a client not listed, copy the entry by hand from the same page.
  3. Restart the client. It starts PlatypusDB itself with --mcp; no window opens, and the app need not be open for reading.

Choose what each connection allows

Settings, Agents, the Security page

  1. Settings › Agents › Security lists your connections. A connection's own form has the same choice, under Agents on its Appearance and safety page.
  2. Choose Off, Read only (the default) or Read and write.

Production and read-only connections are never more than read only: the panel says "Not available: production and read-only connections stay read only." A connection that is new from a shared project starts with Off on your computer.

Limits and masking

Changes wait for you

On a Read and write connection, each change an agent wants to run opens a dialog in the app with the statement, in the editor's colors and laid out on SQL databases (Show it as the agent sent it shows the text that runs, to the letter), the rows the database expects it to change and its plan. Click Refuse (the agent reads your reason), Allow once, or Allow for this session. After five minutes without an answer it is refused, and with the app closed the changes are refused. Settings › Safety › Ask before agents change data turns the questions off.

An agent can also propose, without running anything:

See what agents did

Settings › Agents › Activity lists every tool call by session, with a filter and Export CSV. Their queries are in the history under the agent's name.

Above the list, Summary per agent and session (folded until you open it) adds up the calls the filters select: one row per agent and, under it, one per session, with the period, the calls, the tables read, the rows returned, the changes allowed, the changes refused and the errors. Export Markdown and Export HTML save it as a document to share; the HTML is one file with no script and nothing loaded from outside.

When it does not work

See Troubleshooting.