Tools
Elasticsearch
Run the MCP Elasticsearch Agent and Toolkit in the Cloud
Required Environment Variables:
ES_URL
: URL of your Elasticsearch instance (e.g.,http://localhost:9200
)ES_API_KEY
: Your Elasticsearch API key (e.g.,your-api-key
)
Steps
-
Install Meshagent CLI and Toolkits
-
Sign Up and Authenticate
- Follow the steps at Meshagent CLI: Get Started to sign up and authenticate.
-
Start the MCP Elasticsearch Server as a Meshagent Service
- This command starts a Meshagent room with the MCP Elasticsearch server available. Rooms will automatically close if they become inactive.
-
Join the Room with a Chatbot Agent Using the Elasticsearch Toolkit
- This starts a chatbot in the Meshagent room enabled with the Elasticsearch toolkit. Multiple toolkits can be used in the same room with the same agent.
- A link to the room will be provided in the output of this command, where you can interact with the agent and tools.
Tools Available
Interact with your Elasticsearch indices through natural language conversations.
Tools Summary
Tool Name | Short Description |
---|---|
get_mappings | Get field mappings for a specific Elasticsearch index |
get_shards | Get shard info for all or specific indices |
list_indices | List all available Elasticsearch indices |
search | Perform an Elasticsearch search with provided query DSL |
Tools Details
get_mappings
Get field mappings for a specific Elasticsearch index.
Parameter | Type | Description |
---|---|---|
index | string | Name of the Elasticsearch index to get mappings for |
get_shards
Get shard information for all or specific indices.
Parameter | Type | Description |
---|---|---|
index | string (optional) | Optional index name to get shard information for |
list_indices
List all available Elasticsearch indices.
Parameter | Type | Description |
---|---|---|
indexPattern | string | Index pattern of Elasticsearch indices to list |
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 |
Meshagent & MCP Resources
- Meshagent: https://www.meshagent.com/
- Getting Started: Room API Quickstart
- Room API Overview: Overview
- Meshagent MCP Tool Image: meshagent/mcp-elasticsearch on Docker Hub