Skip to content
Skillpedia
βœ“ Official Β· Faucet● Free and open sourceπŸ’» LocalπŸ”‘ Needs an API keyData and databases

Faucet

Lets your AI agent query and change SQL databases through a governed REST API and MCP server with role-based access.

170 stars on GitHubby FaucetLicense MITUpdated last month

How to install

This MCP is local: it runs on your computer.

It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Code…). Choose your app:

Paste in the terminal:

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

What to fill in

NameWhat it isRequired
FAUCET_DATA_DIRFaucet data directory holding the databases you connected with faucet serve or faucet db add. Default: ~/.faucet. stdio mode runs with local admin rights.No

Ready! Now test it

Restart the app and paste one of these requests in the chat:

Show me the ten newest rows in the orders table.
How many customers signed up last month?

What it is

Faucet is a single program you run yourself. It connects to a SQL database, reads its schema and creates a REST API and MCP tools for it. Your AI agent then reads and writes data with the same roles and API keys as any other client, so you decide which tables it can see and change.

What it can do

  • List the connected databases and their tables
  • Read rows with filters, ordering and pagination
  • Insert, update and delete rows, if the role allows it
  • Inspect table schemas
  • Call stored procedures
  • Two MCP resources and eight tools, served at /mcp

When to use

  • β€ΊWhen you want an AI agent to work with a PostgreSQL, MySQL, SQL Server, Oracle, Snowflake or SQLite database with limited permissions
  • β€ΊWhen you need a quick REST API in front of an existing database
  • β€ΊWhen you want one endpoint that covers several databases

What you need

Run the Faucet program (npx @faucetdb/faucet serve, Docker, Homebrew or a binary), connect your database, then create a role and an API key. Node.js 18 or newer is needed for the npx route.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

Frequently asked questions

Is it free and open source?

Yes. The readme says Faucet is open source under the MIT license.

Which databases are supported?

PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, Snowflake and SQLite.

How is access controlled?

With roles that set per-table permissions and API keys bound to a role. AI agents follow the same rules as API clients.

Is row-level security enforced?

The readme says row-level filters are stored but not enforced yet, so do not rely on them.

Where does the MCP server run?

At http://localhost:8080/mcp on the same port as the REST API, with the API key in the X-API-Key header.

Does it work with Claude and Cursor?

Yes. The admin UI generates ready configs for Claude Code, Claude Desktop, Cursor, VS Code and Windsurf.

If it does not work

  • β€ΊIf the agent sees no tables, check that the role attached to your API key allows access to those tables.
  • β€ΊDatabases added with the faucet db add command are loaded the next time the server starts, so restart it.
  • β€ΊCheck that the X-API-Key header holds a valid key and that the server is reachable at the /mcp address.

5 new skills a week. 1 minute to read.