0.1.0 • Published 4 months ago

cursor-mcp-mongodb v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

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-mongodb

Usage

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 'john@example.com', age 30"
  • "Find all documents where age > 25"
  • "Update user with email 'john@example.com' 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 test

License

MIT

0.1.0

4 months ago