loading…
Search for a command to run...
loading…
MCP server for FG-CLIP embedding services enabling multi-modal similarity computation for text and images.
MCP server for FG-CLIP embedding services enabling multi-modal similarity computation for text and images.
MCP (Model Context Protocol) server for FG-CLIP embedding services. To obtain and configure the API key, please apply at https://research.360.cn/sass.
This MCP server provides the following tools and resources:
This MCP server helps users achieve the following capabilities:
Through these capabilities, users can build powerful search engines, recommendation systems, content classification, and multi-modal AI applications.
Generate embedding vectors for input texts.
Parameters:
texts: A list of text strings to embedmodel: The model to use (default: "fg-clip")Returns:
saved_uris: A list of URIs where the embeddings are storedsuccess: Whether the operation succeedederror_msg: Error message, if anyGenerate embedding vectors for images.
Parameters:
images: A list of image URLs or base64-encoded imagesmodel: The model to use (default: "fg-clip")Returns:
saved_uris: A list of URIs where the embeddings are storedsuccess: Whether the operation succeedederror_msg: Error message, if anyCompute cosine similarity between two lists of vectors.
Parameters:
uris_a: A list of URIs for the first set of embeddingsuris_b: A list of URIs for the second set of embeddingsmode: Calculation mode (default: "pairwise")"pairwise": Compute similarity for vectors at corresponding positions"matrix": Compute a full similarity matrix for all vector pairsReturns:
similarities: Similarity values or a similarity matrixshape: Shape information of the resultsuccess: Whether the operation succeededgit clone https://github.com/360CVGroup/FGCLIP-MCP
cd FGCLIP-MCP
uv venv
uv sync
source .venv/bin/activate
export MCP_API_KEY=your_api_key
pytest -q
{
"mcpServers": {
"fgclip-mcp": {
"command": "uvx",
"args": [
"fgclip-mcp"
],
"env": {
"MCP_API_KEY": "your_api_key"
}
}
}
}
{
"mcpServers": {
"fgclip-mcp-local": {
"command": "uv",
"args": [
"--directory",
"/path_to_fgclip-mcp/src/fgclip_mcp",
"run",
"/path_to_fgclip-mcp/src/fgclip_mcp/__main__.py"
],
"env": {
"MCP_API_KEY": "your_api_key"
}
}
}
}
Locate MCP Setting

Config MCP Setting

Enable MCP

Chat with MCP
Example: Searching for images based on given text

Image URLs:
Apache License 2.0
Выполни в терминале:
claude mcp add fgclip-mcp -- npx Безопасность
Низкий рискАвтоматическая эвристика по публичным данным — не гарантия безопасности.