Skip to main content
Glama
meilisearch

Meilisearch MCP Server

Official
by meilisearch

get-stats

Retrieve database statistics directly from the Meilisearch MCP Server to monitor and analyze data performance. Simplifies interaction with Meilisearch via LLM interfaces for efficient insights.

Instructions

Get database statistics

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP tool handler for 'get-stats': calls MeilisearchClient.get_stats() and returns formatted stats as text content.
    elif name == "get-stats": stats = self.meili_client.get_stats() return [ types.TextContent(type="text", text=f"Database stats: {stats}") ]
  • Registration of the 'get-stats' tool in the server's list_tools handler, including name, description, and empty input schema.
    types.Tool( name="get-stats", description="Get database statistics", inputSchema={ "type": "object", "properties": {}, "additionalProperties": False, }, ),
  • Helper method in MeilisearchClient that proxies to the Meilisearch library's get_all_stats() for database statistics.
    def get_stats(self) -> Dict[str, Any]: """Get database stats""" return self.client.get_all_stats()

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