Elasticsearch
Manage Elasticsearch indices and execute queries using LLMs.
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 namequery(object): Elasticsearch query DSL
- Returns search hits
-
create_index
- Create new Elasticsearch indices
- Input:
index(string): Index namemappings(object, optional): Index mappings configurationsettings(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 nameid(string, optional): Document IDdocument(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.
เซิร์ฟเวอร์ที่เกี่ยวข้อง
Supabase
Access and manage your Supabase projects through the Model Context Protocol (MCP).
EHR Tools with MCP and FHIR
Search and query patient Electronic Health Record (EHR) data using SMART on FHIR.
Theta Health MCP Server
Connect your health data to AI assistants like Cursor, Claude, and Windsurf.
Quick Data for Windows MCP
A Windows-optimized server for performing data analytics on JSON and CSV files, designed for Claude Desktop integration.
Metabase MCP Server
Integrates AI assistants with the Metabase business intelligence and analytics platform.
Trino MCP Server
Securely interact with Trino databases to list tables, read data, and execute SQL queries.
Astro MCP
A modular server providing unified access to multiple astronomical datasets, including astroquery services and DESI data sources.
AskTable
Interact with AskTable SaaS or local deployments to query data sources using natural language.
QuickBooks Online by CData
A read-only MCP server for querying live QuickBooks Online data. Requires a separate CData JDBC Driver for QuickBooks Online.
MySQL MCP Server
Enables secure interaction with MySQL databases, allowing AI assistants to list tables, read data, and execute SQL queries through a controlled interface.