Meilisearch MCP Server

search

Search for documents in a Meilisearch index

Input Schema

NameRequiredDescriptionDefault
attributesToCropNoAttributes to crop
attributesToHighlightNoAttributes to highlight
attributesToRetrieveNoAttributes to include in results
cropLengthNoLength at which to crop cropped attributes
facetsNoFacets to return
filterNoFilter query to apply
highlightPostTagNoTag to insert after highlighted text
highlightPreTagNoTag to insert before highlighted text
indexUidYesUnique identifier of the index
limitNoMaximum number of results to return (default: 20)
matchingStrategyNoMatching strategy: 'all' or 'last'
offsetNoNumber of results to skip (default: 0)
qYesSearch query
showMatchesPositionNoWhether to include match positions in results
sortNoAttributes to sort by, e.g. ["price:asc"]

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "attributesToCrop": { "description": "Attributes to crop", "items": { "type": "string" }, "type": "array" }, "attributesToHighlight": { "description": "Attributes to highlight", "items": { "type": "string" }, "type": "array" }, "attributesToRetrieve": { "description": "Attributes to include in results", "items": { "type": "string" }, "type": "array" }, "cropLength": { "description": "Length at which to crop cropped attributes", "type": "number" }, "facets": { "description": "Facets to return", "items": { "type": "string" }, "type": "array" }, "filter": { "description": "Filter query to apply", "type": "string" }, "highlightPostTag": { "description": "Tag to insert after highlighted text", "type": "string" }, "highlightPreTag": { "description": "Tag to insert before highlighted text", "type": "string" }, "indexUid": { "description": "Unique identifier of the index", "type": "string" }, "limit": { "description": "Maximum number of results to return (default: 20)", "maximum": 1000, "minimum": 1, "type": "number" }, "matchingStrategy": { "description": "Matching strategy: 'all' or 'last'", "type": "string" }, "offset": { "description": "Number of results to skip (default: 0)", "minimum": 0, "type": "number" }, "q": { "description": "Search query", "type": "string" }, "showMatchesPosition": { "description": "Whether to include match positions in results", "type": "boolean" }, "sort": { "description": "Attributes to sort by, e.g. [\"price:asc\"]", "items": { "type": "string" }, "type": "array" } }, "required": [ "indexUid", "q" ], "type": "object" }