Skip to content

prest

Go server that exposes REST and MCP APIs on a Postgres or MySQL database

Permissive (OSI) · MIT
  • macOS
  • Linux
  • CLI

Listed by , founder & editor

78

Health

Thriving

Overview

Stars

4,640

Last commit

4 days ago

Nov 2026

Repository age

10 years

since Nov 2016

Latest version

v2.6.0

Nov 2026

Contributors

–

6 active in 90 days

Releases

13

last 12 months

Docker pulls

293k

prest/prest

Language

Go

pREST generates a REST API over an existing or new SQL database, so you do not hand-write a backend. It covers CRUD, custom SQL routes, authentication, access control lists and a read-only Model Context Protocol endpoint for AI clients.

PostgreSQL 9.5 or later is the default engine. MySQL 8.0.19 or later is supported as a separate dialect, selected with engine set to mysql. Tables are reached with paths like /{database}/{schema}/{table}. You configure it with a TOML file or environment variables, and containers can take their app config from a single JSON document. Options include allowed hosts, a request ID header and a PostgreSQL session time zone.

It is written in Go, MIT licensed, and available through Docker, Homebrew and Go. It has been developed since 2016.

It is categorized as a backend as a service, though it names no specific product it replaces. It suits teams who want an API layer on their own database without adopting a hosted platform.

Who it's for

Developers with an existing Postgres database

You get a REST API over your tables without writing handlers.

Skip if: You need a full platform with built-in file storage and user management UI.

Teams building AI tools over SQL data

The read-only MCP endpoint lets clients like Cursor or Claude query data.

Skip if: Your agents need to write data through MCP, since that endpoint is read-only.

Platform engineers deploying on Kubernetes

Config can be supplied as JSON in an environment variable or secret.

Skip if: You need MariaDB, TiDB or Aurora MySQL, which are still on the roadmap.

The problem it solves

Putting an API in front of a SQL database usually means writing repetitive CRUD code and access rules. pREST serves that API directly from the schema you already have.

Strengths

  • Instant REST endpoints for tables across Postgres and MySQL
  • Read-only MCP endpoint for AI clients
  • Configured through TOML, environment variables or JSON
  • Ships as a Go program with Docker and Homebrew options
  • MIT license with 13 releases in the past year

Trade-offs

  • MySQL support starts at 8.0.19, and MariaDB is not yet supported
  • MCP endpoint is read-only
  • You manage auth and ACL configuration yourself
  • A contributor license agreement applies to contributions

Self-host prest

Self-hostable
Yes
Docker image
prest/prest
Docker Compose
The repository ships a Compose file

Frequently asked questions

Is pREST free to use?

Yes. It is licensed under MIT.

Which databases work?

PostgreSQL 9.5 or later by default, and MySQL 8.0.19 or later with engine set to mysql.

Can I self-host it?

Yes. You can run it with Docker, Homebrew or Go against your own database.

Does it support AI clients?

Yes, through a read-only MCP endpoint.

Similar tools in Backend as a service

postgrest

Backend as a service

Standalone server that turns a PostgreSQL schema into a REST API for backend developers

28k 1.2k today Thriving MIT

Kuzzle

Backend as a service

Generic backend with realtime API, search and user management for web and IoT apps

1.7k 135 today Active Apache-2.0

Kinto

Backend as a service

Minimalist JSON storage service with sync and sharing for developers building apps

4.4k 443 today Thriving Apache-2.0

daptin

Backend as a service

Self-hosted Go backend that turns a data schema into APIs, auth and automation

1.9k 122 today Active LGPL-3.0

TrailBase

Backend as a service

Single-binary Rust backend with auth and REST APIs for app developers

5.8k 201 3 days ago Active OSL-3.0

Replaces Firebase

Instant

Backend as a service

Real-time, offline-first client database with auth and permissions for frontend developers

11k 430 19 days ago Slowing Apache-2.0