MeiliSearch MCP
An MCP server for MeiliSearch, the fast and typo-tolerant search engine.
What it does
Search through MeiliSearch indexes, manage documents, create/delete indexes, check health and stats, and manage API keys. Perfect for AI agents that need to search through your data.
Tools
check_health- Check if the MeiliSearch server is runninglist_indexes- List all indexesget_index- Get index detailscreate_index- Create a new indexdelete_index- Delete an indexsearch_index- Search documents in an indexget_documents- List documents in an indexget_document- Get a single document by IDadd_documents- Add documents to an indexdelete_document- Delete a document by IDget_stats- Get instance statisticsget_index_stats- Get index-specific statisticsget_task- Check async task statuslist_keys- List API keysupdate_settings- Update index settings (ranking rules, searchable attributes, filters, etc.)
Install
npx meilisearch-mcp
Environment Variables
MEILISEARCH_URL- MeiliSearch server URL (default:http://localhost:7575)MEILISEARCH_API_KEY- API key for authentication (if your instance requires it)
Claude Desktop setup
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"meilisearch": {
"command": "npx",
"args": ["-y", "meilisearch-mcp"],
"env": {
"MEILISEARCH_URL": "http://localhost:7575",
"MEILISEARCH_API_KEY": "your-api-key"
}
}
}
}
Example usage
Ask Claude:
- "Search my products index for 'wireless headphones'"
- "Show me all indexes in my MeiliSearch instance"
- "Add these documents to my blog-posts index"
- "How many documents are in my main index?"
- "Update my index settings to use title as searchable attribute"
Requirements
- A running MeiliSearch instance (v1.0+)
- Optional: API key if your instance has authentication enabled
License
MIT