Cover image
Try Now
2025-03-08

MCP Server Wrapper basado en MCP para MeilISearch, lo que permite a LLMS como Claude acceder a potentes capacidades de búsqueda a través del protocolo de contexto del modelo

3 years

Works with Finder

2

Github Watches

1

Github Forks

0

Github Stars

Meilisearch MCP Server (Go)

A Go-based wrapper for Meilisearch search engine that functions as a Model Context Protocol (MCP) server.

Overview

This project is a Go application designed to enable the Meilisearch search engine to be used as an MCP (Model Context Protocol) server. Through the MCP server, large language models (LLMs) like Claude can access Meilisearch's powerful search capabilities.

Features

  • Lightweight and fast MCP server implemented in Go
  • Seamless integration with Meilisearch API
  • Interface compliant with the MCP protocol
  • Support for key features including search, index management, and document operations

Installation

Prerequisites

  • Go 1.24 or higher
  • Running Meilisearch instance

Build Instructions

# Clone the repository
git clone https://github.com/cnosuke/mcp-meilisearch.git
cd mcp-meilisearch

# Install dependencies
make deps

# Build
make bin/mcp-meilisearch

Configuration

Use the config.yml file to configure connection settings to the Meilisearch server:

meilisearch:
  host: http://localhost:7700 # Address of Meilisearch server
  api_key: '' # Set API key if needed

You can also configure using environment variables:

  • MEILISEARCH_HOST: Address of Meilisearch server
  • MEILISEARCH_API_KEY: Meilisearch API key

Usage

Starting the Server

./bin/mcp-meilisearch server --config config.yml

Options:

  • --no-logs: Minimize log output (show errors only)
  • --log <file path>: Output logs to the specified file

Using with Claude Desktop

To integrate with Claude Desktop, add an entry to your claude_desktop_config.json file. Because MCP uses stdio for communication, you must redirect logs away from stdio by using the --no-logs and --log flags. Below is an example configuration that injects the SQLite file path via an environment variable:

{
  "mcpServers": {
    "sqlite": {
      "command": "./bin/mcp-meilisearch",
      "args": ["server", "--no-logs", "--log", "path_to_log_file"],
      "env": {
        "MEILISEARCH_HOST": "http://localhost:7700",
        "MEILISEARCH_API_KEY": "api_key"
      }
    }
  }
}

This configuration registers the MCP SQLite Server with Claude Desktop, ensuring that all logs are directed to the specified log file rather than interfering with the MCP protocol messages transmitted over stdio.

Available Tools

This MCP server provides the following tools:

Server Management

  • health_check: Check the status of the Meilisearch server.
    • Parameters: None
    • Returns: Server health status information

Index Management

  • list_indexes: Retrieve a list of all indexes.

    • Parameters: None
    • Returns: Array of indexes
  • create_index: Create a new index.

    • Parameters:
      • uid: Unique identifier for the index (required)
      • primary_key: Primary key for documents (optional)
    • Returns: Creation task information

Document Operations

  • get_documents: Retrieve documents from an index.

    • Parameters:
      • index_uid: Index UID (required)
      • limit: Maximum number of documents to retrieve (optional)
      • offset: Number of documents to skip (optional)
      • fields: Array of fields to retrieve (optional)
    • Returns: Array of documents
  • add_documents: Add documents to an index.

    • Parameters:
      • index_uid: Index UID (required)
      • documents: Array of documents to add (required)
      • primary_key: Primary key (optional)
    • Returns: Addition task information

Search

  • search: Search for documents in an index.
    • Parameters:
      • index_uid: UID of the index to search (required)
      • query: Search query (required)
      • limit: Maximum number of results to return (optional)
      • offset: Number of results to skip (optional)
      • filter: Filter expression (optional)
      • sort: Array of sort criteria (optional)
    • Returns: Search results

Contributing

Contributions are welcome! Please fork the repository and submit pull requests for improvements or bug fixes. For major changes, open an issue first to discuss your ideas.

License

This project is licensed under the MIT License.

Author

cnosuke (x.com/cnosuke)

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • https://tovuti.be
  • Oede knorrepot die vasthoudt an de goeie ouwe tied van 't boerenleven

  • ANGEL LEON
  • A world class elite tech co-founder entrepreneur, expert in software development, entrepreneurship, marketing, coaching style leadership and aligned with ambition for excellence, global market penetration and worldy perspectives.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • INFOLAB OPERATIONS 2
  • A medical specialist offering assistance grounded in clinical guidelines. Disclaimer: This is intended for research and is NOT safe for clinical use!

  • apappascs
  • Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.

  • ShrimpingIt
  • Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx

  • OffchainLabs
  • Implementación de la prueba de estaca Ethereum

  • huahuayu
  • Una puerta de enlace de API unificada para integrar múltiples API de explorador de blockchain similar a Esterscan con soporte de protocolo de contexto modelo (MCP) para asistentes de IA.

  • deemkeen
  • Controle su MBOT2 con un combo de potencia: MQTT+MCP+LLM

  • zhaoyunxing92
  • 本项目是一个钉钉 MCP (Protocolo del conector de mensajes )服务 , 提供了与钉钉企业应用交互的 API 接口。项目基于 Go 语言开发 支持员工信息查询和消息发送等功能。 支持员工信息查询和消息发送等功能。

  • pontusab
  • La comunidad de cursor y windsurf, encontrar reglas y MCP

    Reviews

    2 (1)
    Avatar
    user_hmTfCjzy
    2025-04-15

    As a dedicated user of MCP Proxy Monorepo, I am thoroughly impressed by its seamless integration and comprehensive functionalities. BitteProtocol has truly delivered a robust tool that simplifies and optimizes our workflow. Highly recommend for anyone in need of a reliable proxy solution.