Back to Blog
Guide
4 min read
April 15, 2026

How to Use Meilisearch MCP for Full-Text Search

Configure indexes, add documents, run full-text searches, and tune relevance in Meilisearch from Claude Code — build lightning-fast search without complex configuration.

meilisearchsearchfull-text-searchbackendclaude-code

What is the Meilisearch MCP?

Meilisearch is an open-source, lightweight full-text search engine optimized for fast, typo-tolerant search with instant results. The Meilisearch MCP connects Claude Code to your Meilisearch instance, allowing it to manage indexes, add and update documents, run search queries, and configure relevance settings — making search integration and debugging effortless.

Installation

mcpizy install meilisearch

Provide your Meilisearch host URL and API master key during setup. For cloud-hosted instances, use the URL from Meilisearch Cloud.

Key Capabilities

  • Manage indexes — create, update settings, and delete search indexes.
  • Add and update documents — bulk-index documents from your data sources.
  • Run search queries — test searches with filters, facets, and pagination.
  • Configure relevance — tune ranking rules, searchable attributes, and filterable attributes.
  • Inspect tasks — monitor asynchronous indexing task status.

Example Usage

Add a product catalog and test search quality:

// Claude will:
// 1. Create a "products" index with id as primary key
// 2. Configure "name" and "description" as searchable attributes
// 3. Add "category" and "price" as filterable attributes
// 4. Index your product JSON array
// 5. Run a test search and show top 5 results

Tips and Best Practices

  • Always configure searchableAttributes explicitly — defaulting to all attributes degrades search quality and performance.
  • Use filterableAttributes for faceted search (category, price range) and sortableAttributes for sort-by options.
  • Meilisearch is much simpler to operate than Elasticsearch — consider it for applications where Elasticsearch feels like overkill.
  • Use the tasks API to wait for large indexing operations to complete before running tests.

View on MCPizy Marketplace

Found this useful? Share it.

MCP Servers Mentioned

MeilisearchElasticsearchPostgres
All ArticlesBrowse Marketplace