# Faucet

> Turn SQL databases into governed MCP tools and REST APIs.

- **URL**: https://followmcp.com/en/servers/faucet
- **Category**: Database
- **Origin**: Community
- **Stars**: 179
- **FMRS Score**: 50/100 (Grade D)
- **Source**: https://github.com/faucetdb/faucet
- **Transports**: stdio (local process), Streamable HTTP
- **Runtimes**: Node.js 18+, Docker
- **Auth**: API key / credential required

## Overview
Faucet is an open-source, self-hosted, single-binary server that connects to PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, Snowflake, and SQLite. It generates REST APIs, OpenAPI documentation, and MCP tools from database schemas. MCP tool access can be controlled with roles and API keys.

## Best for
- Teams seeking self-hosted access to multiple databases through a shared API.
- Developers configuring role-controlled database access for AI clients.

## Not for
- Projects that require a GraphQL API.
- Users requiring direct access through ChatGPT's OAuth connector; the source says Faucet does not support it.
- Environments where AI tools should not receive write access or local administrator rights.

## Required permissions
- HTTP mode requires a Faucet API key; the RBAC rules of its associated role control tool access.
- Tool operations require role rules matching the database, table, and verbs; raw SQL requires administrator permissions and all five verbs.
- stdio mode reads configured data sources and runs with local administrator rights; role rules do not apply.

## Risks
- stdio mode has local administrator rights and is unsuitable for shared environments.
- Authorized insert, update, delete, or raw SQL operations may change data.
- Row-level filters are stored and returned but are not yet applied to queries.
- The README describes the project as under active development.

## Client config (JSON)
```json
{"mcpServers":{"faucet":{"command":"npx","args":["-y","@faucetdb/faucet","mcp"]}}}
```

## Tools (8)
- `faucet_list_services`: List database services accessible to the current role.
- `faucet_list_tables`: List tables in a database.
- `faucet_describe_table`: Get a table's column names, types, and constraints.
- `faucet_query`: Query records with filters, ordering, and pagination.
- `faucet_insert`: Insert records into a table.
- `faucet_update`: Update existing records.
- `faucet_delete`: Delete records.
- `faucet_raw_sql`: Execute raw SQL; requires administrator permissions and matching rules.
