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 Server for Milvus
zilliztechModel Context Protocol Servers for Milvus
MCP Alchemy
runekaagaardA MCP (model context protocol) server that gives the LLM access to and knowledge about relational databases like SQLite, Postgresql, MySQL & MariaDB, Oracle, and MS-SQL.
MongoDB MCP Server
mongodb-jsA Model Context Protocol server to connect to MongoDB databases and MongoDB Atlas Clusters.
mcp-server-duckdb
ktanaka101A Model Context Protocol (MCP) server implementation for DuckDB, providing database interaction capabilities
Neon MCP Server
neondatabase-labsMCP server for interacting with Neon Management API and databases
コメント