FF

faucetdb/faucet

API 开发官方

本页由 AI 翻译,技术细节请以原文为准。 查看原文

177 stars 26 forks 质量 83 趋势 8MIT

faucetdb/faucet 是从 https://github.com/faucetdb/faucet. 导入的 MCP 服务器候选

概览

faucetdb/faucet 是从 https://github.com/faucetdb/faucet. 导入的 MCP 服务器候选

概述(AI 翻译)

水龙头:REST API 和 MCP 服务器,适用于任何 SQL 数据库

把任何SQL数据库都变成安全的REST API和MCP服务器。一个二进制文件。一个命令。

Faucet 是一个开源(MIT)单 Go 二进制文件,将 PostgreSQL、MySQL、MariaDB、SQL Server、Oracle、Snowflake 或 SQLite 转化为 REST API 和 AI 代理的 MCP 服务器,具备基于角色的访问控制(RBAC)、OpenAPI 3.1 和内置管理界面。

端点、OpenAPI 规范和 MCP 工具都是在运行时从你的数据库模式生成的。没有代码生成,没有 ORM,没有样板程序。

网站 · 文档 · 入门 · Docker · MCP服务器 · 议题


什么是水龙头?

Faucet 是一个数据库到REST-API网关——一个轻量级自托管服务器,连接您的SQL数据库,分析模式,生成完整的CRUD REST API,支持认证、基于角色的访问控制(RBAC)和OpenAPI文档。它还在/mcp处暴露了一个MCP服务器,使AI代理和应用构建器(Claude、ChatGPT、Cursor、VS Code、Windsurf、Base44、Replit)可以通过相同的角色和API密钥查询您的数据。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Faucet: REST API and MCP server for any SQL database

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.

Endpoints, OpenAPI specs and MCP tools are generated from your database schema at runtime. No code generation, no ORM, no boilerplate.

Website · Docs · Getting Started · Docker · MCP Server · Issues


What is Faucet?

Faucet is a database-to-REST-API gateway — a lightweight, self-hosted server that connects to your SQL databases, introspects the schema, and generates a full CRUD REST API with authentication, role-based access control (RBAC), and OpenAPI documentation. It also exposes an MCP server at /mcp so AI agents and AI app builders (Claude, ChatGPT, Cursor, VS Code, Windsurf, Base44, Replit) can query your data through the same roles and API keys.

在 GitHub 查看完整 README

安装

npx -y mcp-remote http://localhost:8080/mcp --header X-API-Key:YOUR_API_KEY
新手?先看 mcpskill.org 教程 →

配置

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