RESTHeart

The Agent-Ready Backend for MongoDB
RESTHeart exposes your data through a native MCP server and full REST and GraphQL APIs, so AI agents and developers can read and write without custom integration code.

RESTHeart gives AI agents and developers instant, secure access to MongoDB. It ships with a native MCP server that any MCP-compatible client (Claude, Claude Code, Cursor, VS Code) can connect to out of the box, plus full REST, GraphQL, and WebSocket APIs for traditional application development. Built-in authentication and authorization, zero backend boilerplate, and a plugin framework for custom business logic when you need it.
Available as a Docker image and GraalVM native binary. Built on Java 25, Undertow, and virtual threads.
Core capabilities:
- MCP Server: Native Model Context Protocol server. Connect any MCP-compatible AI client (Claude, Claude Code, Cursor, VS Code) directly to your MongoDB data with one line of config.
- 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
- IoT / MQTT: Connect devices and ingest telemetry directly into MongoDB (coming soon)