Ximilar - MCP Server
To access the Ximilar API, first register at Ximilar App to get your API token. Be sure to have also proper plan activated – see Pricing page.
Overview
This page describes how to use the Ximilar MCP Server to access the functionality of the Ximilar Computer Vision Platform within your favorite LLM client.
The MCP (Multi-Channel Protocol) Server is a Python-based server that allows you to interact with the Ximilar API using a simple and consistent interface. It provides endpoints for Card Identification, Grading, Fashion Tagging, and more. All endpoints available in MCP server are listed below.
Installation
To use MCP Server, you need to:
- Download or clone the Ximilar Client files from GitHub (no need to install it) or directly from the MCP Server.
git clone https://github.com/ximilar/ximilar-client.git
-
Install python 3.10 or higher. See instructions at realpython.com.
-
Install
fastmcp
Python package by running the following command in your terminal via pip:
pip install fastmcp
- Install the
uv
package manager from here. - Install the MCP Server by running this command in your terminal:
fastmcp install MCP_CLIENT_NAME PATH_TO_XIMILAR_CLIENT/ximilar/server/server.py --with fastmcp --with requests --env XIMILAR_API_KEY=API_KEY
- Replace
API_KEY
with your personal Ximilar API key. You can find it in Ximilar App. - Replace
MCP_CLIENT_NAME
with the name of the MCP Client you want to use (e.g.,clade-desktop
,claude-code
). - Replace
PATH_TO_XIMILAR_CLIENT
with the path to the Ximilar Client files you downloaded in step 1. Do NOT delete the downloaded files afterwards. - Note: this approach might not work with all MCP Clients, for more information, please refer to the FastMCP documentation (mainly the
Integrations
section).
- Start your MCP Client.
Python MCP Clients
Some examples in MCP clients, implemented in Python are available here:
https://gitlab.com/ximilar-public/ximilar-client/-/tree/master/ximilar/server/tests
Claude Desktop
You can also use the following configuration for Claude Desktop:
{
"mcpServers": {
"ximilar-mcp": {
"command": "uv",
"args": [
"run",
"--with","fastmcp",
"--with","requests",
"fastmcp", "run", "PATH_TO_XIMILAR_CLIENT/ximilar/server/server.py"
],
"env": {
"XIMILAR_API_KEY": "YOUR_API_KEY"
}
}
}
}
Available Endpoints
The following endpoints are currently available for the MCP Server:
Service | MCP Endpoint | Description | Link |
---|---|---|---|
Card Grading | grade_card | Grade collectible cards such as TCGs and sports cards | Link |
Collectibles | tcg_card_id | Identify trading card game (TCG) cards | Link |
Collectibles | sports_card_id | Identify sports cards | Link |
Collectibles | comic_book_and_manga_id | Identify comic books and manga | Link |
Collectibles | tcg_price_data_search | Get pricing information for TCG cards | Link |
Similarity | visual_search | Find visually similar images using KNN search | Link |
Fashion Tagging | fashion_detect_tags | Detect fashion objects and tags for clothing items | Link |
Fashion Tagging | fashion_meta_tags | Get metadata about fashion images | Link |
Fashion Tagging | fashion_detect | Detect fashion items and their locations | Link |
Fashion Tagging | fashion_tags | Get fashion tags and attributes for fashion items | Link |