Content-Length: 280068 | pFad | http://github.com/calebcrouse3/elasticsearch-mcp-server

14 GitHub - calebcrouse3/elasticsearch-mcp-server: A Model Context Protocol (MCP) server implementation that provides Elasticsearch and OpenSearch interaction.
Skip to content

A Model Context Protocol (MCP) server implementation that provides Elasticsearch and OpenSearch interaction.

License

Notifications You must be signed in to change notification settings

calebcrouse3/elasticsearch-mcp-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elasticsearch MCP Server

Overview

A Model Context Protocol (MCP) server implementation that provides Elasticsearch interaction. This server enables searching documents and analyzing indices.

Features

  • list_indices: List all indices.
  • get_index: Returns information (mappings, settings, aliases) about one or more indices.
  • search_documents: Search for documents.
  • get_document: Get a document by ID.

Configure Environment Variables

Copy the .env.example file to .env and update the values accordingly.

Start Elasticsearch Cluster

Start the Elasticsearch cluster using Docker Compose:

docker-compose -f docker-compose-elasticsearch.yml up -d

The default Elasticsearch username is elastic and password is test123.

You can access Kibana from http://localhost:5601.

Usage with Claude Desktop

Using uv with local development

Add the following configuration to Claude Desktop's config file claude_desktop_config.json. On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json.

{
  "mcpServers": {
    "elasticsearch-mcp-server": {
      "command": "uv",
      "args": [
        "--directory",
        "path/to/src/elasticsearch_mcp_server_project",
        "run",
        "elasticsearch-mcp-server"
      ],
      "env": {
        "ELASTICSEARCH_HOST": "https://localhost:9200",
        "ELASTICSEARCH_USERNAME": "elastic",
        "ELASTICSEARCH_PASSWORD": "test123"
      }
    }
  }
}

Run the MCP server:

uv run mcp_client/client.py src/server.py

Restart Claude Desktop to load the new MCP server.

Now you can interact with your Elasticsearch cluster through Claude using natural language commands like:

About

A Model Context Protocol (MCP) server implementation that provides Elasticsearch and OpenSearch interaction.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/calebcrouse3/elasticsearch-mcp-server

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy