npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@faucetdb/faucet

v0.1.15

Published

Turn PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, Snowflake or SQLite into a REST API + MCP server for AI agents. Single binary.

Readme

@faucetdb/faucet

Turn any SQL database into a secure REST API and MCP server. One binary. One command.

Faucet is an open-source (MIT) single Go binary that turns PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, Snowflake or SQLite into a REST API and an MCP server for AI agents, with role-based access control (RBAC), OpenAPI 3.1 and a built-in admin UI. This package downloads the right prebuilt binary for your platform.

Faucet admin UI listing connected databases

Quick Start

npx @faucetdb/faucet serve

Open http://localhost:8080. The setup wizard creates your admin account and connects your first database: pick the engine, enter host, port, user and password, click Test connection, and save. Then create a role and an API key in the admin UI.

Or install globally:

npm install -g @faucetdb/faucet
faucet serve

Use the CLI

# Connect a database (no connection string needed)
npx @faucetdb/faucet db add --name mydb --driver postgres \
  --host localhost --user app --password 's3cret' --database mydb

# Create a role (GET-only on every service) and an API key bound to it
npx @faucetdb/faucet role create --name default --verbs GET
npx @faucetdb/faucet key create --role default

# Start the server (it loads databases on startup) and query your data
npx @faucetdb/faucet serve
curl -H "X-API-Key: faucet_YOUR_KEY" "http://localhost:8080/api/v1/mydb/_table/users?limit=10"

--dsn still works if you already have a connection string.

Use with AI agents (MCP)

faucet serve exposes an MCP server at http://localhost:8080/mcp (Streamable HTTP). Authenticate with an API key in the X-API-Key header; the key's role decides what the agent can see and change.

Claude Code

claude mcp add --transport http faucet http://localhost:8080/mcp \
  --header "X-API-Key: faucet_YOUR_KEY"

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "faucet": {
      "url": "http://localhost:8080/mcp",
      "headers": { "X-API-Key": "faucet_YOUR_KEY" }
    }
  }
}

Local stdio (your machine only): the client launches Faucet itself. It uses the databases you configured with faucet serve or faucet db add, and runs with admin rights, so roles are not applied.

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

Configs for VS Code, Windsurf, Claude Desktop and ChatGPT: wiki.faucetdb.ai/mcp-server.

Other ways to install

brew install faucetdb/tap/faucet
docker run -p 8080:8080 -v faucet-data:/data faucetdb/faucet
go install github.com/faucetdb/faucet/cmd/faucet@latest

Prebuilt binaries for Linux, macOS and Windows: GitHub Releases.

Links

License

MIT