Feedback

Alibabacloud Opensearch Mcp Server

@aliyun Claim

Basic information

Runtime
Python
Category
License
Apache-2.0
Transports
stdio
Author
aliyun
Submitted by
Community
Quality
25
Stars
11

About Alibabacloud Opensearch Mcp Server

This MCP server equips AI Agents with tools to interact with OpenSearch through a standardized and extensible interface. See our product document for more information.

Alibabacloud Opensearch Mcp Server is a MCP server in the Databases category listed in the AddMCP.net directory, published by aliyun. Supported transport: stdio. Runtime: Python. License: Apache-2.0. The repository has 11 GitHub stars. Source code is hosted on github.com. Related topics: ai, aliyun, mcp-server, opensearch.

Setup

{
    "mcpServers": {
        "aisearch-mcp-server": {
            "command": "uv",
            "args": [
                "--directory",
                "/path/to/aisearch-mcp-server",
                "run",
                "aisearch-mcp-server"
            ],
            "env": {
                "AISEARCH_API_KEY": "<AISEARCH_API_KEY>",
                "AISEARCH_ENDPOINT": "<AISEARCH_ENDPOINT>"
            }
        },
        "opensearch-vector-mcp-server": {
            "command": "uv",
            "args": [
                "--directory",
                "/path/to/opensearch-vector-mcp-server",
                "run",
                "opensearch-vector-mcp-server"
            ],
            "env": {
                "OPENSEARCH_VECTOR_ENDPOINT": "http://ha-cn-***.public.ha.aliyuncs.com",
                "OPENSEARCH_VECTOR_USERNAME": "<username>",
                "OPENSEARCH_VECTOR_PASSWORD": "<password>",
                "OPENSEARCH_VECTOR_INSTANCE_ID": "ha-cn-***",
                "OPENSEARCH_VECTOR_INDEX_NAME": "<Optional: index in vector table>",
                "AISEARCH_API_KEY": "<Optional: AISEARCH_API_KEY for embedding>",
                "AISEARCH_ENDPOINT": "<Optional: AISEARCH_ENDPOINT for embedding>"
            }
        }
    }
}

Alibabacloud Opensearch Mcp Server config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "aisearch-mcp-server": {
            "command": "uv",
            "args": [
                "--directory",
                "/path/to/aisearch-mcp-server",
                "run",
                "aisearch-mcp-server"
            ],
            "env": {
                "AISEARCH_API_KEY": "<AISEARCH_API_KEY>",
                "AISEARCH_ENDPOINT": "<AISEARCH_ENDPOINT>"
            }
        },
        "opensearch-vector-mcp-server": {
            "command": "uv",
            "args": [
                "--directory",
                "/path/to/opensearch-vector-mcp-server",
                "run",
                "opensearch-vector-mcp-server"
            ],
            "env": {
                "OPENSEARCH_VECTOR_ENDPOINT": "http://ha-cn-***.public.ha.aliyuncs.com",
                "OPENSEARCH_VECTOR_USERNAME": "<username>",
                "OPENSEARCH_VECTOR_PASSWORD": "<password>",
                "OPENSEARCH_VECTOR_INSTANCE_ID": "ha-cn-***",
                "OPENSEARCH_VECTOR_INDEX_NAME": "<Optional: index in vector table>",
                "AISEARCH_API_KEY": "<Optional: AISEARCH_API_KEY for embedding>",
                "AISEARCH_ENDPOINT": "<Optional: AISEARCH_ENDPOINT for embedding>"
            }
        }
    }
}

Alibabacloud Opensearch Mcp Server tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is Alibabacloud Opensearch Mcp Server?

Alibabacloud Opensearch Mcp Server serves as a universal interface between AI Agents and the OpenSearch AI Search Platform and OpenSearch Vector service from Alibaba Cloud. It is designed for developers who want to integrate AI agents with Alibaba Cloud's search, vector, and document processing capabilities.

How to use Alibabacloud Opensearch Mcp Server?

Clone the repository from GitHub, then add the appropriate JSON configuration to your MCP client. For the AISearch service, set AISEARCH_API_KEY and AISEARCH_ENDPOINT environment variables. For the OpenSearch Vector service, set OPENSEARCH_VECTOR_ENDPOINT, username, password, instance ID, and optionally the embedding API key and endpoint.

Key features of Alibabacloud Opensearch Mcp Server

  • Document parsing with logical structure extraction (AISearch)
  • Image content analysis using multimodal LLMs (AISearch)
  • Text splitting and embedding generation in multiple languages (AISearch)
  • Hybrid search combining dense and sparse vectors (OpenSearch Vector)
  • Query analysis: user intent, question expansion, and NL-to-SQL (AISearch)
  • Internet search to supplement private knowledge bases (AISearch)

Use cases of Alibabacloud Opensearch Mcp Server

  • Build retrieval-augmented generation (RAG) applications by parsing and vectorizing documents.
  • Perform conversational search with intent understanding and SQL generation.
  • Enhance search accuracy with re-ranking and hybrid dense/sparse retrieval.
  • Combine private data with real-time internet information for richer answers.

Frequently asked questions

1 What runtime dependencies are required?

The server requires Python and the uv package manager. Environment variables must be configured for authentication and endpoint selection.

2 How do I configure authentication for the two services?

For AISearch, set AISEARCH_API_KEY and AISEARCH_ENDPOINT. For OpenSearch Vector, set OPENSEARCH_VECTOR_ENDPOINT, OPENSEARCH_VECTOR_USERNAME, OPENSEARCH_VECTOR_PASSWORD, and OPENSEARCH_VECTOR_INSTANCE_ID.

3 What are the token limits for text embedding models?

Ops-text-embedding-001 supports up to 300 tokens; ops-text-embedding-002 up to 8,192; ops-text-embedding-zh-001 up to 1,024; ops-text-embedding-en-001 up to 512 tokens.

4 How does the server handle sparse and dense vector search?

The OpenSearch Vector component provides tools for simple vector search, multi-query search, and combined search with a dense vector plus a sparse vector.

5 Can the server search the internet?

Yes, the AISearch component includes a web_search tool that retrieves internet information when the private knowledge base lacks relevant answers.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬