Meilisearch
About
Interact & query with Meilisearch (Full-text & semantic search API)
Details
- Author
- meilisearch
- GitHub stars
- 193
- Downloads
- 510
- Categories
- Developer Tools, Search, Database, API
Jump to
- Index and document management (create, update, delete)
- Smart search with filters, sorting, and facets
- Settings configuration for ranking and relevancy
- Task monitoring and system operations tracking
- API key management for access control
- Health monitoring and system statistics
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
Install the package via pip (pip install meilisearch-mcp) or uvx (uvx -n meilisearch-mcp). Configure an MCP client (e.g., Claude Desktop) by adding a server entry to claude_desktop_config.json with the command uvx and args ["-n", "meilisearch-mcp"]. Ensure a running Meilisearch instance is accessible (e.g., via Docker: docker run -d -p 7700:7700 getmeili/meilisearch:v1.28). Environment variables MEILI_HTTP_ADDR and MEILI_MASTER_KEY can set default connection settings.
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.




