Faucet logo

Faucet

Connects SQL databases to governed MCP tools, REST endpoints, OpenAPI documentation, and an embedded admin UI.

Install Faucet

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "faucet": {
      "command": "npx",
      "args": [
        "-y",
        "@faucetdb/faucet"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y @faucetdb/faucet

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The Faucet MCP server exposes SQL databases to AI agents through generated MCP tools and resources. It connects to PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, Snowflake, or SQLite, inspects the schema at runtime, and serves MCP over streamable HTTP or stdio. Agents use the same API keys and role-based permissions as REST clients. Reach for it when an agent needs governed access to existing database data without building a separate integration.

Use cases

  • Expose an existing database to an MCP-compatible AI agent
  • Generate CRUD APIs for an internal application
  • Give agents role-controlled access to legacy SQL data
  • Aggregate multiple SQL databases behind one service
  • Inspect and test database-backed APIs through the admin UI

Key features

  • MCP endpoint with eight tools and two resources
  • Streamable HTTP and stdio transports
  • Runtime schema introspection and tool generation
  • API keys, JWT sessions, and role-based permissions
  • Generated REST API and OpenAPI 3.1 specification
  • Embedded administration UI

Tools8

What Faucet lets your agent do. Expand a tool for its parameters.

Self-reported~87 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

20/20 checks healthy over the last 43d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 12d ago via OSV.dev · @faucetdb/faucet (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars177Stargazers on the source repository.
npm downloads329Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed8Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Faucet works

What Faucet does

The Faucet MCP server turns a supported SQL database into an MCP endpoint, a REST API, OpenAPI documentation, and an embedded administration interface. It is delivered as a single Go binary and generates its interfaces from the live database schema rather than requiring application code, an ORM, or generated source files.

Supported database systems include PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, Snowflake, and SQLite. A single instance can connect to multiple databases and expose them through the same service. The database connection and administration features are separate from the agent-facing protocol, but they are generated and managed by the same application.

The MCP endpoint is available at /mcp on the REST API port. It is intended for agents that need to query or modify database-backed data under the permissions configured for the corresponding API client or key.

How it works

Faucet first connects to a database and examines its tables, columns, types, and constraints. It then creates database-backed REST endpoints, an OpenAPI 3.1 document at /openapi.json, MCP tools, and admin views from that schema. Changes to the database schema can be detected, and the API contract can be locked using the available contract-locking modes.

The Faucet MCP server supports streamable HTTP with API-key authentication for network access and stdio for local use. MCP requests follow the same role-based access rules as other API requests. Authentication options include API keys with assigned roles and HMAC-SHA256 JWTs for administrator sessions.

Setup and configuration

Run Faucet as a binary on Linux, macOS, or Windows, or use the documented npm, Homebrew, or Docker distribution options. The project also provides npx @faucetdb/faucet as an installation path. Its configuration is stored in a local SQLite configuration store, so an additional configuration database is not required.

Use the embedded admin UI to add a database with its host, port, username, and password. Faucet tests the connection before saving it. The UI also supports schema and data browsing, role and key management, and copying MCP configurations for supported clients.

For local agent use, configure the client to launch the stdio transport. For a remotely reachable deployment, use the /mcp endpoint with an API key. The service also exposes /healthz and /readyz for health and readiness checks.

Tools and capabilities

The Faucet MCP server includes eight MCP tools and two MCP resources. Its generated database access supports the following operations and features:

  • Reading, inserting, updating, and deleting records
  • Filtering, ordering, and paginating queries
  • Calling stored procedures with typed parameters
  • Creating, altering, and dropping tables through the API
  • Inspecting database schema information
  • Applying API-key authentication and per-table verb permissions
  • Serving the generated OpenAPI 3.1 specification

The REST API additionally supports human-readable query filters such as comparisons combined with AND. MCP-compatible clients named by the project include Claude Code, Claude Desktop, Cursor, VS Code, and Windsurf. ChatGPT is described as an option through a Custom GPT Action using the generated OpenAPI document rather than the MCP endpoint.

Limitations and notes

The project describes row-level security filters as stored on access rules and returned by the API, but says that applying those filters to queries is planned and not currently enforced. Do not treat configured row-level filters as active query enforcement.

MCP access is governed by Faucet's configured roles and API keys, so the database connection alone does not define the agent's effective permissions. The available tools and generated endpoints depend on the connected schema. Schema contract locking can detect drift and protect against silent breaking changes, but the selected locking mode affects how changes are handled.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Faucet

Faucet is an MCP server that connects AI agents to PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, Snowflake, and SQLite databases. It generates eight MCP tools and two resources from each schema, supports querying and database operations, and applies configured API-key authentication and role-based permissions.

Install Faucet as a binary, with npm, Homebrew, Docker, or `npx @faucetdb/faucet`. The project describes it as a single Go binary for Linux, macOS, and Windows. After starting it, add a database through the admin UI or configure the local stdio or HTTP MCP connection.

Yes, Faucet provides copy-ready MCP configuration for Cursor. You can connect Cursor through the streamable HTTP endpoint with an API key or use the local stdio transport, depending on how Faucet is running.

Faucet supports PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, Snowflake, and SQLite. It introspects each connected database schema at runtime and generates the corresponding REST endpoints, OpenAPI documentation, MCP tools, and admin views.

No, row-level security filters are not currently enforced on queries. Faucet stores filter expressions per access rule and returns them through the API, while applying those filters to queries is described as planned.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewFaucet AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/faucet?style=directory)](https://allmcps.com/mcp/faucet)
HTML Embed
<a href="https://allmcps.com/mcp/faucet"><img src="https://allmcps.com/api/badge/faucet?style=directory" alt="Faucet on AllMCPs" /></a>