Skip to main content
Glama

MongoDB MCP Server

by jonfreeland

get_indexes

Retrieve comprehensive details about MongoDB collection indexes, including names, fields, types, sizes, options, and usage statistics. Simplify database analysis and optimization with structured index insights.

Instructions

Get information about indexes on a collection.

Returns details about:

  • Index names and fields
  • Index types (single field, compound, text, etc.)
  • Index sizes
  • Index options
  • Usage statistics

Input Schema

NameRequiredDescriptionDefault
collectionYesCollection name
databaseNoDatabase name (optional if default database is configured)

Input Schema (JSON Schema)

{ "properties": { "collection": { "description": "Collection name", "type": "string" }, "database": { "description": "Database name (optional if default database is configured)", "type": "string" } }, "required": [ "collection" ], "type": "object" }

You must be authenticated.

Other Tools from MongoDB MCP Server

Related Tools

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/jonfreeland/mongodb-mcp'

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