Download

MCP server

Let Claude Code, Codex, Cursor and other agents query your connections. Writes wait for your approval by default.

The desktop app has an MCP server built in. Your coding agent can look at tables and run SQL through the connections you already have, and no connection string ever goes into its config.

Connect an agent

  1. Open Settings → MCP in the desktop app.
  2. Check that Run MCP server is on. It is by default.
  3. Under Add to a client, pick your agent and copy its command or config. Cursor and VS Code also get a one-click Add to Cursor or Add to VS Code button.
  4. Ask your agent: “List my Tamery connections.”

Setup is ready for Claude Code, Codex, Cursor, VS Code, Gemini CLI, and Windsurf. Pick Other for anything else that speaks Streamable HTTP: the server is at http://127.0.0.1:26381/mcp and wants an Authorization: Bearer <token> header. The token is under Server → Access token.

The server keeps answering after you close every Tamery window, as long as Tamery runs and you are signed in. With no window open, Tamery starts one in the background for the agent's first request, which can take up to 30 seconds. On macOS Tamery stays in the Dock. On Windows, and on Linux desktops with a system tray (KDE, or GNOME with the AppIndicator extension), closing the last window with the server on keeps Tamery running in the tray, with This computer, agents and database connections still open: pick Open Tamery or Quit Tamery in the tray icon's menu. On Windows, clicking the icon opens Tamery too. On a Linux desktop without a tray, closing the last window quits Tamery. The server stops only when you quit Tamery or turn off Run MCP server.

Tables and schema are read from the databases you have open in Tamery, so if the agent says a database isn't open, open it. A connection whose password or SSH and SSL credentials aren't saved on this device fails for agents until you open it in Tamery and enter them, whether a window is open or not: the agent's error names the connection and what to enter.

If another copy of Tamery already holds the port, Settings says so. Quit the other copy, then switch the server off and on. The access token changes when this happens, so whatever held the port can't reuse a token your agents sent it: add Tamery to your agents again.

Agents also send the token while Tamery isn't running or the server is off. Another program on this computer that listens on the port at that time can collect it, and Settings can't tell. If another user or program on this computer could have done that, click Regenerate under Server → Access token.

Connection access

In Settings → MCP → Connection access, choose what agents may do with each connection:

AccessWhat it allows
Not sharedThe agent can't see or use the connection.
Read onlyRead data and schema.
Ask before writingRead freely, and you approve each write in Tamery. This is the default.
Read and writeRead and change data or schema without asking.

Access applies on this device.

Tamery checks every statement, but a database function can still have side effects nobody can see from the SQL. If you need a hard guarantee, connect with a database user that can only read.

Approving a write

With Ask before writing, Tamery shows the statement and asks Run this statement?. A write commits and can't be undone, so Decline has focus by default, and closing the dialog declines too. Run turns red when the statement changes or removes something that already exists.

On PostgreSQL and MySQL, the dialog also shows how many rows the database expects to change. It is an estimate, so read the WHERE clause anyway.

When Tamery is in the background, a notification tells you an agent is waiting, and clicking it opens Tamery with the request. If no Tamery window is visible, the window with the request opens behind your other apps as well. On macOS the Dock icon bounces too. If the agent gives up waiting, the request goes away.

With Read and write, you get a notification after each change instead.

Available tools

ToolPurpose
list_connectionsFind shared connections and their databases.
list_tablesList tables and views.
describe_tableShow columns, keys, and indexes.
search_schemaFind tables and columns by name or comment, so a large database needs no full listing.
search_saved_queriesFind your saved queries by name or SQL, so the agent builds on SQL you already trust.
column_valuesShow a column's most common values with their counts, and its range for numbers and dates.
queryRun one read-only statement, like SELECT or EXPLAIN, and return up to 200 rows and about 60 KB. A value longer than 2 KB comes back cut short, marked as cut. Nothing it does is kept.
explainShow a statement's query plan on PostgreSQL, MySQL, SQLite, ClickHouse or DuckDB. With analyze, a read also runs to report real timings, then rolls back.
executeChange data or schema, within the connection's access. Several statements need a BEGIN … COMMIT block.

query, explain and execute take what to run as statement: SQL in the connection's own dialect, or on a MongoDB connection a mongosh call such as db.orders.find({ status: 'paid' }), one call at a time.

No tool can add, edit or remove a connection. Add them in Tamery or with tamery connection.

Try “Describe the orders table” or “Find duplicate customer emails.” Whatever the agent reads becomes part of its AI context, so share only what you would paste into that chat yourself.

Limits and security

Free accounts get 100 queries or writes per week, reset on Monday at 00:00 UTC. Only query and execute calls that succeed count. Listing connections and reading schema are free. Agent queries this week in Settings shows what is left. Pro removes the limit.

Connected clients lists each agent with its version and when it was last active. Remove forgets one until it connects again.

Treat the access token like a password. Regenerate replaces it and disconnects every client using the old one. Set up the clients you still want again.

Agent activity

Settings → Agent activity in the desktop app logs every call agents make to your databases: from MCP clients and from the AI chat. Each entry shows the agent, the connection with its label as they were at the time of the call, the statement, the number of rows, how long the statement ran (not the time it waited for your approval), and its error. Calls Tamery refused are logged too: a change you declined, a change Auto skipped, and a change or read aimed at a connection the chat may only read. Show query opens the full statement.

A chat whose agent is a coding agent on this computer, such as Claude Code, reaches your databases through this MCP server, so its calls show under that agent's name rather than Tamery AI.

Filter the log by agent or by connection. Clear activity (the trash icon) empties it after you confirm.

The log keeps the last 500 calls on this device, one log for the device rather than for your account, and signing out clears it. It never stores the rows an agent read or a connection string. It does keep your SQL and the database's error messages, which can quote a value (such as a duplicate email), so keep secrets out of queries.