A demo MCP server for MongoDB built using Embabel. It showcases how AI agents can interact with MongoDB through the Model Context Protocol, enabling operations such as listing databases, fetching collections, executing simple and complex queries, managing indexes, creating collections, and inserting documents
MCPpedia last refreshed this data
Embabel Mongo MCP Server is an MCP server that a demo MCP server for MongoDB built using Embabel. It showcases how AI agents can interact with MongoDB through the Model Context Protocol, enabling operations such as listing databases, fetching collections, executing simple and complex queries, managing indexes, creating collections, and inserting documents. Its tool list has not been published yet over stdio and sse, requires no API key, and scores 30/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"embabel-mongo-server": {
"args": [
"-y",
"mcp-remote",
"http://localhost:8080/sse"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
This repository demonstrates how to build a MongoDB MCP Server using the Embabel Framework and Spring Boot. The application acts as a bridge between AI agents (like Claude Desktop) and your MongoDB Database, allowing the AI to list databases, run complex queries, and insert documents through natural language.
This server supports HTTP transport. Be the first to test it - help the community know if it works.
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in data
Token-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLite
Extract data from any website with thousands of scrapers, crawlers, and automations on Apify Store ⚡
Firecrawl, the context API for AI agents: search, scrape, interact with the web, plus paper search.
Manage Supabase projects — databases, auth, storage, and edge functions
MCP Security Weekly
Get CVE alerts and security updates for Embabel Mongo Mcp Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
This repository demonstrates how to build a MongoDB MCP Server using the Embabel Framework and Spring Boot. The application acts as a bridge between AI agents (like Claude Desktop) and your MongoDB Database, allowing the AI to list databases, run complex queries, and insert documents through natural language.
⚠️ Note: This is not an official MongoDB MCP server. It is a demo MCP server created specifically to demonstrate how developers can build their own MCP servers that interact with databases using the Embabel Framework.
📖 Complete Guide: For detailed explanations and a full code walkthrough, read our comprehensive tutorial.
👉 Build MongoDB MCP Server Using Embabel Framework
🎥 Video Tutorial: Prefer hands-on learning? Watch our step-by-step implementation guide.
👉 YouTube Tutorial - Build a MongoDB MCP Server Using Embabel Framework | Chat With Your Database using AI
This application showcases how to connect AI agents to a Database using the MCP Server:
@Export annotation to turn Java service methods into AI tools.Before running this application, ensure you have:
git clone https://github.com/BootcampToProd/embabel-mongo-mcp-server.git
cd embabel-mongo-mcp-server
Provide your OpenRouter API key and MongoDB connection details.
OPENAI_API_KEY={YOUR_OPENROUTER_API_KEY}
MONGO_HOST=localhost
MONGO_PORT=27017
mvn clean install
mvn spring-boot:run
The server will start on http://localhost:8080. The MCP endpoint is exposed at /sse.
You can test the server using Claude Desktop or the MCP Inspector.
Open your Claude Desktop configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonAdd the following configuration:
{
"mcpServers": {
"embabel-mongo-server": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"http://localhost:8080/sse"
]
}
}
}
Restart Claude Desktop. You should see your mcp server and available tools.
Ask Claude:
If you want to debug the tools manually:
npx @modelcontextprotocol/inspector