ES_URL
: Endpoint for your Elasticsearch instance (e.g.,http://localhost:9200
)ES_API_KEY
: Your Elasticsearch API key (e.g.,your-api-key
)
-
Install Meshagent CLI:
-
Sign Up & Authenticate:
- Follow Meshagent CLI Getting Started for auth setup.
-
Start MCP Server Agent in a Room:
- This starts a Meshagent Room with MCP server tools available. Rooms are temporary and close if inactive.
-
Launch a Chatbot with Elasticsearch Toolkit:
- This creates a chatbot in the Room that can access all MCP Elasticsearch tools.
- Room join link is provided in the command output.
-
Try It Out:
- Open the Room link in your browser and chat to interact with Elasticsearch using the agent’s tools.
Project Level Deployment (Persistent Tools & Bot)
For production, register agents and chatbots at the project level. This ensures tools and the chatbot automatically join every Room in the project—no need for local or manual processes.-
Register MCP Server as Persistent Project Service:
-
Register Persistent Chatbot for Project:
Tools Available
Interact with your Elasticsearch indices through natural language conversations.Summary
Tools provided by this Server | Short Description |
---|---|
get_mappings | Get field mappings for a specific Elasticsearch index |
get_shards | Get shard information for all or specific indices |
list_indices | List all available Elasticsearch indices |
search | Perform an Elasticsearch search with the provided query DSL. |
Tools Details
Tool: get_mappings
Get field mappings for a specific Elasticsearch index.
Parameter | Type | Description |
---|---|---|
index | string | Name of the Elasticsearch index to get mappings for |
Tool: get_shards
Get shard information for all or specific indices.
Parameter | Type | Description |
---|---|---|
index | string | optional Optional index name to get shard information for |
Tool: list_indices
List all available Elasticsearch indices.
Parameter | Type | Description |
---|---|---|
indexPattern | string | Index pattern of Elasticsearch indices to list |
Tool: search
Perform an Elasticsearch search with the provided query DSL. Highlights are always enabled.
Parameter | Type | Description |
---|---|---|
index | string | Name of the Elasticsearch index to search |
queryBody | object | Complete Elasticsearch query DSL object (can include query, size, from, sort, etc.) |
Additional Resources
- Meshagent: https://www.meshagent.com/
- Read The Docs: https://docs.meshagent.com
- Meshagent MCP Elasticsearch Tool Image: https://hub.docker.com/r/meshagent/mcp-elasticsearch