A SQL workspace with a built-in MCP server
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
- Click MCP in Superintendent's title bar.
- Turn on the MCP server. It listens on
http://127.0.0.1:7873/mcp. - Copy the setup for your agent. It includes a private token.
Claude Code
Run this in a terminal, with the token from the dialog:
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:
[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>.
The tools
| Tool | What it does |
|---|---|
list_sources | Lists the saved databases and the workspace. |
list_tables | Lists the tables and columns in a database or the workspace. |
import_csv | Imports a CSV file into the workspace. |
download_to_workspace | Copies a database table or saved query into the workspace, so it can be joined with other sources. |
run_query | Runs SQL in the workspace or on a database and returns rows. |
read_result | Reads more rows from a table or result. |
list_queries | Lists the saved queries. |
open_query_tab, open_result_tab | Opens a query or a result on your screen. |
set_result_tab_filter_and_sort | Filters and sorts a result tab. |
set_result_tab_selection | Highlights the rows or columns the agent is talking about. |
list_windows, show_window | Works 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.csvand join it with theorderstable 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.