MCP.so
登录

OpenSearch MCP Server

@loupipalien

基本信息

分类

数据库

许可证

Apache-2.0

传输方式

stdio

作者

loupipalien

关于 OpenSearch MCP Server

OpenSearch MCP Server

OpenSearch MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "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"
      }
    }
  }
}

OpenSearch MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

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

常见问题

1

What are the prerequisites?

Python 3.10 or higher and [uv](https://github.com/astral-sh/uv) must be installed.

2

How do I configure authentication?

Set the environment variables `OPENSEARCH_USERNAME` and `OPENSEARCH_PASSWORD` in your MCP settings file.

3

Can I connect to multiple OpenSearch hosts?

Yes. Separate host addresses with commas in the `OPENSEARCH_HOSTS` environment variable.

4

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`.

5

What license does this project use?

Apache v2.0 License.

评论

数据库 分类下的更多 MCP 服务器