pREST

Open-source instant REST and MCP API server for PostgreSQL and other SQL databases

Low-Code Backend & API Builders Open source · MIT Free plan Self-hostable

What is pREST?

pREST is a Go server that exposes an existing PostgreSQL database as a REST API with no code, including filtering, joins, pagination and custom SQL scripts. Recent versions add support for more databases and a Model Context Protocol endpoint so AI agents can query data.

Best for: Developers needing a quick REST layer over an existing Postgres database.

pREST at a glance

CategoryLow-Code Backend & API Builders, Open-Source Low-Code Frameworks
PricingFree (open source)
DeploymentSelf-hosted
Built forProfessional developers, Data teams
Buildsapi
LicenceOpen source (MIT)
Code exportYes
VendorpREST community · Brazil · founded 2016
GitHub stars4,638 · last commit 2026-11

Key features

  • auto REST endpoints from schema
  • query filters and joins
  • custom SQL script endpoints
  • JWT auth
  • plugin system
  • MCP endpoint

AI features

Provides an MCP interface so LLM agents can query databases.

What you can build with pREST

  • instant database APIs
  • microservice data access
  • prototyping backends
  • AI agent data access

pREST pricing

Open source. There is a free plan. Free under MIT.

Full pREST pricing breakdown and cheaper alternatives →

Prices change often. Check the vendor's pricing page before buying.

Pros and cons

Pros

  • Mature and active
  • Single fast Go binary
  • Permissive license

Cons

  • No admin UI
  • Security config is on you
  • PostgreSQL-first feature set

Integrations

PostgreSQLMySQLDockerKubernetes

pREST alternatives

See all pREST alternatives →

Looking further? tools like DB2Rest · tools like Hasura · tools like DreamFactory · tools like Supabase · tools like Directus · tools like Xano

Compare pREST

Frequently asked questions

What is pREST?

pREST is a Go server that exposes an existing PostgreSQL database as a REST API with no code, including filtering, joins, pagination and custom SQL scripts. Recent versions add support for more databases and a Model Context Protocol endpoint so AI agents can query data.

How much does pREST cost?

pREST pricing: Free (open source). Free under MIT.

Is pREST open source?

Yes. pREST is open source under the MIT licence and its code is on GitHub at github.com/prest/prest.

Can pREST be self-hosted?

Yes. pREST supports self-hosted deployment.

What are the best alternatives to pREST?

Popular alternatives to pREST include DB2Rest, Hasura, DreamFactory, Supabase, Directus. See the full list of pREST alternatives on lowcodeplatforms.org.

Who is pREST best for?

Developers needing a quick REST layer over an existing Postgres database.

John Rush