Cover image
Try Now
2024-12-02

Mirror ofhttps://github.com/da1y/mcp-server-elasticsearch

3 years

Works with Finder

0

Github Watches

1

Github Forks

0

Github Stars

Elasticsearch

A Model Context Protocol server for Elasticsearch clusters. Enables LLMs to manage indices and execute queries.

IMPORTANT NOTE : this was built mainly by feeding examples to claude from the postgres mcp server.

Components

Tools

  • search

    • Execute search queries against indices
    • Input:
      • index (string): Target index name
      • query (object): Elasticsearch query DSL
    • Returns search hits
  • create_index

    • Create new Elasticsearch indices
    • Input:
      • index (string): Index name
      • mappings (object, optional): Index mappings configuration
      • settings (object, optional): Index settings configuration
  • list_indices

    • List all available indices
    • No input required
    • Returns array of index information
  • index_document

    • Index a document
    • Input:
      • index (string): Target index name
      • id (string, optional): Document ID
      • document (object): Document content
    • Returns indexing operation result

Resources

The server provides mapping information for each index:

  • Index Mappings (elasticsearch://<host>/<index>/schema)
    • JSON mapping information
    • Field names, types and configurations
    • Automatically discovered from metadata

Usage with Claude Desktop

Add to the "mcpServers" section of your claude_desktop_config.json:

{
  "mcpServers": {
    "elasticsearch": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-elasticsearch",
        "http://localhost:9200"
      ]
    }
  }
}

Docker one liner to run container :

docker run -d --name elasticsearch -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" -e "xpack.security.enabled=false" docker.elastic.co/elasticsearch/elasticsearch:8.11.3

Replace the URL with your Elasticsearch endpoint.

License

Licensed under MIT License. Free to use, modify, and distribute. See LICENSE file for details.

相关推荐

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

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

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

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • momi
  • Provides initial medical assessments and advice.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Daren White
  • A supportive coach for mastering all Spanish tenses.

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

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • huahuayu
  • A unified API gateway for integrating multiple etherscan-like blockchain explorer APIs with Model Context Protocol (MCP) support for AI assistants.

  • deemkeen
  • control your mbot2 with a power combo: mqtt+mcp+llm

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

  • justmywyw
  • Short and sweet example MCP server / client implementation for Tools, Resources and Prompts.

  • KasarLabs
  • Build powerful and secure AI Agents powered by Starknet.

    Reviews

    1 (1)
    Avatar
    user_4v4mOmmL
    2025-04-15

    I've been using the Formula One MCP Server by rakeshgangwar, and it's simply outstanding! The performance and reliability are top-notch, making it perfect for my demanding applications. The setup was straightforward, and the support is excellent. Highly recommend giving it a try!