Octodet Elasticsearch Mcp
@Octodet
关于 Octodet Elasticsearch Mcp
A complete Elasticsearch mcp server with many tools
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"elasticsearch": {
"command": "npx",
"args": [
"-y",
"@octodet/elasticsearch-mcp"
],
"env": {
"ES_URL": "http://localhost:9200",
"ES_API_KEY": "your_api_key",
"ES_VERSION": "8"
}
}
}
}工具
16List all available Elasticsearch indices with detailed information
Get field mappings for a specific Elasticsearch index
Perform an Elasticsearch search with the provided query DSL and highlighting
Get health information about the Elasticsearch cluster
Get shard information for all or specific indices
Add a new document to a specific Elasticsearch index
Update an existing document in a specific Elasticsearch index
Delete a document from a specific Elasticsearch index
Update documents in an Elasticsearch index based on a query
Delete documents in an Elasticsearch index based on a query
Perform multiple document operations (create, update, delete) in a single API call
Create a new Elasticsearch index with optional settings and mappings
Delete an Elasticsearch index
Count documents in an index, optionally filtered by a query
Get index templates from Elasticsearch
Get index aliases from Elasticsearch
概览
What is Octodet Elasticsearch Mcp?
Octodet Elasticsearch Mcp is a Model Context Protocol (MCP) server that provides a comprehensive set of tools for interacting with Elasticsearch clusters. It enables LLM-powered applications to search, update, and manage Elasticsearch data through the standardized Model Context Protocol.
How to use Octodet Elasticsearch Mcp?
Install the package globally with npm install -g @octodet/elasticsearch-mcp or run it directly with npx @octodet/elasticsearch-mcp. Configure the connection using environment variables such as ES_URL, ES_API_KEY, ES_USERNAME, ES_PASSWORD, ES_CA_CERT, ES_VERSION, ES_SSL_SKIP_VERIFY, and ES_PATH_PREFIX. Integrate with MCP clients like VS Code or Claude Desktop by adding the server configuration to their settings, specifying the command, arguments, and environment variables.
Key features of Octodet Elasticsearch Mcp
- Full CRUD operations for documents and indices
- Bulk operations for multiple document actions in one API call
- Query-based updates and deletions by matching documents
- Cluster health and shard monitoring
- Advanced search with full Elasticsearch DSL and highlighting
- 16 MCP tools covering all major Elasticsearch operations
Use cases of Octodet Elasticsearch Mcp
- Search and retrieve documents from Elasticsearch indices using complex DSL queries
- Add, update, and delete documents programmatically through LLM interactions
- Perform bulk indexing or maintenance operations efficiently
- Monitor cluster health and manage index templates and aliases
- Automate document lifecycle management with query-based updates and deletions
FAQ from Octodet Elasticsearch Mcp
What environment variables are required to connect to Elasticsearch?
The server requires ES_URL (default http://localhost:9200). Authentication can be set with ES_API_KEY or ES_USERNAME/ES_PASSWORD. Optional variables include ES_CA_CERT, ES_VERSION (8 or 9), ES_SSL_SKIP_VERIFY, and ES_PATH_PREFIX.
How do I integrate Octodet Elasticsearch Mcp with VS Code?
Add a configuration entry in your VS Code settings.json under mcp.servers with the command npx -y @octodet/elasticsearch-mcp and the required environment variables (e.g., ES_URL, ES_API_KEY).
Which Elasticsearch versions are supported?
The ES_VERSION environment variable accepts 8 or 9, with a default of 8.
What transport does the MCP server use?
The server implements the Model Context Protocol and can be used with any MCP-compatible client. It does not specify a custom transport in the README; examples show usage via command-line invocation and the MCP SDK’s default transport.
Can I use Octodet Elasticsearch Mcp programmatically in Node.js?
Yes, the package exports createOctodetElasticsearchMcpServer for programmatic integration. You can configure an Elasticsearch connection and use a custom transport via the MCP SDK.
数据库 分类下的更多 MCP 服务器
Elasticsearch MCP Server
elasticPostgreSQL Model Context Protocol (PG-MCP) Server
stuzero
Sqlite
modelcontextprotocolModel Context Protocol Servers
MySQL MCP Server
designcomputerA Model Context Protocol (MCP) server that enables secure interaction with MySQL databases
mcp_mysql_server
xwb602625136Model Context Protocol (MCP) server that supports secure interaction with MySQL databases and has anomaly analysis capabilities.更加牛逼!更加好用!不仅止于mysql的增删改查功能; 还包含了数据库异常分析能力;且便于开发者们进行个性化的工具扩展
评论