← Back to directory
F

Faucet

Community
Turn SQL databases into governed MCP tools and REST APIs.
Category
Database #55 of 86
Stars
★ 179 Popular
Transport
stdio (local process) · Streamable HTTP
Runtime
Node.js 18+ · Docker
Credentials
API key / credential required
License
MIT
Last commit
Tools
8
50FMRS · D

Faucet connects multiple SQL databases to REST APIs and MCP, with role-based access controls. Use a suitably scoped API key over HTTP; stdio mode has local administrator rights. Row-level filters are not enforced.

Strongest · Setup experience 12/20 Weakest · Security and permissions 8/20

Reliability
9/20
Security and permissions
8/20
Maintenance
9/20
Documentation
12/20
Setup experience
12/20
Why each score
Reliability 9/20
The README lists eight tools, two resources, HTTP and stdio transports, and supported databases, and describes some permission mappings and stdio behavior, making the initialization and tool-list path plausible. However, only the README and manifest were supplied; there is no CI, test, or execution evidence. Row-level filters are not enforced, and stdio runs with local administrator rights, so edge cases and actual tool behavior remain unverified.
Security and permissions 8/20
Network MCP uses an API key and tool calls are stated to follow role-based access control; raw SQL is described as admin-only and services can be read-only. Deductions reflect that stdio bypasses roles and runs with local administrator rights, stored row-level filters are not applied, and write/delete tools show no per-operation confirmation. Deployment and data-flow security details are also limited. The supplied material shows no red-line risk.
Maintenance 9/20
The supplied material says the project is not archived, uses the MIT license, and provides GitHub Releases, a CI badge, and an issue channel, indicating basic update routes. There is no verifiable release history, commit activity, issue response, dependency-update, or security-response evidence here. Stars and open issue counts do not add maintenance points.
Documentation 12/20
The README provides installation options, client configuration examples, API-key authentication, a tool list, RBAC examples, supported databases, and the limitation that row-level filters are not yet enforced. Deductions reflect the lack of independently reviewable documentation in the supplied material, limited troubleshooting, dependency-failure, cost, and data-flow detail, and the absence of source or test evidence for documented capabilities.
Setup experience 12/20
The README offers npx, Homebrew, Docker, Go, and binary installation paths, with configuration examples for Claude, Cursor, VS Code, and Windsurf. Connecting a database and creating a role and API key still require configuration; the stdio example runs with local administrator rights, and the HTTP example uses localhost, so remote use needs additional HTTPS setup. No CI and key-path test evidence was supplied, so the static calibration caps setup at 15.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessUses the networkConnects to a database

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 and side effects

  • 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.

Setup

Before you start

Runtime:Node.js 18+ · Docker

Other optional settings (1)
FAUCET_DATA_DIR optional Faucet data directory for databases connected with faucet serve or faucet db add; defaults to ~/.faucet.

Install and run Faucet, connect a database, then create a role and API key. HTTP mode serves Streamable HTTP at http://localhost:8080/mcp and uses the key in the X-API-Key header. The stdio configuration example runs Faucet with local administrator rights.

.mcp.json
{"mcpServers":{"faucet":{"command":"npx","args":["-y","@faucetdb/faucet","mcp"]}}}

Shown for Claude Code. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "faucet": {
      "command": "npx",
      "args": [
        "-y",
        "@faucetdb/faucet",
        "mcp"
      ]
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.faucet]
command = "npx"
args = ["-y", "@faucetdb/faucet", "mcp"]

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add faucet -- npx -y @faucetdb/faucet mcp

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

Start Faucet and connect your MCP client, then confirm that faucet_list_services and faucet_query appear in its tool list. Call faucet_list_services; a response listing accessible database services confirms the connection.

Troubleshooting

  1. Confirm the server is running and check that the HTTP endpoint is /mcp.
  2. HTTP requests require a valid key in the X-API-Key header.
  3. Check that the key's role is active and has rules matching the service, table, and operation verbs.
  4. Confirm the database is connected and the expected data directory is configured.

Things to try

Once connected, you can ask your AI assistant things like:

  • List the database services I can access.
  • List the tables in my PostgreSQL database and show the columns and constraints for the users table.
  • Query records from the users table, ordered by created_at descending.
  • Insert a new record into the orders table.

Tools 8

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

Use cases

Provide database APIs for internal tools and dashboards.
Let MCP-compatible AI assistants query or modify databases under role rules.
Generate REST APIs and OpenAPI documentation for existing SQL databases.

Supported clients

Claude Code
Claude Desktop
Cursor
VS Code
Windsurf
ChatGPTPartial support

Listed from the project's documentation, not tested by this site.

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.

Similar servers

Source revision 6c374ae6c77b Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/faucet.svg)](https://followmcp.com/en/servers/faucet)