Open-source MongoDB alternative using PostgreSQL as backend.
## FerretDB MCP Server: MongoDB-Compatible PostgreSQL Backend The **FerretDB MCP Server** brings MongoDB-compatible database operations to Google Antigravity through a truly open-source PostgreSQL backend. This integration enables developers to use familiar MongoDB query syntax while leveraging the reliability and maturity of PostgreSQL as the underlying storage engine. ### Why FerretDB MCP? FerretDB offers the best of both worlds - MongoDB compatibility without vendor lock-in: - **True Open Source**: Apache 2.0 licensed, no proprietary components - **PostgreSQL Backend**: Battle-tested reliability with MongoDB API - **Drop-in Replacement**: Migrate from MongoDB without code changes - **SQL Compatibility**: Query data with both MongoDB queries and SQL - **Antigravity Integration**: Natural language to MongoDB operations ### Key Features #### 1. MongoDB-Compatible Operations ```javascript // Insert documents db.users.insertOne({ name: "John Doe", email: "john@example.com", preferences: { theme: "dark", notifications: true } }); // Find with filters db.users.find({ "preferences.theme": "dark" }); // Aggregation pipelines db.orders.aggregate([ { $match: { status: "completed" } }, { $group: { _id: "$customerId", total: { $sum: "$amount" } } } ]); ``` #### 2. PostgreSQL Power Features Access PostgreSQL capabilities through FerretDB: - **ACID Transactions**: Full transaction support across collections - **JSON Indexing**: GIN indexes for optimal query performance - **Backup/Recovery**: Use pg_dump and pg_restore for data protection - **Replication**: Leverage PostgreSQL streaming replication #### 3. Migration Support Seamlessly migrate existing MongoDB applications: - Compatible with MongoDB drivers (Node.js, Python, Java, Go) - Supports common MongoDB operations and queries - Preserves document structure and relationships - Gradual migration path from MongoDB to PostgreSQL ### Configuration ```json { "mcpServers": { "ferretdb": { "command": "npx", "args": ["-y", "@anthropic/mcp-ferretdb"], "env": { "FERRETDB_HOST": "localhost", "FERRETDB_PORT": "27017", "POSTGRES_URI": "postgresql://user:pass@localhost/ferretdb" } } } } ``` ### Use Cases **MongoDB Migration**: Organizations moving away from MongoDB licensing can adopt FerretDB while maintaining application compatibility. **Hybrid Queries**: Developers can use MongoDB-style queries for document operations while accessing the same data via SQL for analytics and reporting. **Cost Optimization**: Eliminate MongoDB licensing costs while using familiar PostgreSQL infrastructure and tooling. The FerretDB MCP Server provides a freedom-preserving path for MongoDB users seeking open-source alternatives without sacrificing compatibility.
{
"mcpServers": {
"ferretdb": {}
}
}