Skip to main content

VikingDB Multi-modal Search MCP Server

这是一个使用 Python FastMCP 框架开发的 MCP Server,用于在火山引擎 VikingDB 向量数据库中进行多模态检索。

功能介绍

提供 search_multi_modal 工具,支持:

  • 文本搜索
  • 图片搜索 (TOS 或 HTTP 链接)
  • 视频搜索 (TOS 或 HTTP 链接)
  • 多模态组合搜索

安装依赖

pip install -r requirements.txt

配置

复制 .env.example 为 .env 并填入您的火山引擎凭证:

cp .env.example .env

并在 .env 中设置以下变量:

  • VOLC_AK: 火山引擎 Access Key
  • VOLC_SK: 火山引擎 Secret Key
  • VIKINGDB_HOST: VikingDB 域名 (默认: api-vikingdb.vikingdb.cn-beijing.volces.com)
  • VIKINGDB_REGION: 区域 (默认: cn-beijing)

运行

python server.py

MCP 工具说明

search_multi_modal

参数:

  • collection_name (str): 集合名称
  • index_name (str): 索引名称
  • text (str, 可选): 检索文本
  • image (str, 可选): 图片链接
  • video_url (str, 可选): 视频链接
  • video_fps (float, 可选): 视频采样频率
  • need_instruction (bool): 是否启用 Instruction (默认为 True)
  • output_fields (list, 可选): 返回字段列表
  • limit (int): 返回结果数量 (默认 10)

发布到 PyPI

如果您希望将此项目发布到 PyPI,可以使用我们提供的自动化脚本:

  1. 安装必要工具(仅需一次):

    pip install build twine
    
  2. 运行发布脚本:

    ./publish.sh
    

    该脚本会自动执行以下步骤:

    • 检查当前版本并建议/手动确认新版本。
    • 自动更新 pyproject.toml。
    • 清理旧的构建文件。
    • 构建新的分发包。
    • 调用 twine 上传至 PyPI。

    注意:在上传时,您需要输入 PyPI 的 API Token。建议提前在 ~/.pypirc 中配置好 Token 以实现完全自动化。

本地开发安装

可以使用开发模式安装,以便直接运行命令:

pip install -e .
vinehoo-search

Metadata

Release files for vinehoo-vector-products-search-mcp 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vinehoo-vector-products-search-mcp 0.1.6
File Size Uploaded Provenance Actions
vinehoo_vector_products_search_mcp-0.1.6.tar.gz 5.8 kB Without provenance Details for vinehoo_vector_products_search_mcp-0.1.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vinehoo-vector-products-search-mcp 0.1.6
File Interpreter ABI Platform Actions
vinehoo_vector_products_search_mcp-0.1.6-py3-none-any.whl Python 3 none any Details for vinehoo_vector_products_search_mcp-0.1.6-py3-none-any.whl

Total release size: 11.1 kB

Release files / vinehoo_vector_products_search_mcp-0.1.6.tar.gz

Download URL vinehoo_vector_products_search_mcp-0.1.6.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4971dac82367ef62e35220e56e4affbb050c076599c86c3ac7b2bf6fa831cf35
BLAKE2b-256 checksum
How to use checksums
02a1fa0f0525cafe48d9466fbeb4f369c60a94b6d6f2b3eb574e19ad10d0a387
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.19

Release files / vinehoo_vector_products_search_mcp-0.1.6-py3-none-any.whl

Download URL vinehoo_vector_products_search_mcp-0.1.6-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3820f3934bf4e49650172be229ffd9dd502471ef7f59051013f3a271bd6d78d3
BLAKE2b-256 checksum
How to use checksums
c789d4141d0500e0e7903a47a77c2620d306e3578d53cf34c28bb8b86cb01e88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.19

Security for vinehoo-vector-products-search-mcp 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page