Skip to main content
Glama
devlimelabs

Meilisearch MCP Server

by devlimelabs

get-embedders

Retrieve the embedders configuration for a specific index in Meilisearch, enabling precise management of embedding settings for AI-driven search functionality.

Instructions

Get the embedders configuration for an index

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
indexUidYesUnique identifier of the index

Implementation Reference

  • Registers the 'get-embedders' MCP tool. Includes schema for input (indexUid), and handler that calls Meilisearch API to retrieve embedders configuration for the specified index.
    server.tool( "get-embedders", "Get the embedders configuration for an index", { indexUid: z.string().describe("Unique identifier of the index"), }, async ({ indexUid }) => { try { const response = await apiClient.get(`/indexes/${indexUid}/settings/embedders`); return { content: [{ type: "text", text: JSON.stringify(response.data, null, 2) }], }; } catch (error) { return createErrorResponse(error); } } );
  • The handler function for 'get-embedders' tool that performs an API GET request to fetch embedders settings and returns the JSON response.
    async ({ indexUid }) => { try { const response = await apiClient.get(`/indexes/${indexUid}/settings/embedders`); return { content: [{ type: "text", text: JSON.stringify(response.data, null, 2) }], }; } catch (error) { return createErrorResponse(error); } } );
  • src/index.ts:68-68 (registration)
    Calls registerVectorTools which includes the registration of 'get-embedders' among other vector tools.
    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/devlimelabs/meilisearch-ts-mcp'

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