Skip to main content

A MCP Server for Aliyun AI Search

Project description

AISearch-MCP-Server

AISearch-MCP-Server serves as a universal interface between AI Agents and OpenSearch AI Search Platform.

Configuration

Mode 1: Using Local File

Download

Download from GitHub

git clone https://github.com/aliyun/alibabacloud-opensearch-mcp-server.git

MCP Integration

Add the following configuration to the MCP client configuration file:

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

Components

Tools

  • document_analyze:
    • Provide a general-purpose document parsing service. You can use this service to extract logical structures, such as titles and paragraphs, from non-structured documents, such as text, tables, and images, to generate structured data.
  • image_analyze:
    • Parse the content of images based on multimodal large language models (LLMs). You can also use the service to parse the text in images and use the parsed text for image retrieval and conversational search.
  • document_split:
    • Provide a general-purpose text splitting service. You can use this service to split structured data in the HTML, MARKDOWN, and TXT formats based on paragraphs, semantics, and specific rules. You can also extract code, images, and tables from rich text.
  • text_embedding:
    • ops-text-embedding-001 provides a text vectorization service that supports more than 40 languages. The input text can be up to 300 tokens in length, and the dimension of the generated vectors is 1,536.
    • ops-text-embedding-002 provides a text vectorization service that supports more than 100 languages. The input text can be up to 8,192 tokens in length, and the dimension of the generated vectors is 1,024.
    • ops-text-embedding-zh-001 provides a text vectorization service for Chinese text. The input text can be up to 1,024 tokens in length, and the dimension of the generated vectors is 768.
    • ops-text-embedding-en-001 provides a text vectorization service for English text. The input text can be up to 512 tokens in length, and the dimension of the generated vectors is 768.
  • text_sparse_embedding:
    • Convert text data into sparse vectors that occupy less storage space. You can use sparse vectors to express keywords and the information about frequently used terms. You can perform a hybrid search by using sparse and dense vectors to improve the retrieval performance.
  • rerank:
    • Provide a general-purpose document scoring service. This service scores documents based on the relevance between queries and document content, sorts documents in descending order based on scores, and then returns the scores. The service supports Chinese and English. The input text can be up to 512 tokens in length, which includes the length of queries and documents.
  • web_search:
    • Provide internet search service. When the private knowledge base cannot provide corresponding answers, expand the search to obtain more internet information, supplement the private knowledge base, and combine it with large language models to provide richer answers.
  • query_analyze:
    • Provide the content analysis service for queries based on LLMs and the Natural Language Processing (NLP) capabilities to understand the intent of users, extend similar questions, and convert questions in natural languages into SQL statements. This improves the performance of conversational search in retrieval-augmented generation (RAG) scenarios.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_aliyun_aisearch_mcp_server-1.0.1.tar.gz (67.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file iflow_mcp_aliyun_aisearch_mcp_server-1.0.1.tar.gz.

File metadata

  • Download URL: iflow_mcp_aliyun_aisearch_mcp_server-1.0.1.tar.gz
  • Upload date:
  • Size: 67.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_aliyun_aisearch_mcp_server-1.0.1.tar.gz
Algorithm Hash digest
SHA256 5707b3a69b205c7e7ef1ff0e0eb3ea902f9eaea7e152c2bba904b6f643315231
MD5 2339ad869982787d5eb3d91bd8965922
BLAKE2b-256 708e31be124d9a707f70717402d7ce68049c9ec3987c2f061f68912d1798ec1b

See more details on using hashes here.

File details

Details for the file iflow_mcp_aliyun_aisearch_mcp_server-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: iflow_mcp_aliyun_aisearch_mcp_server-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_aliyun_aisearch_mcp_server-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 59c3ed2b0bb8cb3fbed765a3c5ab1c4d1d2861d84b5657d661a2cd93db502f87
MD5 41e656f9c3454854f78f8dd24dbce37a
BLAKE2b-256 30ff0e7b9c0fdeb254b017970e451f6850f85e40ae39e7ea64cf660ff761709f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page