mongodb-js/mongodb-mcp-server
mongodb-mcp-server is hosted online, so all tools can be tested directly either in theInspector tabor in theOnline Client.
If you are the rightful owner of mongodb-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
A Model Context Protocol server for interacting with MongoDB Databases and MongoDB Atlas.
Try mongodb-mcp-server with chat:
Tools
Functions exposed to the LLM to take actions
aggregate
Run an aggregation against a MongoDB collection
collection-indexes
Describe the indexes for a collection
collection-schema
Describe the schema for a collection
collection-storage-size
Gets the size of the collection
connect
Connect to a MongoDB instance. The config resource captures if the server is already connected to a MongoDB cluster. If the user has configured a connection string or has previously called the connect tool, a connection is already established and there's no need to call this tool unless the user has explicitly requested to switch to a new MongoDB cluster.
count
Gets the number of documents in a MongoDB collection using db.collection.count() and query as an optional filter parameter
create-collection
Creates a new collection in a database. If the database doesn't exist, it will be created automatically.
create-index
Create an index for a collection
db-stats
Returns statistics that reflect the use state of a single database
delete-many
Removes all documents that match the filter from a MongoDB collection
drop-collection
Removes a collection or view from the database. The method also removes any indexes associated with the dropped collection.
drop-database
Removes the specified database, deleting the associated data files
drop-index
Drop an index for the provided database and collection.
explain
Returns statistics describing the execution of the winning plan chosen by the query optimizer for the evaluated method
export
Export a query or aggregation results in the specified EJSON format.
find
Run a find query against a MongoDB collection
insert-many
Insert an array of documents into a MongoDB collection
list-collections
List all collections for a given database
list-databases
List all databases for a MongoDB connection
mongodb-logs
Returns the most recent logged mongod events
rename-collection
Renames a collection in a MongoDB database
update-many
Updates all documents that match the specified filter for a collection
atlas-connect-cluster
Connect to MongoDB Atlas cluster
atlas-create-access-list
Allow Ip/CIDR ranges to access your MongoDB Atlas clusters.
atlas-create-db-user
Create an MongoDB Atlas database user
atlas-create-free-cluster
Create a free MongoDB Atlas cluster
atlas-create-project
Create a MongoDB Atlas project
atlas-get-performance-advisor
Get MongoDB Atlas performance advisor recommendations, which includes the operations: suggested indexes, drop index suggestions, schema suggestions, and a sample of the most recent (max 50) slow query logs
atlas-inspect-access-list
Inspect Ip/CIDR ranges with access to your MongoDB Atlas clusters.
atlas-inspect-cluster
Inspect MongoDB Atlas cluster
atlas-list-alerts
List MongoDB Atlas alerts
atlas-list-clusters
List MongoDB Atlas clusters
atlas-list-db-users
List MongoDB Atlas database users
atlas-list-orgs
List MongoDB Atlas organizations
atlas-list-projects
List MongoDB Atlas projects
Prompts
Interactive templates invoked by user choice
No prompts
Resources
Contextual data attached and managed by the client
config
URI: config://config
MIME: text/plain
Server configuration, supplied by the user either as environment variables or as startup arguments
debug-mongodb
URI: debug://mongodb
MIME: text/plain
Debugging information for MongoDB connectivity issues. Tracks the last connectivity attempt and error information.