Meilisearch MCP Server
OfficialManage and query Meilisearch through MCP tools.
View and update Meilisearch connection URL/API key.
Check health, version, database stats, and system info.
Create, list, delete, and inspect indexes.
Retrieve and add documents.
Get and update index settings.
Search one or all indexes with filtering, sorting, pagination, and limits.
Get, list, and cancel tasks.
List, create, and delete API keys.
Note: the README marks this package deprecated in favor of Meilisearch's native
/mcpserver.
Provides a Model Context Protocol (MCP) server for interacting with Meilisearch through LLM interfaces, supporting index and document management, settings configuration, task monitoring, API key management, and search capabilities across single or multiple indices.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Meilisearch MCP Server search for 'machine learning tutorials' in the blog_posts index"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
This package is deprecated. Use the native Meilisearch MCP server instead.
Meilisearch now ships a built-in MCP server (Meilisearch v1.54 and later). It is exposed on the /mcp route of your instance over HTTP, so you do not need to install or run this Python package anymore.
👉 Follow the Meilisearch MCP guide to set it up.
This repository is a local stdio wrapper built before native support existed. It is no longer actively maintained and is kept only for existing users.
🤔 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 - Uses stdio only; for HTTP, use the native Meilisearch MCP server
Related MCP server: Perplexity MCP Server
✨ 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
🧱 Structured Tool Output - Every data-returning tool provides
structuredContentalongside text, per the latest MCP specification🔀 Modern MCP Stack - Built on the official MCP Python SDK v2 (spec 2026-07-28), backwards compatible with older MCP clients
🐍 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-mcp2️⃣ 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
meilisearchThat'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.10
Running Meilisearch instance
MCP-compatible client (Claude Desktop, OpenAI agents, etc.)
From PyPI
pip install meilisearch-mcpFrom 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:latestBuild 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-mcpIntegration 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?
View current connection settings
Switch between Meilisearch instances dynamically
Update API keys on the fly
Create new indices with custom primary keys
List all indices with stats
Delete indices and their data
Get detailed index metrics
Add or update documents
Retrieve documents with pagination
Bulk import data
Search with filters, sorting, and facets
Multi-index search
Semantic search with vectors
Hybrid search (keyword + semantic)
Configure ranking rules
Set up faceting and filtering
Manage searchable attributes
Customize typo tolerance
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.
Health checks
System statistics
Task monitoring
Version information
🌍 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
Start Meilisearch:
docker run -d -p 7700:7700 getmeili/meilisearch:v1.28Install Development Dependencies:
uv pip install -r requirements-dev.txtRun Tests:
python -m pytest tests/ -vFormat Code:
black src/ tests/
Testing with MCP Inspector
npx @modelcontextprotocol/inspector python -m src.meilisearch_mcp🤝 Community & Support
We'd love to hear from you! Here's how to get help and connect:
💬 Join our Discord - Chat with the community
🐛 Report Issues - Found a bug? Let us know!
💡 Feature Requests - Have an idea? We're listening!
📖 Meilisearch Docs - Learn more about Meilisearch
🤗 Contributing
We welcome contributions! Here's how to get started:
Fork the repository
Create your feature branch (
git checkout -b feature/amazing-feature)Write tests for your changes
Make your changes and run tests
Format your code with
blackCommit your changes (
git commit -m 'Add amazing feature')Push to your branch (
git push origin feature/amazing-feature)Open a Pull Request
See our Contributing Guidelines for more details.
📦 Release Process
This project uses automated versioning and publishing. When the version in pyproject.toml changes on the main branch, the package is automatically published to PyPI.
See the Release Process section for detailed instructions.
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
Available Tools
Connection Management
get-connection-settings: View current Meilisearch connection URL and API key statusupdate-connection-settings: Update URL and/or API key to connect to a different instance
Index Management
create-index: Create a new index with optional primary keylist-indexes: List all available indexesdelete-index: Delete an existing index and all its documentsget-index-metrics: Get detailed metrics for a specific index
Document Operations
get-documents: Retrieve documents from an index with paginationadd-documents: Add or update documents in an index
Search
search: Flexible search across single or multiple indices with filtering and sorting options
Settings Management
get-settings: View current settings for an indexupdate-settings: Update index settings (ranking, faceting, etc.)
API Key Management
get-keys: List all API keyscreate-key: Create new API key with specific permissionsdelete-key: Delete an existing API key
Task Management
get-task: Get information about a specific taskget-tasks: List tasks with optional filterscancel-tasks: Cancel pending or enqueued tasks
System Monitoring
health-check: Basic health checkget-health-status: Comprehensive health statusget-version: Get Meilisearch version informationget-stats: Get database statisticsget-system-info: Get system-level information
Development Setup
Prerequisites
Start Meilisearch server:
# Using Docker (recommended for development) docker run -d -p 7700:7700 getmeili/meilisearch:v1.28 # Or using brew (macOS) brew install meilisearch meilisearch # Or download from https://github.com/meilisearch/meilisearch/releasesInstall development tools:
# Install uv for Python package management pip install uv # Install Node.js for MCP Inspector testing # Visit https://nodejs.org/ or use your package manager
Running Tests
This project includes comprehensive integration tests that verify MCP tool functionality:
# Run all tests
python -m pytest tests/ -v
# Run specific test file
python -m pytest tests/test_mcp_client.py -v
# Run tests with coverage report
python -m pytest --cov=src tests/
# Run tests in watch mode (requires pytest-watch)
pytest-watch tests/Important: Tests require a running Meilisearch instance on http://localhost:7700.
Code Quality
# Format code with Black
black src/ tests/
# Run type checking (if mypy is configured)
mypy src/
# Lint code (if flake8 is configured)
flake8 src/ tests/Contributing Guidelines
Fork and clone the repository
Set up development environment following the Development Setup section above
Create a feature branch from
mainWrite tests first if adding new functionality (Test-Driven Development)
Run tests locally to ensure all tests pass before committing
Format code with Black and ensure code quality
Commit changes with descriptive commit messages
Push to your fork and create a pull request
Development Workflow
# Create feature branch
git checkout -b feature/your-feature-name
# Make your changes, write tests first
# Edit files...
# Run tests to ensure everything works
python -m pytest tests/ -v
# Format code
black src/ tests/
# Commit and push
git add .
git commit -m "Add feature description"
git push origin feature/your-feature-nameTesting Guidelines
All new features should include tests
Tests should pass before submitting PRs
Use descriptive test names and clear assertions
Test both success and error cases
Ensure Meilisearch is running before running tests
Release Process
This project uses automated versioning and publishing to PyPI. The release process is designed to be simple and automated.
How Releases Work
Automated Publishing: When the version number in
pyproject.tomlchanges on themainbranch, a GitHub Action automatically:Builds the Python package
Publishes it to PyPI using trusted publishing
Creates a new release on GitHub
Version Detection: The workflow compares the current version in
pyproject.tomlwith the previous commit to detect changesPyPI Publishing: Uses PyPA's official publish action with trusted publishing (no manual API keys needed)
Creating a New Release
To create a new release, follow these steps:
1. Determine Version Number
Follow Semantic Versioning (MAJOR.MINOR.PATCH):
PATCH (e.g., 0.4.0 → 0.4.1): Bug fixes, documentation updates, minor improvements
MINOR (e.g., 0.4.0 → 0.5.0): New features, new MCP tools, significant enhancements
MAJOR (e.g., 0.5.0 → 1.0.0): Breaking changes, major API changes
2. Update Version and Create PR
# 1. Create a branch from latest main
git checkout main
git pull origin main
git checkout -b release/v0.5.0
# 2. Update version in pyproject.toml
# Edit the version = "0.4.0" line to your new version
# 3. Commit and push
git add pyproject.toml
git commit -m "Bump version to 0.5.0"
git push origin release/v0.5.0
# 4. Create PR and get it reviewed/merged
gh pr create --title "Release v0.5.0" --body "Bump version for release"3. Merge to Main
Once the PR is approved and merged to main, the GitHub Action will automatically:
Detect the version change
Build the package
Publish to PyPI at https://pypi.org/p/meilisearch-mcp
Make the new version available via
pip install meilisearch-mcp
4. Verify Release
After merging, verify the release:
# Check GitHub Action status
gh run list --workflow=publish.yml
# Verify on PyPI (may take a few minutes)
pip index versions meilisearch-mcp
# Test installation of new version
pip install --upgrade meilisearch-mcpRelease Workflow File
The automated release is handled by .github/workflows/publish.yml, which:
Triggers on pushes to
mainbranchChecks if
pyproject.tomlversion changedUses Python 3.10 and official build tools
Publishes using trusted publishing (no API keys required)
Provides verbose output for debugging
Troubleshooting Releases
Release didn't trigger: Check that the version in pyproject.toml actually changed between commits
Build failed: Check the GitHub Actions logs for Python package build errors
PyPI publish failed: Verify the package name and that trusted publishing is configured properly
Version conflicts: Ensure the new version number hasn't been used before on PyPI
Development vs Production Versions
Development: Install from source using
pip install -e .Production: Install from PyPI using
pip install meilisearch-mcpSpecific version: Install using
pip install meilisearch-mcp==0.5.0
Available Tools
22 toolsadd-documentsC
Add documents to an index
Inputs: documents (required), indexUid (required), primaryKey.
cancel-tasksC
Cancel tasks based on filters
Inputs: indexUids, statuses, types, uids.
create-indexC
Create a new Meilisearch index
Inputs: uid (required), primaryKey.
create-keyC
Create a new API key
Inputs: actions (required), indexes (required), description, expiresAt.
delete-indexC
Delete a Meilisearch index
Inputs: uid (required).
delete-keyC
Delete an API key
Inputs: key (required).
get-connection-settingsB
Get current Meilisearch connection settings
Inputs: no named parameters.
get-documentsC
Get documents from an index
Inputs: indexUid (required), limit, offset.
get-health-statusB
Get comprehensive health status of Meilisearch
Inputs: no named parameters.
get-index-metricsC
Get detailed metrics for an index
Inputs: indexUid (required).
get-keysC
Get list of API keys
Inputs: limit, offset.
get-settingsC
Get current settings for an index
Inputs: indexUid (required).
get-statsC
Get database statistics
Inputs: no named parameters.
get-system-infoC
Get system-level information
Inputs: no named parameters.
get-taskC
Get information about a specific task
Inputs: taskUid (required).
get-tasksC
Get list of tasks with optional filters
Inputs: afterEnqueuedAt, afterFinishedAt, afterStartedAt, batchUids, +11 more.
get-versionB
Get Meilisearch version information
Inputs: no named parameters.
health-checkB
Check Meilisearch server health
Inputs: no named parameters.
list-indexesB
List all Meilisearch indexes
Inputs: no named parameters.
searchB
Search through Meilisearch indices. If indexUid is not provided, it will search across all indices.
Inputs: query (required), filter, indexUid, limit, +2 more.
update-connection-settingsC
Update Meilisearch connection settings
Inputs: api_key, url.
update-settingsC
Update settings for an index
Inputs: indexUid (required), settings (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 22 tools
Most tools have distinct purposes targeting specific resources like indexes, documents, tasks, keys, or settings, with clear boundaries. However, get-health-status and health-check could cause confusion as they both relate to health monitoring, though their descriptions differ slightly (comprehensive vs. basic check).
Tool names follow a consistent verb-noun pattern with hyphens throughout, such as create-index, get-documents, and update-settings. There are no deviations in style or convention, making the set predictable and easy to parse.
With 22 tools, the count is on the higher side but reasonable for a comprehensive Meilisearch server covering indexes, documents, tasks, keys, settings, and system info. It feels slightly heavy but not excessive, as each tool serves a specific function in the domain.
The tool set provides complete CRUD/lifecycle coverage for Meilisearch operations, including index management (create, delete, list), document handling (add, get, search), task monitoring (get, cancel), key management (create, delete, get), and settings (get, update). No obvious gaps are present for the server's purpose.
Maintenance
Related MCP Connectors
Unified 15-tool SEO, SERP, clean Markdown & GEO (LLM citation Share-of-Voice) MCP server.
MCP server for searching Airweave collections with natural language queries.
Zotero MCP server for Claude and ChatGPT: search, citations, safe writes, PDF passages and pages.
Related MCP Servers
- AlicenseAqualityFmaintenanceServer for interacting with Honeycomb observability data. This server enables LLMs like Claude to directly analyze and query your Honeycomb datasets.1442MIT
- AlicenseBqualityDmaintenanceA server facilitating web search functionality by utilizing Perplexity AI's API, designed to integrate with the Claude desktop client for enhanced search queries.1311MIT
- FlicenseNot gradedqualityDmaintenanceA simple server that integrates with Claude to allow querying and manipulating Notion pages and databases through natural language prompts.-
- AlicenseNot gradedqualityDmaintenanceA lightweight Flask-based server that enables Claude AI to perform real-time web searches via DuckDuckGo during conversations, allowing the AI to access current information.1MIT