MCP server tools
Each tool of the MCP server, with its arguments and whether it reads or writes.
Tools
| Tool | What it does | Required arguments | Optional arguments | Read-only | Destructive |
|---|---|---|---|---|---|
list-databases | Lists the databases. | None | None | Yes | No |
list-collections | Lists the collections of a database. | database | None | Yes | No |
collection-schema | Infers the schema of a collection from a sample of documents. | databasecollection | sampleSizeresponseBytesLimit | Yes | No |
collection-indexes | Lists the classic and search indexes of a collection. | databasecollection | None | Yes | No |
collection-storage-size | Gives the size a collection takes. | databasecollection | None | Yes | No |
db-stats | Gives the statistics of a database. | database | None | Yes | No |
find | Finds documents with a filter, a projection, a sort and a limit. | databasecollection | filterprojectionlimitsortresponseBytesLimit | Yes | No |
aggregate | Runs an aggregation on a collection, without $out or $merge. | databasecollectionpipeline | responseBytesLimit | Yes | No |
aggregate-db | Runs an aggregation on a database, without $out or $merge. | databasepipeline | responseBytesLimit | Yes | No |
count | Counts the documents that match a filter. | databasecollection | query | Yes | No |
explain | Explains how a find, an aggregate or a count runs. | databasecollectionmethod | findaggregatecountverbosity | Yes | No |
export | Exports the result of a query to a resource the client can read. | databasecollectionexportTitleexportTarget | jsonExportFormat | Yes | No |
mongodb-logs | Reads the last lines of the node log or its start-up warnings. | None | typeglobalstartupWarningslimit | Yes | No |
insert-many | Inserts documents into a collection. | databasecollectiondocuments | None | No | No |
create-index | Creates an index on a collection. | databasecollectiondefinition | name | No | No |
create-collection | Creates a collection. | databasecollection | None | No | No |
update-many | Updates the documents that match a filter. | databasecollectionupdate | filterupsert | No | Yes |
rename-collection | Renames a collection. | databasecollectionnewName | dropTarget | No | Yes |
delete-many | Deletes the documents that match a filter. | databasecollection | filter | No | Yes |
drop-index | Drops a classic or search index. | databasecollectionindexNametype | classicsearch | No | Yes |
drop-collection | Drops a collection. | databasecollection | None | No | Yes |
drop-database | Drops a database. | database | None | No | Yes |
connect | Returns the connection identifier, which the server sets from the authenticated user. | connectionString | connectionName | Yes | No |
disconnect | Closes the connection; the server opens it again on the next call. | None | None | Yes | No |
list-connections | Lists the connection of the authenticated user. | None | None | Yes | No |