MCP for AI agents
Every table and function becomes a typed Model Context Protocol tool — list_*, create_*, update_*, delete_*, call_* — with discovery resources like pgvis://schemas. No glue code. Works with Claude Desktop and any MCP client.
PostgREST-compatible
Same query DSL, the same Prefer header semantics, the same PGRST* error codes. A flat routing mode lets existing PostgREST clients keep working unchanged.
OpenAPI 3.0
Generated from the same introspected schema as REST and MCP — always in sync by construction. Print it with pgvis openapi, or fetch it from the API root with Accept: application/openapi+json.
Rust & embeddable
pgvis-core is I/O-free and depends on no driver. Backends implement a single Backend trait. Add a database API to any Rust app with the pgvis-lib Builder.
Safe by construction
Parameterized SQL only. JWT verification with symmetric or asymmetric algorithms, role switching, and Row-Level Security via Postgres. Statement timeouts and a server-side row cap.
Backend-agnostic
Postgres today; a SQLite backend crate is in progress and on the roadmap. Dialect capability flags drive feature gating — no core rewrite needed for a new backend.