---
title: "MCP server for PostgreSQL, MySQL and SQL Server | FluxOS MCP"
description: "Read the schema of your PostgreSQL, MySQL or SQL Server database and publish an MCP server without writing SQL: tools per table, bound parameters and a per-client filter."
url: "https://www.fluxosmcp.com/en/servidor-mcp/banco-de-dados-sql"
lang: "en-US"
---

SQL database

# Your SQL database as an MCP server, without writing SQL

FluxOS MCP connects to PostgreSQL, MySQL or SQL Server, reads the catalog (tables, views, columns and keys) and proposes tools per table. Table data is not read during the import.

[Talk to us](mailto:contato@fluxosmcp.com) [Documentation for this source](https://www.fluxosmcp.com/en/docs/origens/sql)

## How the source becomes MCP tools

| Generated tool                          | What it does                                                                |
| --------------------------------------- | --------------------------------------------------------------------------- |
| consultar\_<table>                      | Read with filters, sorting and pagination. Returns up to 200 rows per call. |
| buscar\_<table>\_por\_id                | Reads one row, on tables with a single-column primary key.                  |
| inserir\_<table>                        | Write. One property per writable column.                                    |
| atualizar\_<table> and excluir\_<table> | Write, by id or by filters. Flagged as destructive in MCP.                  |
| Views                                   | Only the query tool.                                                        |

Step by step

## From the source to an MCP server in four steps

1. ### Create the connection
Give the connection URL or the separate fields and test it before saving. The URL is stored in the vault; the system keeps only a reference.
2. ### Read the schema
Restrict schemas and tables if you want. FluxOS MCP reads the catalog and proposes up to five tools per table.
3. ### Choose the tools
Check what you want to expose and pick, for each table, the column that identifies the client.
4. ### Publish the MCP server
Pick or create the target server, publish it and generate a key for each client, with limits and the tools each key may call.

In every server

## What the MCP server already includes

### Per-client isolation

Every call carries who the client is. Each tool filters by the identifier of the key's owner, which the assistant cannot choose or change.

### Keys with limits

Per-minute and per-day limits, tools allowed per key, rotation with a grace period and instant revocation.

### Metered usage

Calls, errors and rejections by day, key and tool. That same metering checks the plan's included calls and, when it applies, the overage.

## Limits and things to watch

- Use a service user with the fewest permissions: the platform does not replace the database's own permissions.
- Each query returns up to 200 rows; `truncated: true` means there are more, and `offset` paginates.
- The database must be reachable by FluxOS MCP. Internal network addresses are blocked.
- Binary and JSON columns cannot be used as filters.
- Generated tool names are in Portuguese (`consultar`, `buscar`, `inserir`, `atualizar`, `excluir`); you can rename each tool before creating it.

## Going deeper

- [Documentation for this source](https://www.fluxosmcp.com/en/docs/origens/sql)
- [Ask your database questions in plain English, without writing SQL](https://www.fluxosmcp.com/en/blog/ask-your-database-questions-in-plain-english-without-writing-sql)

## Other sources

- [OpenAPI and REST APIs](https://www.fluxosmcp.com/en/servidor-mcp/openapi): Each operation in the spec becomes an MCP tool.
- [GraphQL](https://www.fluxosmcp.com/en/servidor-mcp/graphql): Each query and each mutation in the schema becomes an MCP tool.
- [SOAP and WSDL](https://www.fluxosmcp.com/en/servidor-mcp/soap): Legacy services with a WSDL become tools, with JSON responses.
- [Postman and cURL](https://www.fluxosmcp.com/en/servidor-mcp/postman-e-curl): No OpenAPI? Each request in the collection or each command becomes a tool.
- [Undocumented API (HAR)](https://www.fluxosmcp.com/en/servidor-mcp/api-sem-documentacao): Record a HAR file in the browser and get one tool per API call.

Frequently asked questions

## Questions about this source

Does the AI assistant write SQL against my database?

No. The assistant only supplies arguments. The tools build the queries from the tables and columns of the imported schema, and every value is sent as a bound parameter: nothing is concatenated into the SQL.

How is one client kept from seeing another's data?

You pick the client column of each table. Every read, update and delete gets a filter on that column, every insert fills it in, and it disappears from the arguments the AI can see. The value always comes from the access key.

Which databases are supported?

PostgreSQL, MySQL and SQL Server.

## Publish your first MCP server

Connect the system, choose the tools and hand each client a key with limits.

[ Talk to us ](mailto:contato@fluxosmcp.com) [Log in](https://app.fluxosmcp.com/entrar)
