restheart
The Open Source Backend for MongoDB
RESTHeart is an open-source backend platform that transforms MongoDB databases into fully-featured REST, GraphQL, WebSocket, and Server-Sent Events APIs with built-in authentication and authorization. It includes Sophia, an MCP server that exposes RESTHeart's documentation and plugin development interfaces to AI coding assistants such as Claude Code, Cursor, and VS Code. Developers can query MongoDB collections through declarative HTTP endpoints without writing route handlers, and extend functionality through plugins written in Java, Kotlin, JavaScript, or TypeScript.
Key Features
Use Cases
- 01Building REST APIs for mobile and web applications backed by MongoDB without writing API routes
- 02Creating real-time dashboards and IoT data feeds using WebSocket change streams
- 03Developing GraphQL APIs with automatic MongoDB query translation
- 04Integrating AI coding assistants with RESTHeart documentation and plugin development through the Sophia MCP server
- 05Implementing authentication and authorization for MongoDB-backed applications using declarative ACL rules
- 06Extending data API functionality with custom business logic through the plugin framework
Related MCP Servers
View moremarkitdown
Python tool for converting files and office documents to Markdown.
firecrawl
The context API to search, scrape, and interact with the web at scale. 🔥
prompts.chat
f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.
langflow
Langflow is a powerful tool for building and deploying AI-powered agents and workflows.
restheart — FAQ
What is RESTHeart?+
RESTHeart is an open-source backend platform that automatically generates REST, GraphQL, WebSocket, and SSE APIs from MongoDB databases, with built-in authentication, authorization, and a plugin framework. It includes Sophia, an MCP server that connects AI coding assistants to RESTHeart's documentation and plugin development API.
How do I install RESTHeart?+
For self-hosted deployment, download the docker-compose.yml file and run docker compose up. Alternatively, use the fully managed RESTHeart Cloud which includes the Sophia MCP server pre-configured for AI assistant integration.
Which AI clients work with the Sophia MCP server?+
The Sophia MCP server works with Claude Code, Cursor, VS Code, and other AI coding assistants that support the Model Context Protocol.
Do I need API keys or a MongoDB instance to use RESTHeart?+
You need a MongoDB instance to connect RESTHeart to. RESTHeart Cloud provides both the platform and MongoDB managed together, while self-hosted deployments require you to provide your own MongoDB instance.
Is RESTHeart free to use?+
RESTHeart core is free and open source under the GNU AGPL v3 license. Plugins can be distributed under any license including proprietary ones when they only depend on the Apache-licensed restheart-commons library.
Can I extend RESTHeart with custom logic?+
Yes, RESTHeart provides a plugin framework that supports custom services, interceptors, and initializers written in Java, Kotlin, JavaScript, or TypeScript for functionality beyond the declarative data API.
How do I install restheart?+
Open the source repository on GitHub and follow its README. restheart is a mcp server — MCP Agents Market links you directly to the official repo.
Is restheart free?+
restheart is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.