elasticsearch-mcp weekly downloads statistics
By RajwardhanShinde · npm · MCP servers
Secure MCP server for Elasticsearch integration with comprehensive tools and Elastic Cloud support
elasticsearch-mcp has 1,747 recorded weekly downloads on npm, a decrease of 86.4% over the past 30 days, ranking #1928 of 3,247 tracked listings.
About elasticsearch-mcp
Elasticsearch MCP
Model Context Protocol server for Elasticsearch integration with comprehensive security and performance features
elasticsearch-mcp is a Model Context Protocol (MCP) server that provides standardized, secure tools for interacting with Elasticsearch clusters. Built with TypeScript and optimized for Elastic Cloud environments, it offers comprehensive data management capabilities with enterprise-grade security features.
🚀 Features
- 🔐 Secure by Design: Input validation, script sanitization, injection prevention
- ☁️ Elastic Cloud Ready: Native support for cloud ID and API key authentication
- ⚡ High Performance: Streaming for large datasets, connection pooling, health monitoring
- 🛠️ Comprehensive Tools: 7 essential tools covering all major Elasticsearch operations
- 📊 Advanced Querying: Full Elasticsearch DSL support with aggregations and highlighting
- 📁 Data Export: Stream large datasets to CSV with compression support
- 🔍 Smart Validation: Zod-based schemas with security-first validation
- 📝 Full TypeScript: Complete type safety with strict null checks
📦 Installation
npm install elasticsearch-mcp
🏃♂️ Quick Start
1. Basic Setup
# Set your Elasticsearch credentials
export ELASTIC_CLOUD_ID="your-cloud-id"
export ELASTIC_API_KEY="your-api-key"
# Start the MCP server
npx elasticsearch-mcp
2. Using with Claude Desktop
Add to your Claude Desktop MCP configuration:
{
"mcpServers": {
"elasticsearch-mcp": {
"command": "npx",
"args": ["elasticsearch-mcp"],
"env": {
"ELASTIC_CLOUD_ID": "your-cloud-id",
"ELASTIC_API_KEY": "your-api-key"
}
}
}
}
3. Using with any MCP Client
import { ElasticMCPServer } from 'elasticsearch-mcp';
const server = new ElasticMCPServer();
await server.start();
🛠️ Available Tools
| Tool | Description | Use Cases |
|---|---|---|
fetch_indices | List and filter Elasticsearch indices | Index management, monitoring |
search_elasticsearch | Advanced search with aggregations | Data analysis, querying |
create_index | Create indices with mappings/settings | Schema management |
insert_data | Insert documents with validation | Data ingestion |
update_document | Update documents with scripts | Data modification |
delete_document | Delete by ID or query | Data cleanup |
export_to_csv | Stream data to CSV files | Reporting, data export |
📋 Tool Examples
Search with Aggregations
{
"tool": "search_elasticsearch",
"arguments": {
"index": "sales-data",
"query": {
"range": {
"date": {
"gte": "2024-01-01",
"lte": "2024-12-31"
}
}
},
"aggregations": {
"monthly_sales": {
"date_histogram": {
"field": "date",
"calendar_interval": "month"
},
"aggs": {
"total_revenue": {
"sum": { "field": "amount" }
}
}
}
}
}
}
Export Large Dataset
{
"tool": "export_to_csv",
"arguments": {
"index": "user-analytics",
"query": {
"bool": {
"filter": [
{ "term": { "status": "active" } },
{ "range": { "last_login": { "gte": "2024-01-01" } } }
]
}
},
"fields": ["user_id", "email", "last_login", "country"],
"filename": "active_users_2024.csv",
"compress": true,
"maxRows": 100000
}
}
Create Index with Schema
{
"tool": "create_index",
"arguments": {
"name": "product-catalog",
"mappings": {
"properties": {
"name": { "type": "text", "analyzer": "standard" },
"price": { "type": "float" },
"category": { "type": "keyword" },
"created_at": { "type": "date" },
"tags": { "type": "keyword" },
"description": { "type": "text" }
}
},
"settings": {
"number_of_shards": 1,
"number_of_replicas": 1,
"analysis": {
"analyzer": {
"product_analyzer": {
"type": "standard",
"stopwords": "_english_"
}
}
}
},
"aliases": ["products", "catalog"]
}
}
⚙️ Configuration
Environment Variables
| Variable | Description | Required | Example |
|---|---|---|---|
ELASTIC_CLOUD_ID | Elastic Cloud deployment ID | Yes* | deployment:dXMtY2VudHJhbDE= |
ELASTIC_API_KEY | Elasticsearch API key | Yes* | VnVhQ2ZHY0JDZGJrU... |
ELASTIC_NODE | Self-hosted Elasticsearch URL | Yes* | https://localhost:9200 |
ELASTIC_USERNAME | Basic auth username | No | elastic |
ELASTIC_PASSWORD | Basic auth password | No | changeme |
LOG_LEVEL | Logging level | No | info |
LOG_FORMAT | Log output format | No | text |
MAX_CONCURRENT_REQUESTS | Request concurrency limit | No | 10 |
*Either ELASTIC_CLOUD_ID or ELASTIC_NODE is required
Configuration File
Create .env file:
# Elastic Cloud (recommended)
ELASTIC_CLOUD_ID=your-deployment-id
ELASTIC_API_KEY=your-api-key
# Logging
LOG_LEVEL=info
LOG_FORMAT=json
# Performance
MAX_CONCURRENT_REQUESTS=10
REQUEST_TIMEOUT_MS=30000
🔒 Security Features…
Description from the npm listing.
- elasticsearch
- mcp
- model-context-protocol
- elastic-cloud
- search
- analytics
- data-export
- claude
- typescript
- security
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (135)Similar npm MCP servers plugins
All 20 elasticsearch-mcp alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/elasticsearch-mcp. First seen Nov 18, 2026; last successful collection Nov 18, 2026. See the methodology.