Skip to main content
Glama
meilisearch

Meilisearch MCP Server

Official
by meilisearch

delete-index

Remove a specified Meilisearch index using its unique identifier (UID) to manage search data effectively.

Instructions

Delete a Meilisearch index

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uidYes

Implementation Reference

  • MCP tool handler for 'delete-index': executes deletion via IndexManager and returns success confirmation.
    elif name == "delete-index": result = self.meili_client.indexes.delete_index(arguments["uid"]) return [ types.TextContent( type="text", text=f"Successfully deleted index: {arguments['uid']}", ) ]
  • Registers the 'delete-index' tool in the list_tools handler, including its description and input schema (requires 'uid' string).
    types.Tool( name="delete-index", description="Delete a Meilisearch index", inputSchema={ "type": "object", "properties": {"uid": {"type": "string"}}, "required": ["uid"], "additionalProperties": False, }, ),
  • IndexManager helper method that wraps the official Meilisearch client's delete_index(uid).
    def delete_index(self, uid: str) -> Dict[str, Any]: """Delete an index""" try: return self.client.delete_index(uid) except Exception as e: raise Exception(f"Failed to delete index: {str(e)}")

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/meilisearch/meilisearch-mcp'

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