Meilisearch MCP by usefulapi

v1.2.1
io.usefulapi/meilisearch Checked 2 days ago Published 1 day ago

Search 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.

ParameterTypeDescription
limitintegerMaximum items to return (default 20).
offsetintegerItems 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}.

ParameterTypeDescription
indexUid *stringIndex 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.

ParameterTypeDescription
indexUid *stringIndex 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.

ParameterTypeDescription
indexUid *stringIndex 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.

ParameterTypeDescription
fromintegerTask uid to start from (use the next value from the previous page).
indexUidsarrayOnly tasks of these indexes.
limitintegerMaximum items to return (default 20).
reversebooleantrue to list the oldest tasks first.
statusesarrayOnly tasks with these statuses, for example ["failed"].
typesarrayOnly 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}.

ParameterTypeDescription
taskUid *integerTask 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.

ParameterTypeDescription
indexUid *stringIndex uid, for example movies (from meilisearch_list_indexes).
fieldsarrayFields to return in each document.
filterstringFilter expression, for example "year > 2000". Filterable attributes must be set on the index.
limitintegerMaximum items to return (default 20).
offsetintegerItems 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}.

ParameterTypeDescription
documentId *stringDocument id, as a string (for example 1 or abc-123).
indexUid *stringIndex uid, for example movies (from meilisearch_list_indexes).
fieldsarrayFields to return.

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.

ParameterTypeDescription
uid *stringNew index uid, for example movies.
primaryKeystringField 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.

ParameterTypeDescription
documents *arrayDocuments as JSON objects. Each needs the primary key field.
indexUid *stringIndex uid, for example movies (from meilisearch_list_indexes).
primaryKeystringPrimary 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}.

ParameterTypeDescription
documentId *stringDocument id, as a string (for example 1 or abc-123).
indexUid *stringIndex uid, for example movies (from meilisearch_list_indexes).