Elasticsearch
About
Integrates with Elasticsearch to enable index management, document indexing, and powerful search capabilities across large datasets.
Details
- Author
- da1y
- Repository
- da1y/mcp-server-elasticsearch
- GitHub stars
- 2
- Categories
- Database, Other, Search, Productivity, Developer Tools, Design, Workplace, File Management, AI, Automation, Frontend, Infrastructure
- Tags
- #analytics
Jump to
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
ElasticsearchCommand (node, npx, python, etc.)npxArguments-
Argument 1
-y -
Argument 2
@modelcontextprotocol/server-elasticsearch -
Argument 3
http://localhost:9200
Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
-
Argument 1
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Add to the "mcpServers" section of your claude_desktop_config.json:
{
"mcpServers": {
"elasticsearch": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-elasticsearch",
"http://localhost:9200"
]
}
}
}
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.
- 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
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"elasticsearch": {
"cwd": "string",
"env": {},
"args": [
"-y",
"@modelcontextprotocol/server-elasticsearch",
"http://localhost:9200"
],
"shell": false,
"command": "npx"
}
}
}
Linux
{
"cwd": "string",
"env": [],
"args": [
"-y",
"@modelcontextprotocol/server-elasticsearch",
"http://localhost:9200"
],
"shell": false,
"command": "npx"
}
Macos
{
"cwd": "string",
"env": [],
"args": [
"-y",
"@modelcontextprotocol/server-elasticsearch",
"http://localhost:9200"
],
"shell": false,
"command": "npx"
}
Windows
{
"cwd": "string",
"env": [],
"args": [
"/c",
"npx",
"-y",
"@modelcontextprotocol/server-elasticsearch",
"http://localhost:9200"
],
"shell": false,
"command": "cmd"
}
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.
- Execute search queries against indices
- Input:
- index(string): Target index name
- query(object): Elasticsearch query DSL
- Create new Elasticsearch indices
- Input:
- index(string): Index name
- mappings(object, optional): Index mappings configuration
- settings(object, optional): Index settings configuration
- List all available indices
- No input required
- Returns array of index information
- Index a document
- Input:
- index(string): Target index name
- id(string, optional): Document ID
- document(object): Document content
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
Add to the "mcpServers" section of yourclaude_desktop_config.json:
{ "mcpServers": { "elasticsearch": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-elasticsearch", "http://localhost:9200" ] } } }
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.
Licensed under MIT License. Free to use, modify, and distribute. See LICENSE file for details.
Unified MCP server giving AI coding agents direct access to your databases: 70+ SQL databases via SqlKit (PostgreSQL, MySQL, SQL Server, SQLite, ClickHouse, Snowflake, BigQuery) and NoSQL via DocKit (Elasticsearch, MongoDB, DynamoDB). Local-first: credentials never leave your machine, read-only by default, 79 tools.
Query and export data from various databases including ElasticSearch, MySQL, PostgreSQL, Oracle, and SQLite.
Interact with an Elasticsearch cluster via the Model Context Protocol (MCP), enabling clients to query, manage, and analyze data.
Connect to and interact with an Elasticsearch cluster directly from any MCP client using environment variables for configuration.
Connects agents to Elasticsearch data, enabling natural language interaction with indices.
An MCP Server for interacting with Elasticsearch and OpenSearch clusters.
An MCP server for interacting with Elasticsearch clusters, enabling LLM-powered applications to search, update, and manage data.
A simple MCP server for Elasticsearch, designed for cloud environments where your public key is already authorized.
Search, Query and interact with data in your Milvus Vector Database.
A Python-based MCP server that connects to an Elasticsearch index with Apple HealthKit data.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.




