MCP Server for OpenSearch
mcp-server-opensearch: An OpenSearch MCP Server
The Model Context Protocol (MCP) is an open protocol that enables seamless integration between LLM applications and external data sources and tools. Whether you’re building an AI-powered IDE, enhancing a chat interface, or creating custom AI workflows, MCP provides a standardized way to connect LLMs with the context they need.
This repository is an example of how to create a MCP server for OpenSearch, a distributed search and analytics engine.
Under Contruction
Current Blocker - Async Client from OpenSearch isn't installing
Overview
A basic Model Context Protocol server for keeping and retrieving memories in the OpenSearch engine. It acts as a semantic memory layer on top of the OpenSearch database.
Components
Tools
search-openSearch
- Store a memory in the OpenSearch database
- Input:
query
(json): prepared json query message
- Returns: Confirmation message
Installation
Installing via Smithery
To install mcp-server-opensearch for Claude Desktop automatically via Smithery:
Using uv (recommended)
When using uv
no specific installation is needed to directly run mcp-server-opensearch.
or
Testing - Local Open Search Client
Testing - MCP Server Connection to Open Search Client
Usage with Claude Desktop
To use this server with the Claude Desktop app, add the following configuration to the "mcpServers" section of your claude_desktop_config.json
:
Or use the FastMCP UI to install the server to Claude
Environment Variables
The configuration of the server can be also done using environment variables:
OPENSEARCH_HOST
: URL of the OpenSearch server, e.g.http://localhost
OPENSEARCH_HOSTPORT
: Port of the host of the OpenSearch server9200
INDEX_NAME
: Name of the index to use
This server cannot be installed
Provides a semantic memory layer that integrates LLMs with OpenSearch, enabling storage and retrieval of memories within the OpenSearch engine.