Skip to main content
Glama
devlimelabs

Meilisearch MCP Server

by devlimelabs

enable-vector-search

Activate vector search capabilities in Meilisearch to enable semantic similarity-based document retrieval using AI embeddings.

Instructions

Enable the vector search experimental feature in Meilisearch

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that executes the tool logic: POSTs to Meilisearch /experimental-features endpoint to enable vectorStore experimental feature and returns the API response or handles errors.
    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);
      }
    }
  • Direct registration of the 'enable-vector-search' MCP tool, including name, description, empty input schema, and inline handler.
    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)
    Top-level registration call that invokes registerVectorTools to add the 'enable-vector-search' tool (among others) to the main MCP server instance.
    registerVectorTools(server);
  • src/index.ts:11-11 (registration)
    Import of the vector-tools module containing the enable-vector-search tool registration.
    import registerVectorTools from './tools/vector-tools.js';

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/devlimelabs/meilisearch-ts-mcp'

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