Meilisearch
About
Interact & query with Meilisearch (Full-text & semantic search API)
Details
- License
- MIT
Explore
- π Index & Document Management - Create, update, and manage search indices
- π Smart Search - Search across single or multiple indices with advanced filtering
- βοΈ Settings Configuration - Fine-tune search relevancy and performance
- π Task Monitoring - Track indexing progress and system operations
- π API Key Management - Secure access control
- π₯ Health Monitoring - Keep tabs on your Meilisearch instance
- π Python Implementation - TypeScript version also available
git checkout -b feature/your-feature-name
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
MeilisearchCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
- Python β₯ 3.9
- Running Meilisearch instance
- MCP-compatible client (Claude Desktop, OpenAI agents, etc.)
Get up and running in just 3 steps!
Add this to your claude_desktop_config.json:
json{
"mcpServers": {
"meilisearch": {
"command": "uvx",
"args": ["-n", "meilisearch-mcp"]
}
}
}
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
uv pip install -e .
Configure default connection settings:
MEILI_HTTP_ADDR=http://localhost:7700 # Default Meilisearch URL
MEILI_MASTER_KEY=your_master_key # Optional: Default API key
1. Start Meilisearch:
docker run -d -p 7700:7700 getmeili/meilisearch:v1.28
2. Install Development Dependencies:
uv pip install -r requirements-dev.txt
3. Run Tests:
python -m pytest tests/ -v
4. Format Code:
black src/ tests/
pip install uv
This project includes comprehensive integration tests that verify MCP tool functionality:
mypy src/
flake8 src/ tests/
pip install --upgrade meilisearch-mcp
```
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"meilisearch": {
"meilisearch-mcp": {
"command": "uvx",
"args": [
"-n",
"meilisearch-mcp"
]
}
}
}
}
McpServers
{
"meilisearch-mcp": {
"command": "uvx",
"args": [
"-n",
"meilisearch-mcp"
]
}
}
<div align="center">
</div>
<h1 align="center">Meilisearch MCP Server</h1>
<h4 align="center">
<a href="https://github.com/meilisearch/meilisearch">Meilisearch</a> |
<a href="https://www.meilisearch.com/cloud?utm_campaign=oss&utm_source=github&utm_medium=meilisearch-mcp">Meilisearch Cloud</a> |
<a href="https://www.meilisearch.com/docs">Documentation</a> |
<a href="https://discord.meilisearch.com">Discord</a>
</h4>
<p align="center">
<a href="https://pypi.org/project/meilisearch-mcp/"></a>
<a href="https://pypi.org/project/meilisearch-mcp/"></a>
<a href="https://github.com/meilisearch/meilisearch-mcp/actions"></a>
<a href="https://github.com/meilisearch/meilisearch-mcp/blob/main/LICENSE"></a>
<a href="https://pypi.org/project/meilisearch-mcp/"></a>
</p>
<p align="center">β‘ Connect any LLM to Meilisearch and supercharge your AI with lightning-fast search capabilities! π</p>
π€ What is this?
The Meilisearch MCP Server is a Model Context Protocol server that enables any MCP-compatible client (including Claude, OpenAI agents, and other LLMs) to interact with Meilisearch. This stdio-based server allows AI assistants to manage search indices, perform searches, and handle your data through natural conversation.
Why use this?
- π€ Universal Compatibility - Works with any MCP client, not just Claude
- π£οΈ Natural Language Control - Manage Meilisearch through conversation with any LLM
- π Zero Learning Curve - No need to learn Meilisearch's API
- π§ Full Feature Access - All Meilisearch capabilities at your fingertips
- π Dynamic Connections - Switch between Meilisearch instances on the fly
- π‘ stdio Transport - Currently uses stdio; native Meilisearch MCP support coming soon!
β¨ Key Features
- π Index & Document Management - Create, update, and manage search indices
- π Smart Search - Search across single or multiple indices with advanced filtering
- βοΈ Settings Configuration - Fine-tune search relevancy and performance
- π Task Monitoring - Track indexing progress and system operations
- π API Key Management - Secure access control
- π₯ Health Monitoring - Keep tabs on your Meilisearch instance
- π Python Implementation - TypeScript version also available
π Quick Start
Get up and running in just 3 steps!
1οΈβ£ Install the package
# Using pip
pip install meilisearch-mcp
Or using uvx (recommended)
uvx -n meilisearch-mcp
2οΈβ£ Configure Claude Desktop
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"meilisearch": {
"command": "uvx",
"args": ["-n", "meilisearch-mcp"]
}
}
}
3οΈβ£ Start Meilisearch
# Using Docker (recommended)
docker run -d -p 7700:7700 getmeili/meilisearch:v1.28
Or using Homebrew
brew install meilisearch
meilisearch
That's it! Now you can ask your AI assistant to search and manage your Meilisearch data! π
π Examples
π¬ Talk to your AI assistant naturally:
You: "Create a new index called 'products' with 'id' as the primary key"
AI: I'll create that index for you... β Index 'products' created successfully!
You: "Add some products to the index"
AI: I'll add those products... β Added 5 documents to 'products' index
You: "Search for products under $50 with 'electronics' in the category"
AI: I'll search for those products... Found 12 matching products!
π Advanced Search Example:
You: "Search across all my indices for 'machine learning' and sort by date"
AI: Searching across all indices... Found 47 results from 3 indices:
- 'blog_posts': 23 articles about ML
- 'documentation': 15 technical guides
- 'tutorials': 9 hands-on tutorials
π§ Installation
Prerequisites
- Python β₯ 3.9
- Running Meilisearch instance
- MCP-compatible client (Claude Desktop, OpenAI agents, etc.)
From PyPI
pip install meilisearch-mcp
From Source (for development)
# Clone repository
git clone https://github.com/meilisearch/meilisearch-mcp.git
cd meilisearch-mcp
Create virtual environment and install
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
uv pip install -e .
Using Docker
Perfect for containerized environments like n8n workflows!
From Docker Hub
# Pull the latest image
docker pull getmeili/meilisearch-mcp:latest
Or a specific version
docker pull getmeili/meilisearch-mcp:0.5.0
Run the container
docker run -it \
-e MEILI_HTTP_ADDR=http://your-meilisearch:7700 \
-e MEILI_MASTER_KEY=your-master-key \
getmeili/meilisearch-mcp:latest
Build from Source
# Build your own image
docker build -t meilisearch-mcp .
docker run -it \
-e MEILI_HTTP_ADDR=http://your-meilisearch:7700 \
-e MEILI_MASTER_KEY=your-master-key \
meilisearch-mcp
Integration with n8n
For n8n workflows, you can use the Docker image directly in your setup:
meilisearch-mcp:
image: getmeili/meilisearch-mcp:latest
environment:
- MEILI_HTTP_ADDR=http://meilisearch:7700
- MEILI_MASTER_KEY=masterKey
π οΈ What Can You Do?
<details>
<summary><b>π Connection Management</b></summary>
- View current connection settings
- Switch between Meilisearch instances dynamically
- Update API keys on the fly
</details>
<details>
<summary><b>π Index Operations</b></summary>
- Create new indices with custom primary keys
- List all indices with stats
- Delete indices and their data
- Get detailed index metrics
</details>
<details>
<summary><b>π Document Management</b></summary>
- Add or update documents
- Retrieve documents with pagination
- Bulk import data
</details>
<details>
<summary><b>π Search Capabilities</b></summary>
- Search with filters, sorting, and facets
- Multi-index search
- Semantic search with vectors
- Hybrid search (keyword + semantic)
</details>
<details>
<summary><b>βοΈ Settings & Configuration</b></summary>
- Configure ranking rules
- Set up faceting and filtering
- Manage searchable attributes
- Customize typo tolerance
</details>
<details>
<summary><b>π Security</b></summary>
- Create and manage API keys
- Set granular permissions
- Monitor key usage
β οΈ Note: While you can add and update hosts and API keys directly in chat for convenience, this approach is primarily designed for development use cases (like connecting to multiple instances on the fly). It does not follow best MCP security practices and should not be used in production environments without proper safeguards.
</details>
<details>
<summary><b>π Monitoring & Health</b></summary>
- Health checks
- System statistics
- Task monitoring
- Version information
</details>
π Environment Variables
Configure default connection settings:
MEILI_HTTP_ADDR=http://localhost:7700 # Default Meilisearch URL
MEILI_MASTER_KEY=your_master_key # Optional: Default API key
π» Development
Setting Up Development Environment
1. Start Meilisearch:
docker run -d -p 7700:7700 getmeili/meilisearch:v1.28
2. Install Development Dependencies:
uv pip install -r requirements-dev.txt
3. Run Tests:
python -m pytest tests/ -v
4. Format Code:
black src/ tests/
Testing with MCP Inspector
β¦
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.


