LogoSTMCP
Download
mongodb-mcp-server

MongoDB MCP Server

A Model Context Protocol server for interacting with MongoDB databases and MongoDB Atlas, providing AI assistants with secure access to database operations and Atlas management tools.

Tools

1. atlas-list-orgs

Lists MongoDB Atlas organizations.

2. atlas-list-projects

Lists MongoDB Atlas projects.

3. atlas-create-project

Creates a new MongoDB Atlas project.

4. atlas-list-clusters

Lists MongoDB Atlas clusters.

5. atlas-inspect-cluster

Inspect a specific MongoDB Atlas cluster.

6. atlas-create-free-cluster

Create a free MongoDB Atlas cluster.

7. atlas-connect-cluster

Connects to MongoDB Atlas cluster.

8. atlas-inspect-access-list

Inspect IP/CIDR ranges with access to MongoDB Atlas clusters.

9. atlas-create-access-list

Configure IP/CIDR access list for MongoDB Atlas clusters.

10. atlas-list-db-users

List MongoDB Atlas database users.

11. atlas-create-db-user

Creates a MongoDB Atlas database user.

12. atlas-list-alerts

List MongoDB Atlas Alerts for a Project.

13. connect

Connect to a MongoDB instance.

14. find

Run a find query against a MongoDB collection.

15. aggregate

Run an aggregation against a MongoDB collection.

16. count

Get the number of documents in a MongoDB collection.

17. insert-one

Insert a single document into a MongoDB collection.

18. insert-many

Insert multiple documents into a MongoDB collection.

19. create-index

Create an index for a MongoDB collection.

20. update-one

Update a single document in a MongoDB collection.

21. update-many

Update multiple documents in a MongoDB collection.

22. rename-collection

Rename a MongoDB collection.

23. delete-one

Delete a single document from a MongoDB collection.

24. delete-many

Delete multiple documents from a MongoDB collection.

25. drop-collection

Remove a collection from a MongoDB database.

26. drop-database

Remove a MongoDB database.

27. list-databases

List all databases for a MongoDB connection.

28. list-collections

List all collections for a given database.

29. collection-indexes

Describe the indexes for a collection.

30. collection-schema

Describe the schema for a collection.

31. collection-storage-size

Get the size of a collection in MB.

32. db-stats

Return statistics about a MongoDB database.

33. export

Export query or aggregation results to EJSON format.

Open Graph image for MongoDB MCP Server

JSON Config

{
  "mcpServers": {
    "MongoDB": {
      "command": "npx",
      "args": [
        "-y",
        "mongodb-mcp-server",
        "--connectionString",
        "mongodb://localhost:27017/myDatabase",
        "--readOnly"
      ]
    }
  }
}

Useful Links

Information