Skip to main content
Glama
OrionPotter

Meilisearch MCP Server

by OrionPotter

enable-vector-search

Activate vector search functionality in Meilisearch to enable semantic similarity-based document retrieval.

Instructions

Enable the vector search experimental feature in Meilisearch

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler function that enables the vector search experimental feature by posting to the Meilisearch /experimental-features endpoint with vectorStore: true, and returns the response or error.
      async () => {
        try {
          const response = await apiClient.post('/experimental-features', {
            vectorStore: true,
          });
          return {
            content: [{ type: "text", text: JSON.stringify(response.data, null, 2) }],
          };
        } catch (error) {
          return createErrorResponse(error);
        }
      }
    );
  • Registers the enable-vector-search tool on the MCP server with no input schema and the inline handler function.
    server.tool(
      "enable-vector-search",
      "Enable the vector search experimental feature in Meilisearch",
      {},
      async () => {
        try {
          const response = await apiClient.post('/experimental-features', {
            vectorStore: true,
          });
          return {
            content: [{ type: "text", text: JSON.stringify(response.data, null, 2) }],
          };
        } catch (error) {
          return createErrorResponse(error);
        }
      }
    );
  • src/index.ts:68-68 (registration)
    Registers all vector tools, including enable-vector-search, by calling registerVectorTools on the main MCP server instance.
    registerVectorTools(server);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/OrionPotter/iflow-mcp_meilisearch-ts-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server