KosmoKrator

other

Meilisearch MCP Integration for OpenAI Agents SDK

Connect Meilisearch to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

7 functions 5 read 2 write API key auth

Connect Meilisearch to OpenAI Agents SDK

Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway.

Start the KosmoKrator MCP gateway locally and point the OpenAI Agents SDK MCP tool at that process or wrapper. The gateway is local, scoped to this integration, and starts with --write=deny so OpenAI Agents can inspect read-capable tools without receiving write access by default.

Meilisearch MCP Config for OpenAI Agents SDK

Use headless JSON commands for CI-style execution and MCP for agent tool discovery.

{
  "mcpServers": {
    "kosmokrator-meilisearch": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=meilisearch",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=meilisearch --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only Meilisearch instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

Meilisearch Tools Visible to OpenAI Agents

OpenAI Agents sees stable MCP tool names generated from the Meilisearch integration catalog.

MCP toolSource functionTypeDescription
integration__meilisearch__meilisearch_list_indexes meilisearch.meilisearch_list_indexes Read List all indexes in the Meilisearch instance. Returns index UIDs, primary keys, and creation dates.
integration__meilisearch__meilisearch_get_index meilisearch.meilisearch_get_index Read Get detailed information about a specific Meilisearch index, including its UID, primary key, and stats.
integration__meilisearch__meilisearch_create_index meilisearch.meilisearch_create_index Write Create a new index in Meilisearch. Returns a task object that can be used to track the creation progress.
integration__meilisearch__meilisearch_search_documents meilisearch.meilisearch_search_documents Read Search for documents in a Meilisearch index. Supports full-text search with filters, sorting, and pagination.
integration__meilisearch__meilisearch_add_documents meilisearch.meilisearch_add_documents Write Add or replace documents in a Meilisearch index. Sends an array of document objects to be indexed. Returns a task object to track progress.
integration__meilisearch__meilisearch_get_document meilisearch.meilisearch_get_document Read Retrieve a single document from a Meilisearch index by its primary key value.
integration__meilisearch__meilisearch_get_health meilisearch.meilisearch_get_health Read Check the health status of the Meilisearch instance. Returns whether the server is available and operational.

Related Meilisearch Pages