A SQL workspace with a built-in MCP server

Superintendent has a built-in MCP server. Connect Claude Code, Codex, or any MCP client, and your agent can list your databases, import CSVs, run SQL, and open the results in tabs you can see.
Download for Mac Free and open source (MIT) · Also available for Windows

By Tanin Na Nakorn · Updated

Most database MCP servers connect an agent to one database and hand the results back as text. Superintendent's server connects the agent to your whole workspace: your CSV files, every database you've saved (PostgreSQL, ClickHouse, Snowflake, SQLite), and the query and result tabs on your screen. The agent does the work; you watch the rows show up in a grid.

Turn it on

  1. Click MCP in Superintendent's title bar.
  2. Turn on the MCP server. It listens on http://127.0.0.1:7873/mcp.
  3. Copy the setup for your agent. It includes a private token.

Claude Code

Run this in a terminal, with the token from the dialog:

Terminal
claude mcp add --scope user --transport http superintendent \
  http://127.0.0.1:7873/mcp \
  --header "Authorization: Bearer <token>"

Codex

Add this to ~/.codex/config.toml:

~/.codex/config.toml
[mcp_servers.superintendent]
url = "http://127.0.0.1:7873/mcp"
http_headers = { Authorization = "Bearer <token>" }

Other clients

Point any MCP client that supports streamable HTTP at http://127.0.0.1:7873/mcp, with the header Authorization: Bearer <token>.

Screenshot coming soon Superintendent's MCP server dialog, with the on switch and the setup snippets for Claude Code and Codex images/screenshots/mcp_dialog.webp

The tools

ToolWhat it does
list_sourcesLists the saved databases and the workspace.
list_tablesLists the tables and columns in a database or the workspace.
import_csvImports a CSV file into the workspace.
download_to_workspaceCopies a database table or saved query into the workspace, so it can be joined with other sources.
run_queryRuns SQL in the workspace or on a database and returns rows.
read_resultReads more rows from a table or result.
list_queriesLists the saved queries.
open_query_tab, open_result_tabOpens a query or a result on your screen.
set_result_tab_filter_and_sortFilters and sorts a result tab.
set_result_tab_selectionHighlights the rows or columns the agent is talking about.
list_windows, show_windowWorks with several Superintendent windows, each with its own project.

There are also tools to list, rename, move, and close tabs, and to rename and delete tables and queries.

Example

With the server connected, you can ask your agent, from your own terminal:

  • "In Superintendent, import ~/Downloads/refunds.csv and join it with the orders table in Postgres. Open the refunds with no matching order."
  • "Download yesterday's events from ClickHouse into the workspace and count them by country. Show me the result."

The agent calls the tools, and the tabs open in Superintendent. You can scroll through the result, check the SQL, and pick up where the agent left off.

Security

  • The server is off until you turn it on, and runs only while Superintendent is open.
  • It listens on 127.0.0.1, so other computers can't reach it.
  • Every request needs the token. Keep it private: anyone with it can query your databases while the app is open.
  • Agents never see database passwords, tokens, or keys.

Rather not set anything up? Chat with Claude Code or Codex inside the app instead.

Questions

Which agents can connect?

Any client that supports MCP over HTTP with a bearer token, including Claude Code and Codex. Superintendent shows a ready-to-copy setup for both.

Is the MCP server reachable from other computers?

No. It listens on 127.0.0.1, so only programs on your computer can reach it, and every request needs the token.

Can the agent see my database passwords?

No. Agents see each database's host, port, and name, but never its password, token, or key.

Does the server run when Superintendent is closed?

No. It runs while Superintendent is open, and only after you turn it on.

What data does the agent get?

Whatever it asks for through the tools: table and column names, and the rows its queries return, up to a row limit per call. The agent sends that to its own AI provider.

Try it on your own data

Free and open source. No account, no credit card. Your data stays on your computer.

Also available for Windows