flAPI — Instant REST APIs & MCP Tools from SQL on DuckDB
flAPI turns SQL queries into production-ready REST APIs and MCP tools using DuckDB 1.5.2. Ship a single binary with auth, validation, and DuckLake caching.
About this tool
flAPI is a development tool that turns SQL queries into production-ready REST APIs and MCP tools, powered by DuckDB 1.5.2. It ships as a single binary with built-in authentication, validation, and DuckLake caching.
Key Capabilities
- SQL to REST APIs: Expose SQL queries directly as REST endpoints.
- MCP Tool Generation: Create discoverable, authenticated, type-correct MCP tools for AI agents.
- AI Agent Integration: Let agents query enterprise data through structured interfaces and modify records safely with validation.
- Auth & Authorization: Restrict each tool to JWT/OIDC principals carrying named roles.
- Error Separation: Protocol errors are separated from tool-execution errors so the model sees the latter and self-corrects.
- Static Resource Descriptions: Agents benefit from a static resource describing result shapes up front, enabling query planning without trial-and-error.
Use Cases
- Expose SQL queries as REST APIs
- Query enterprise data via AI agents
- Create CRUD APIs from SQL
- Sync data bidirectionally
- Build MCP tools for AI agents flAPI targets enterprise teams, AI/ML teams, and developers, and runs on Linux, macOS, and Windows. It follows a freemium pricing model.
Features & use cases
Turn SQL queries into REST APIsGenerate MCP tools for AI agentsJWT/OIDC role-based tool accessSeparate protocol and tool-execution errorsStatic resource descriptions for result shapesSingle binary with auth and validationDuckLake cachingAI agent integration for querying and modifying data