OpenSearch MCP Server
@loupipalien
About OpenSearch MCP Server
OpenSearch MCP Server
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"opensearch-mcp-server": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/loupipalien/opensearch-mcp-server",
"opensearch-mcp-server"
],
"env": {
"OPENSEARCH_HOSTS": "your_opensearch_cluster_hosts",
"OPENSEARCH_USERNAME": "your_opensearch_cluster_username",
"OPENSEARCH_PASSWORD": "your_opensearch_cluster_password"
}
}
}
}Tools
No tools detected
Fetch the live tool list by running this server in a temporary sandbox using the button above.
Overview
What is OpenSearch MCP Server?
An MCP server that lets you interact with an OpenSearch cluster using natural language from any MCP client (Cursor, Cline, etc.). It provides tools for cluster health analysis, document bulk operations, index management, and search.
How to use OpenSearch MCP Server?
Install Python 3.10+ and uv. Add the server configuration to your MCP settings file, setting the environment variables OPENSEARCH_HOSTS, OPENSEARCH_USERNAME, and OPENSEARCH_PASSWORD. Run via remote repo using uvx or from a local repo using uv. For testing, you can start a 2‑node Docker cluster with the provided docker-compose.yml.
Key features of OpenSearch MCP Server?
- Get cluster health and statistics
- Bulk document operations to indices
- Create, delete, and list indices
- Retrieve index mappings and info
- Search with query DSL
- Natural language queries via MCP clients
Use cases of OpenSearch MCP Server?
- Monitor cluster health via conversational commands
- Bulk index large datasets into OpenSearch
- Automate index creation and deletion tasks
- Search documents using complex queries
- Retrieve index mappings for schema inspection
FAQ from OpenSearch MCP Server
What are the prerequisites?
Python 3.10 or higher and uv must be installed.
How do I configure authentication?
Set the environment variables OPENSEARCH_USERNAME and OPENSEARCH_PASSWORD in your MCP settings file.
Can I connect to multiple OpenSearch hosts?
Yes. Separate host addresses with commas in the OPENSEARCH_HOSTS environment variable.
How can I start a local OpenSearch cluster for testing?
Run export OPENSEARCH_INITIAL_ADMIN_PASSWORD=your_password then docker-compose up -d. Default credentials: admin / your_opensearch_cluster_password.
What license does this project use?
Apache v2.0 License.
Frequently asked questions
What are the prerequisites?
Python 3.10 or higher and [uv](https://github.com/astral-sh/uv) must be installed.
How do I configure authentication?
Set the environment variables `OPENSEARCH_USERNAME` and `OPENSEARCH_PASSWORD` in your MCP settings file.
Can I connect to multiple OpenSearch hosts?
Yes. Separate host addresses with commas in the `OPENSEARCH_HOSTS` environment variable.
How can I start a local OpenSearch cluster for testing?
Run `export OPENSEARCH_INITIAL_ADMIN_PASSWORD=your_password` then `docker-compose up -d`. Default credentials: `admin` / `your_opensearch_cluster_password`.
What license does this project use?
Apache v2.0 License.
Basic information
More Databases MCP servers
mcp_mysql_server
wenb1n-devModel Context Protocol (MCP) server that supports secure interaction with MySQL databases and has anomaly analysis capabilities.更加牛逼!更加好用!不仅止于mysql的增删改查功能; 还包含了数据库异常分析能力;且便于开发者们进行个性化的工具扩展
Neon MCP Server
neondatabase-labsMCP server for interacting with Neon Management API and databases
Dbhub
bytebaseZero-dependency, token-efficient database MCP server for Postgres, MySQL, SQL Server, MariaDB, SQLite.
MongoDB MCP Server
mongodb-jsA Model Context Protocol server to connect to MongoDB databases and MongoDB Atlas Clusters.
Xata MCP Server
The Xata MCP server lets AI assistants and agents interact with your Xata organizations, projects, and Postgres database branches.
Comments