Skip to main content
Glama
meilisearch

Meilisearch MCP Server

Official
by meilisearch

get-system-info

Retrieve system-level details from the Meilisearch MCP Server to monitor and analyze server performance and configurations for efficient management.

Instructions

Get system-level information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP tool handler that executes the get-system-info tool by calling the monitoring manager's get_system_information method and formatting the result as text content.
    elif name == "get-system-info":
        info = self.meili_client.monitoring.get_system_information()
        self.logger.info("System information retrieved", info=info)
        return [
            types.TextContent(
                type="text", text=f"System information: {info}"
            )
        ]
  • Registration of the get-system-info tool in the list_tools handler, including its name, description, and input schema.
    types.Tool(
        name="get-system-info",
        description="Get system-level information",
        inputSchema={
            "type": "object",
            "properties": {},
            "additionalProperties": False,
        },
    ),
  • Input schema for the get-system-info tool, which takes no parameters.
        inputSchema={
            "type": "object",
            "properties": {},
            "additionalProperties": False,
        },
    ),
  • Helper method in MonitoringManager that fetches and formats system information from the Meilisearch client, including version, database stats, and indexes.
    def get_system_information(self) -> Dict[str, Any]:
        """Get system-level information"""
        try:
            version = self.client.get_version()
            stats = self.client.get_all_stats()
    
            return {
                "version": version,
                "database_size": stats["databaseSize"],
                "last_update": stats["lastUpdate"],
                "indexes": stats["indexes"],
            }
        except Exception as e:
            raise Exception(f"Failed to get system information: {str(e)}")

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

Other Tools

Related Tools

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