cursor-mcp-mongodb
v0.1.0
Published
MongoDB Model Context Protocol for Cursor
Maintainers
Readme
Cursor MCP for MongoDB
A Model Context Protocol (MCP) for MongoDB integration with Cursor IDE. This package allows you to interact with MongoDB directly from Cursor, enabling database operations without relying on the command line interface.
Features
- Execute MongoDB queries directly from Cursor
- Create, read, update, and delete documents
- Create and manage collections and databases
- Run aggregation pipelines
- View and manage indexes
- Integrated with Cursor's MCP system for seamless experience
Installation
bun add cursor-mcp-mongodbUsage
Once installed, this MCP will be available in Cursor IDE. You can interact with MongoDB using natural language queries through Cursor.
Examples of what you can do:
- "Connect to my MongoDB database at mongodb://localhost:27017/mydb"
- "Create a new user collection with fields: name, email, and age"
- "Insert a document with name 'John Doe', email '[email protected]', age 30"
- "Find all documents where age > 25"
- "Update user with email '[email protected]' to have age 31"
- "Delete users where name contains 'test'"
Development
To contribute to this project:
# Clone the repository
git clone https://github.com/yourusername/cursor-mcp-mongodb.git
# Install dependencies
bun install
# Build the project
bun run build
# Run tests
bun testLicense
MIT
