Meilisearch MCP Server is a Model Context Protocol (MCP) server whose goal is to enable any MCP-compatible client (including Claude, OpenAI agents, and other LLMs) to interact with Meilisearch. This server is based on stdio transport and allows AI assistants to manage search indexes, perform searches, and handle data through natural conversation.
Key Capabilities
- Universal compatibility: Works with any MCP client, not limited to Claude.
- Natural language control: Manage Meilisearch through conversation without needing to learn its API.
- Full feature access: Covers the various capabilities of Meilisearch.
- Dynamic connections: Switch between different Meilisearch instances at runtime.
- Index and document management: Create, update, and manage search indexes, add or update documents, retrieve documents with pagination, and bulk import data.
- Intelligent search: Supports single-index or multi-index search, with advanced filtering, sorting, and faceting; supports vector semantic search and hybrid search combining keywords with semantics.
- Settings configuration: Adjust ranking rules, faceting and filtering, searchable attributes, typo tolerance, etc., to fine-tune search relevance and performance.
- Task monitoring: Track indexing progress and system operations, view tasks, and cancel pending or queued tasks.
- API key management: Create and manage API keys, set fine-grained permissions, and monitor key usage.
- Health monitoring: Provides basic health checks and comprehensive health status.
- Structured tool output: Every tool that returns data provides structuredContent and text according to the latest MCP specification.
- Modern MCP stack: Based on the official MCP Python SDK v2 (specification 2026-07-28), backward compatible with older MCP clients.
- Python implementation: A TypeScript version is also provided.
Usage This project provides a three-step quick start: install the package, configure Claude Desktop (add the configuration in claude_desktop_config.json), and start Meilisearch. After that, you can use natural language to have the AI assistant search and manage Meilisearch data.
Default connection settings can be configured through environment variables. Setting up the development environment includes: starting Meilisearch with Docker(docker run -d -p 7700:7700 getmeili/meilisearch:v1.28), or installing with brew; installing development dependencies (uv pip install -r requirements-dev.txt); running tests (python -m pytest tests/ -v); formatting code with black. You can also install from source for development, or use the Docker image to adapt to containerized environments (such as n8n workflows).
Available Tools Includes get-connection-settings, update-connection-settings, create-index, list-indexes, delete-index, get-index-metrics, get-documents, add-documents, search, get-settings, update-settings, get-keys, create-key, delete-key, get-task, get-tasks, cancel-tasks, health-check, get-health-status, get-version, get-stats, get-system-info.
Use Cases Suitable for development and integration scenarios that need to operate Meilisearch through an LLM conversational interface, such as managing search indexes in Claude Desktop or OpenAI agents, performing searches, bulk importing data, monitoring tasks and health status, and dynamically switching between different Meilisearch instances.
Limitations and Notes
- Currently uses stdio transport; native Meilisearch MCP support is not yet available.
- Although hosts and API keys can be added and updated directly in chat for development use (such as dynamically connecting multiple instances), this approach does not conform to MCP security best practices and should not be used in production without appropriate safeguards.
- Testing requires a locally running Meilisearch instance (http://localhost:7700)。
- The project uses the MIT License.
- Release process automation: When the version number in pyproject.toml changes on the main branch, a GitHub Action automatically builds the Python package, publishes it to PyPI via trusted publishing, and creates a GitHub Release.