Skip to main content
Glama
officialpraise

MongoDB MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription
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

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
configServer configuration, supplied by the user either as environment variables or as startup arguments
debug-mongodbDebugging information for MongoDB connectivity issues. Tracks the last connectivity attempt and error information.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/officialpraise/mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server