Meilisearch MCP by usefulapi
v1.2.1Search indexes, read documents and tasks, and add or delete documents in Meilisearch.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
meilisearch_get_version Get server version
Get the Meilisearch version, build commit and build date of the server. Good first call to check the connection. Meilisearch API: GET /version.
meilisearch_list_indexes List indexes
List the indexes (uid, primary key, created and updated times) with paging. Meilisearch API: GET /indexes.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum items to return (default 20). |
offset | integer | Items to skip. |
meilisearch_get_index Get an index
Get one index by uid: its primary key and its created and updated times. Meilisearch API: GET /indexes/{indexUid}.
| Parameter | Type | Description |
|---|---|---|
indexUid * | string | Index uid, for example movies (from meilisearch_list_indexes). |
meilisearch_get_index_stats Get index stats
Get the document count, storage size, indexing state and the count of documents per field of one index. Meilisearch API: GET /indexes/{indexUid}/stats.
| Parameter | Type | Description |
|---|---|---|
indexUid * | string | Index uid, for example movies (from meilisearch_list_indexes). |
meilisearch_get_stats Get server stats
Get the database size, the last update time and the document count and indexing state of every index. Meilisearch API: GET /stats.
meilisearch_get_settings Get index settings
Get all settings of one index: searchable, displayed, filterable and sortable attributes, ranking rules, synonyms, stop words and typo tolerance. Meilisearch API: GET /indexes/{indexUid}/settings.
| Parameter | Type | Description |
|---|---|---|
indexUid * | string | Index uid, for example movies (from meilisearch_list_indexes). |
meilisearch_list_tasks List tasks
List asynchronous tasks (document additions, index changes, settings updates) with their status. Newest tasks come first by default; set reverse to true for oldest first. Use it to see what is still processing or failed. Meilisearch API: GET /tasks.
| Parameter | Type | Description |
|---|---|---|
from | integer | Task uid to start from (use the next value from the previous page). |
indexUids | array | Only tasks of these indexes. |
limit | integer | Maximum items to return (default 20). |
reverse | boolean | true to list the oldest tasks first. |
statuses | array | Only tasks with these statuses, for example ["failed"]. |
types | array | Only tasks of these types, for example ["documentAdditionOrUpdate"]. |
meilisearch_get_task Get a task
Get one task by uid: its status, its type, the error if it failed, and its timings. Meilisearch API: GET /tasks/{taskUid}.
| Parameter | Type | Description |
|---|---|---|
taskUid * | integer | Task uid (from a write result or meilisearch_list_tasks). |
meilisearch_get_documents List documents
List documents of one index with paging. Pick fields to return and a filter (filterable attributes only). Meilisearch API: GET /indexes/{indexUid}/documents.
| Parameter | Type | Description |
|---|---|---|
indexUid * | string | Index uid, for example movies (from meilisearch_list_indexes). |
fields | array | Fields to return in each document. |
filter | string | Filter expression, for example "year > 2000". Filterable attributes must be set on the index. |
limit | integer | Maximum items to return (default 20). |
offset | integer | Items to skip. |
meilisearch_get_document Get a document
Get one document by its id, optionally with only some fields. Meilisearch API: GET /indexes/{indexUid}/documents/{documentId}.
| Parameter | Type | Description |
|---|---|---|
documentId * | string | Document id, as a string (for example 1 or abc-123). |
indexUid * | string | Index uid, for example movies (from meilisearch_list_indexes). |
fields | array | Fields to return. |
meilisearch_search Search an index
Run a typo-tolerant search in one index, with filters, sorting, facet counts and highlighting. Meilisearch API: POST /indexes/{indexUid}/search.
| Parameter | Type | Description |
|---|---|---|
indexUid * | string | Index uid, for example movies (from meilisearch_list_indexes). |
attributesToHighlight | array | Fields to wrap matched words in, with <em> tags. |
attributesToRetrieve | array | Fields to return in each hit, for example ["title", "year"]. Default: all fields. |
facets | array | Attributes to count values for. Facetable attributes must be set on the index. |
filter | string | Filter expression, for example "genres = Action AND year > 2000". Filterable attributes must be set on the index. |
hitsPerPage | integer | Hits per page (use with page). |
limit | integer | Maximum hits to return (default 20). |
matchingStrategy | string | How many query words a hit must contain (default last). |
offset | integer | Hits to skip (use with limit). |
page | integer | Page number (use with hitsPerPage instead of limit and offset). |
q | string | Search text. Omit it or leave it empty to list documents by the index rules. |
showRankingScore | boolean | true to return each hit's _rankingScore. |
sort | array | Sort rules, for example ["price:asc"]. Sortable attributes must be set on the index. |
meilisearch_multi_search Run several searches
Run up to 20 searches over one or more indexes in one request. Each query names its index. Meilisearch API: POST /multi-search.
| Parameter | Type | Description |
|---|---|---|
queries * | array | The searches to run. Each item names its indexUid. |
meilisearch_create_index Create an index
Create an empty index with a uid and an optional primary key. Returns a task: check it with meilisearch_get_task. Meilisearch API: POST /indexes.
| Parameter | Type | Description |
|---|---|---|
uid * | string | New index uid, for example movies. |
primaryKey | string | Field that holds the unique document id, for example id. |
meilisearch_upsert_documents Add or update documents
Add documents to an index, or update them when their id exists (fields not sent are kept). Asynchronous: returns a task. Meilisearch API: PUT /indexes/{indexUid}/documents.
| Parameter | Type | Description |
|---|---|---|
documents * | array | Documents as JSON objects. Each needs the primary key field. |
indexUid * | string | Index uid, for example movies (from meilisearch_list_indexes). |
primaryKey | string | Primary key field, when the index has none yet. |
meilisearch_delete_document Delete a document
Delete one document by its id. Asynchronous: returns a task. Other documents are not touched. Meilisearch API: DELETE /indexes/{indexUid}/documents/{documentId}.
| Parameter | Type | Description |
|---|---|---|
documentId * | string | Document id, as a string (for example 1 or abc-123). |
indexUid * | string | Index uid, for example movies (from meilisearch_list_indexes). |