A MySQL or PostgreSQL MCP server that starts read-only
Connect a remote MySQL, MariaDB or PostgreSQL database and your AI client can list tables, describe them and answer questions with real queries. Writes stay off until you turn them on, tool by tool.
Your data, already in one place
Most of what an AI keeps asking about is sitting in a database you already run. The Database connector turns that database into an MCP server: install the template, enter the connection details, and Claude, ChatGPT or Cursor can explore the schema and run queries. There is no API to write first.
- Install from Templates, then fill in host, port, database, user and password under the server's Database settings
- Credentials are stored encrypted on your server and never sent anywhere else
- Use a database user with only the access you want an AI to have
Nine tools, in two groups
Five read tools are on from the moment you install. The four that change data install switched off, and each one can be turned on individually from the Tools screen.
| Tool | What it does | On install |
|---|---|---|
| Read | ||
| list_tables | The tables and views in the database, with an estimated row count and comment for each | ✓ |
| describe_table | Every column with its type, nullability, default and comment, plus keys and indexes | ✓ |
| run_query | A read-only statement (SELECT, WITH, SHOW, EXPLAIN, DESCRIBE) with bound parameters | ✓ |
| get_rows | Rows from a table with a filter, column list, ordering and paging, without writing SQL | ✓ |
| count_rows | How many rows match a filter | ✓ |
| Write, off until you enable them | ||
| insert_row | Insert one row from a data object | |
| update_rows | Update the rows matching a filter; refuses to run without one | |
| delete_rows | Delete the rows matching a filter; refuses to run without one | |
| execute_sql | Any statement, for the cases the other tools do not cover | |
Two locks before anything is written
A connected model should not be one confident guess away from an UPDATE. The connector is built around that assumption.
Read-only, enforced by the engine
The connection itself starts read-only, set at the database level rather than by matching keywords in the SQL. A write on a read-only connection is refused before it reaches the database at all.
Write tools install disabled
Insert, update, delete and execute are present but switched off. Turn on only the ones a workflow needs, and leave the rest invisible to the client.
No filter, no update
Updates and deletes require a filter and refuse an empty one, so a model cannot clear a table by leaving the where clause out.
Bounded results
Every connection carries a row cap and a statement timeout. Long text is trimmed and binary columns are summarised, so a single query cannot flood a conversation or hang a request.
TLS to the database
Require an encrypted connection, or verify the server's certificate against a CA you paste in. Hosted databases that insist on TLS, such as Supabase and Neon, work out of the box.
Safety hints on every tool
Each tool declares whether it only reads or can destroy data, in the annotations the MCP specification defines. A client that honours them can ask before a delete and skip the question for a lookup.
Questions in plain language, answers from real rows
Because the model can describe a table before it queries it, it writes queries against the columns you actually have. Parameters travel separately from the SQL, so values are bound rather than pasted into the statement.
- Test every tool from the Tool Editor before a client connects
- Hand the server to Claude or Cursor with Quick Connect
- Every call is logged with the tool, client, latency and status
// run_query, as a client sends it { "sql": "SELECT status, COUNT(*) AS orders FROM orders WHERE created_at >= ? GROUP BY status", "params": ["2026-09-01"], "limit": 50 } // rows come back as objects, capped and trimmed [ { "status": "paid", "orders": 1284 }, { "status": "refunded", "orders": 31 } ]
Questions about the database connector
Which databases are supported?
MySQL, MariaDB and PostgreSQL, wherever they run. That includes hosted services built on them, such as Supabase, Neon and PlanetScale, and managed instances like Amazon RDS. The connection is a normal database connection from your server, so the database has to be reachable from where GetMCP is installed.
Does the AI get my database password?
No. The credentials are stored encrypted on your install and used only by your server to open the connection. The client sees tools, not connection details, and the connection variables a server holds cannot be filled in or changed by a model argument.
Can I connect more than one database?
Yes. Each database is its own server with its own connection, tools and logs. Publish several through the MCP Gateway if a client needs them together.
I already built a server before the connector existed. Do I start again?
No. A server built before a connector tool existed is offered it in place, so you can add the database tools to an existing server without recreating it.
Give your AI a safe seat at the database.
Install the Database template, enter the connection details, and start asking questions. Writes stay off until you say otherwise.