RESTHeart
The Open Source Backend for MongoDB
Instant REST, GraphQL, and WebSocket APIs. No backend code.
Built-in authentication and authorization. Declarative, zero boilerplate.
Need custom logic? Extend it in Java, Kotlin, JavaScript, or TypeScript.
Plus Sophia, the AI assistant: chat with the docs, or vibe code via MCP.
Fully managed, no installation required. Or run it yourself, free and open source, see below.

Core capabilities:
- REST API: Full CRUD, aggregations, filtering, sorting, pagination
- GraphQL: Schema-driven mapping to MongoDB queries
- WebSocket: Real-time change streams and data sync
- SSE: Server-Sent Events for live dashboards, IoT feeds, and event streams
- Authentication and Authorization: JWT, OAuth2, LDAP, MongoDB-based users, ACL rules
- Plugin framework: Extend with Java, Kotlin, JavaScript, or TypeScript for custom business logic
- Sophia AI assistant: Chat with the docs in your browser, or connect Claude, Claude Code, Cursor, or VS Code to the MCP server to vibe code and configure your backend
- Metrics & Monitoring: Built-in Prometheus-compatible metrics endpoint with a real-time browser dashboard at
/metrics-ui, tracking request rates, latency percentiles, and HTTP status distribution - IoT / MQTT: Connect devices and ingest telemetry directly into MongoDB (coming soon)
Available as a Docker image and GraalVM native binary. Built on Java 25, Undertow, and virtual threads.
No comments yet
Be the first to share your take.