# PgArachne > Turn PostgreSQL into a secure JSON-RPC API instantly — define a SQL function, get an API endpoint. No boilerplate, native MCP support, real-time SSE notifications, and database-native security. PgArachne is a production-grade, single-binary backend gateway written in Go. It introspects PostgreSQL functions and exposes them as JSON-RPC 2.0 endpoints, authenticating every request as a real PostgreSQL role so Row-Level Security works automatically. It also exposes a native Model Context Protocol (MCP) endpoint so AI clients such as Claude Desktop and Cursor can discover and call your database functions as tools. The complete English documentation is also available as a single plain-text file: [llms-full.txt](https://www.pgarachne.com/llms-full.txt). ## Docs - [Quick Start](https://www.pgarachne.com/en/quickstart/): Step-by-step Hello World: a PostgreSQL function with a parameter, a real-time SSE notification and a generated file, called from a plain web page. - [About & Architecture](https://www.pgarachne.com/en/about-architecture/): Project overview and how the JSON-RPC gateway is built. - [Architectural Decisions](https://www.pgarachne.com/en/architectural-decisions/): Why JSON-RPC, SSE, Go, and PostgreSQL functions were chosen over alternatives. - [Installation](https://www.pgarachne.com/en/installation/): Download prebuilt binaries or build from source. - [Configuration](https://www.pgarachne.com/en/configuration/): Environment variables and configuration reference. - [JSON-RPC](https://www.pgarachne.com/en/json-rpc/): Reference of the /jsonrpc endpoint: request and response format, writing functions, errors, authentication and idempotency. - [MCP (Model Context Protocol)](https://www.pgarachne.com/en/mcp/): Native MCP endpoint so AI clients can call PostgreSQL functions as tools. - [File Download](https://www.pgarachne.com/en/file-download/): Binary files and ZIP archives served by PostgreSQL functions via the /file endpoint. - [Real-time Notifications (SSE)](https://www.pgarachne.com/en/real-time-notifications/): Streaming PostgreSQL NOTIFY events to clients over Server-Sent Events. - [Security & Authentication](https://www.pgarachne.com/en/security-roles/): JWT authentication mapped to native PostgreSQL roles, and Row-Level Security. - [Deployment & HTTPS](https://www.pgarachne.com/en/deployment-https/): Running PgArachne behind a reverse proxy with TLS. - [Idempotency Key Cleanup](https://www.pgarachne.com/en/idempotency-cleanup/): Maintenance of the pgarachne.requests table. - [Metrics (Prometheus)](https://www.pgarachne.com/en/metrics/): Built-in Prometheus metrics endpoint. - [Error Codes](https://www.pgarachne.com/en/error-codes/): Reference of API error codes and their meaning. - [Comparison: PgArachne vs. PostgREST](https://www.pgarachne.com/en/comparison/): How PgArachne differs from PostgREST. - [Tools](https://www.pgarachne.com/en/tools/): API Explorer, SSE tester, JWT helper, and macOS toolbar app. ## Optional - [What's New](https://www.pgarachne.com/en/whats-new/): Changelog and release notes. - [License & Trademark](https://www.pgarachne.com/en/license/): Licensing terms and trademark usage. - [Support the Development](https://www.pgarachne.com/en/support-donate/): Ways to support the project.