DEV.co
MCP Servers · SoftInstigate

restheart

RESTHeart is a REST/GraphQL backend for MongoDB that exposes data through native APIs and a Model Context Protocol (MCP) server, enabling AI agents and developers to build applications without custom integration code. It runs on Java with Docker support and includes authentication, authorization, WebSocket, and real-time monitoring out of the box.

Source: GitHub — github.com/SoftInstigate/restheart
879
GitHub stars
177
Forks
Java
Primary language
AGPL-3.0
License (OSI-approved)

Key facts

Objective fields from the source. Values we can't verify are shown as “Unknown” rather than guessed.

FieldValue
RepositorySoftInstigate/restheart
OwnerSoftInstigate
Primary languageJava
LicenseAGPL-3.0 — OSI-approved
Stars879
Forks177
Open issues22
Latest release9.5.0 (2026-07-06)
Last updated2026-07-06
Sourcehttps://github.com/SoftInstigate/restheart

What restheart is

Built on Java 25, Undertow, and virtual threads, RESTHeart provides CRUD, aggregations, filtering, sorting, pagination, GraphQL schema mapping, WebSocket change streams, and a native MCP server. It supports JWT, OAuth2, LDAP authentication; includes a plugin system for Java, Kotlin, JavaScript, and TypeScript extensions; and ships with Prometheus-compatible metrics.

Quickstart

Get the restheart source

Clone the repository and explore it locally.

terminalbash
git clone https://github.com/SoftInstigate/restheart.gitcd restheart# follow the project's README for install & configuration

Need it deployed, integrated, or customized instead? DEV.co ships production installs.

Best use cases

AI agent backends

Integrate MongoDB data with Claude, Cursor, or other MCP-compatible AI clients via native MCP server. No custom integration code needed; agents read/write MongoDB directly.

Rapid API development

Skip CRUD boilerplate for REST and GraphQL. Instant CRUD, filtering, sorting, and pagination on MongoDB collections—useful for MVPs, internal tools, and prototypes.

Real-time and IoT backends

WebSocket change streams, Server-Sent Events, and Prometheus metrics support live dashboards, notifications, and telemetry ingestion without external infrastructure.

Implementation considerations

  • AGPLv3 license requires source disclosure if deployed over a network unless a commercial license is obtained; review your deployment model and compliance requirements.
  • Default credentials (admin/secret) must be changed in production; configure JWT, OAuth2, or LDAP authentication and set up ACL rules for multi-tenant or sensitive workloads.
  • Java 25 and Undertow dependency; ensure your infrastructure supports Java runtime or use provided Docker/GraalVM native binary.
  • Plugin system (Java, Kotlin, JS/TS) allows custom business logic but requires development effort; simple use cases may not need plugins.
  • Monitoring via Prometheus endpoint and `/metrics-ui` dashboard; integrate with external stacks (Grafana, Datadog) or rely on built-in UI.

When to avoid it — and what to weigh

  • Strict relational schema requirements — RESTHeart is MongoDB-first; complex multi-table joins and ACID transactions across collections are not native strengths. For SQL workloads, use traditional ORMs.
  • Proprietary or commercial-only licensing needed — AGPLv3 requires source code disclosure for networked use. If you cannot meet AGPLv3 terms, you must negotiate a commercial license with SoftInstigate (not provided in data).
  • Minimal operational overhead — Adds a Java middleware layer; requires MongoDB infrastructure, Docker orchestration, and monitoring. For ultra-simple CRUD, serverless functions may be simpler.
  • Offline-first or edge deployments — RESTHeart is server-centric and requires active MongoDB connection. Not suitable for client-side sync or edge-only scenarios.

License & commercial use

Licensed under AGPLv3 (GNU Affero General Public License v3.0). AGPLv3 requires that if you deploy RESTHeart over a network and modify it, you must make source code available to network users under the same license. This is a copyleft obligation and stricter than permissive licenses.

Commercial use is subject to AGPLv3 terms. If you deploy RESTHeart as a networked service (e.g., SaaS, API backend), you must either (1) comply with AGPLv3 source disclosure requirements, or (2) obtain a commercial license from SoftInstigate (not detailed in provided data). Requires legal review before deployment.

DEV.co evaluation signals

Editorial assessment — not user reviews. Directional, with an explicit confidence level.

SignalAssessment
MaintenanceActive
DocumentationAdequate
License clarityNeeds review
Deployment complexityLow
DEV.co fitStrong
Assessment confidenceHigh
Security considerations

Built-in authentication (JWT, OAuth2, LDAP, MongoDB-based users) and ACL authorization. Default credentials must be replaced in production. AGPLv3 deployment model requires source code disclosure unless licensed commercially—validate compliance with your security and IP policies. No specific details on vulnerability disclosure, penetration testing history, or encryption provided in data; requires independent security review.

Alternatives to consider

PostgREST (PostgreSQL)

Similar auto-REST API from SQL, but uses PostgreSQL not MongoDB; lighter permissive license (MIT); suitable for relational workloads.

MongoDB Atlas Data API (deprecated) + custom Express backend

MongoDB's native API (being phased out); custom Node.js/Express offers more control and flexibility but requires more boilerplate code.

Hasura (GraphQL)

Full-stack GraphQL engine with better real-time (subscriptions), multi-database support, and business logic; permissive license but more opinionated architecture.

Software development agency

Build on restheart with DEV.co software developers

Start with Docker Compose or deploy on RESTHeart Cloud. Connect your AI agents via MCP or use REST/GraphQL APIs. Review AGPLv3 licensing before production.

Talk to DEV.co

Related open-source tools

Surfaced by semantic similarity across the DEV.co open-source index.

Related on DEV.co

Explore the category and the services that help you build with it.

restheart FAQ

Can I use RESTHeart commercially without source disclosure?
Only if you obtain a commercial license from SoftInstigate. AGPLv3 requires source disclosure for networked deployments. Commercial licensing details not in provided data; contact vendor.
What databases does RESTHeart support?
MongoDB natively. FerretDB integration (mentioned in docs) allows MongoDB API over PostgreSQL; requires separate FerretDB setup.
How do I connect AI agents (Claude, Cursor) to RESTHeart?
Use the native MCP server. Configure with one line in restheart.yml or connect to public demo endpoints (sophia-api.restheart.com). MCP clients (Claude, Claude Code, Cursor, VS Code) connect via HTTP transport or stdio.
Do I need to write custom code for REST/GraphQL CRUD?
No. RESTHeart auto-generates REST and GraphQL from MongoDB collections. Custom logic only via plugins (optional) if business rules are needed.

Work with a software development agency

From first prototype to production, DEV.co delivers software development services around tools like restheart. Our software development agency staffs experienced software developers and web developers for custom software development, web development, integrations, and ongoing support across mcp servers and beyond.

Ready to build a MongoDB backend with zero boilerplate?

Start with Docker Compose or deploy on RESTHeart Cloud. Connect your AI agents via MCP or use REST/GraphQL APIs. Review AGPLv3 licensing before production.