prest/prest

Instant REST and MCP APIs for PostgreSQL and MySQL, on existing or new databases. CRUD, custom SQL routes, auth and ACL without writing a backend. Low-code, ⚡ realtime, high-performance. Native MySQL support since v2.5.

What it solves

It eliminates the need to manually write backend code to expose a database as an API. It provides an instant, production-ready REST and Model Context Protocol (MCP) API layer on top of existing or new SQL databases.

How it works

By pointing pRESTd to a PostgreSQL or MySQL database, it automatically generates API endpoints based on the database schema. It supports CRUD operations, custom SQL routes, authentication, and Access Control Lists (ACL). It also provides a read-only MCP endpoint specifically for AI clients like Cursor and Claude.

Who it’s for

Developers who want to quickly turn their SQL database into a functional API without building a custom backend, and those looking to integrate their database with AI agents via the Model Context Protocol.

Highlights

  • Multi-Database Support: Works with PostgreSQL 9.5+ (default) and MySQL 8.0.19+.
  • AI Integration: Includes a read-only MCP endpoint for compatibility with AI clients.
  • Customization: Supports custom SQL routes with secure value binding to prevent SQL injection.
  • Production Ready: Features built-in authentication and ACL for secure data access.

Related

  • Project
  • Project
  • Project
  • Project
  • Project