VikingDB Multi-modal Search MCP Server using FastMCP
Project description
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 KeyVOLC_SK: 火山引擎 Secret KeyVIKINGDB_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,请按照以下步骤操作:
-
安装构建和上传工具:
pip install build twine
-
构建项目:
python -m build
这将在
dist/目录中生成.tar.gz和.whl文件。 -
上传到 PyPI:
# 上传到正式环境 python -m twine upload dist/*
注意:在上传之前,请确保已修改
pyproject.toml中的authors和project.urls等信息。
本地开发安装
可以使用开发模式安装,以便直接运行命令:
pip install -e .
vinehoo-search
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vinehoo_vector_products_search_mcp-0.1.1.tar.gz.
File metadata
- Download URL: vinehoo_vector_products_search_mcp-0.1.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16cc01852466bfa38b9a858d490d3b4576fe0917bd331f7ade97a197f5d285a7
|
|
| MD5 |
485b0814ac8885514867d02c125a4fde
|
|
| BLAKE2b-256 |
7e98f06860cacc1d27119426fc17757356238740980cb3f68f9b03ff7d8785dc
|
File details
Details for the file vinehoo_vector_products_search_mcp-0.1.1-py3-none-any.whl.
File metadata
- Download URL: vinehoo_vector_products_search_mcp-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1301389821cfa4903a52bf31466235a4cdd5478b4bf65e218ae75da06295a0a3
|
|
| MD5 |
cf685f4fddb1824e4caadb34bd2e1dcf
|
|
| BLAKE2b-256 |
79031ac6a20893056c0ee3f587da850ca0d11df30ee3377b162a27010a782ca0
|