MCP server
Use SightRadar from Claude, ChatGPT, Cursor, VS Code or any MCP client: the hosted server at mcp.sightradar.com with sign-in, or the local sightradar-mcp package.
The Model Context Protocol (MCP) lets an AI assistant call tools on your behalf. The SightRadar MCP server turns the API into 39 tools: create collections, index photos, find a person's photos from a selfie, run batches, manage webhooks, and check your balance and usage. You ask in plain language ("which photos in wedding-2026-10 is Priya in?") and the assistant picks the calls.
There are two ways to run it. Both expose the same tools.
| Remote (hosted) | Local | |
|---|---|---|
| URL or command | https://mcp.sightradar.com/mcp | npx -y sightradar-mcp |
| Sign-in | Your SightRadar account in the browser, or an API key header | SIGHTRADAR_API_KEY |
| Install | Nothing | Node.js 20 or newer |
| Images from your computer | No (URLs or base64) | Yes, with file_path |
Every call spends credits at the normal API prices. The assistant gets nothing that a key with the same permissions could not do through the REST API.
Remote server
Add https://mcp.sightradar.com/mcp to your client. The first time the assistant uses it, your browser opens sightradar.com to sign in.
On claude.ai or in Claude Desktop: Settings → Connectors → Add custom connector, paste https://mcp.sightradar.com/mcp, and choose Connect.
Signing in
- The client opens
sightradar.com/oauth/authorizein your browser. If you are signed out, you sign in first (email and password, Google, or an email link) and come back to the same page. - The page shows the app's name (and its verified domain, when it has one), the host it will send access to, the organization it connects to, and the permissions it asked for, each marked free or spends credits. Untick any you do not want, then choose Allow. Cancel sends the app an
access_deniederror and creates nothing. - SightRadar creates an API key named
MCP: <app name>for this connection and hands it to the MCP server directly. The key never passes through the browser or the app. - The browser returns to the app, which can now call the tools.
Each connection appears under Connected AI apps on the API keys page. Disconnect signs the app out and revokes its key. Revoking the MCP: … key in the key list also cuts the app off: its calls fail and it asks you to connect again. Connecting the same app again replaces its old connection and key.
The connection uses the organization that is active in your console. To connect a different organization, switch to it in the console first.
Using an API key instead
If your client can send headers, you can skip the browser sign-in and pass a key from the console:
{
"mcpServers": {
"sightradar": {
"url": "https://mcp.sightradar.com/mcp",
"headers": {
"Authorization": "Bearer frs_your_key",
"X-SightRadar-Scopes": "read,search"
}
}
}
}Without X-SightRadar-Scopes a key gets every permission group, including account. Set the header to a comma-separated list to narrow it; an unknown name is rejected with a 400 so a typo never widens access.
Local server
The sightradar-mcp package runs the same tools over stdio on your machine. Create a key in the console, then add this to your client's config (Claude Desktop's claude_desktop_config.json, Cursor, Windsurf, Cline and most others accept it):
{
"mcpServers": {
"sightradar": {
"command": "npx",
"args": ["-y", "sightradar-mcp"],
"env": { "SIGHTRADAR_API_KEY": "frs_your_key" }
}
}
}In Claude Code:
claude mcp add sightradar --env SIGHTRADAR_API_KEY=frs_your_key -- npx -y sightradar-mcp| Variable | Default | What it does |
|---|---|---|
SIGHTRADAR_API_KEY | required | The API key the server calls with |
SIGHTRADAR_SCOPES | read,search,write,delete | Which permission groups to expose. all adds account; read gives a read-only server |
SIGHTRADAR_FILE_ROOTS | your home folder | Folders file_path may read, separated by : on macOS and Linux or ; on Windows. none turns file_path off |
SIGHTRADAR_BASE_URL | https://api.sightradar.com | API base URL |
SIGHTRADAR_TIMEOUT_MS | 120000 | Per-request timeout in milliseconds |
SIGHTRADAR_DEBUG | unset | Log each tool call (tool name, scope, success) to stderr, without arguments or results |
Permissions
Every tool belongs to one permission group. The sign-in page lists them as checkboxes, X-SightRadar-Scopes and SIGHTRADAR_SCOPES take the same names, and a tool outside the granted groups is not offered to the assistant at all.
| Group | Allows | Spends credits |
|---|---|---|
read | View collections, batches, webhooks, balance and usage | No |
search | Search, detect and compare faces. Stores nothing | Yes |
write | Create collections, index photos, register selfies, submit batches, add webhooks | Yes |
delete | Delete and restore collections and photos, delete webhooks | No |
account | Manage API keys, profile, notifications, auto-recharge, orders and team | No, but update_auto_recharge can charge your card |
Sign-in pre-selects the groups the app asked for (read, search, write and delete when it asks for nothing narrower). account always starts unticked, with a warning, even when the app asks for it; tick it yourself if the app needs it. A read-only connection cannot spend credits or change data.
Tools
100,000 credits = $1, and billing is per photo processed, never per face. Every billable tool states its price in its description and accepts an idempotency_key, so a retried call is not charged twice.
read
| Tool | What it does |
|---|---|
list_collections | Collections with photo, face and selfie counts; search and paging |
get_collection | One collection's status and counts |
get_deletion_status | Progress of a collection deletion |
list_batches, get_batch, get_batch_photos | Batch jobs, their status and per-photo results |
list_webhooks, list_webhook_failures | Webhook endpoints and failed deliveries |
get_balance, get_usage | Credit balance; usage summary, daily series or storage |
search
| Tool | Credits | What it does |
|---|---|---|
search_faces | 93 | Find every photo in a collection that contains the person in a selfie (or an embedding) |
search_by_point_id | 62 | Repeat a registered selfie's search without sending the image again |
detect_faces | 93 | Faces, bounding boxes and quality in an image, stored nowhere |
compare_faces | 93 per image | Whether two faces are the same person. 186 for two images, 93 for an image and an embedding |
write
| Tool | Credits | What it does |
|---|---|---|
index_photo | 93 | Store a photo's faces in a collection |
register_selfie | 93 | Store a person's selfie; returns its point id and embedding |
submit_batch | 62 per photo | Up to 1,000 photo URLs, indexed or matched in the background |
requeue_failed_batch_photos | 62 per photo | Retry failed batch photos: a free preview first, then the run |
create_collection, recreate_collection | free | Create a collection, or bring back a fully deleted one, empty, under the same id |
create_webhook, replay_webhook_failures | free | Signed deliveries for batch and deletion events |
delete
| Tool | What it does |
|---|---|
delete_collection | Soft delete with a 7-day restore window; immediate or compliance erase permanently |
restore_collection | Undo a soft delete |
delete_photo, restore_photo | Remove or restore one photo's faces |
delete_webhook | Stop deliveries to an endpoint |
account
| Tool | What it does |
|---|---|
list_api_keys, create_api_key, revoke_api_key | API keys |
get_profile, update_profile | Name and organization |
get_billing_settings, update_auto_recharge, get_invoice | Auto-recharge, orders and invoice PDFs |
get_notification_settings, update_notification_settings, manage_notification_recipient | Email alerts and extra recipients |
list_team_members | Organization members |
Images
Tools that take an image accept exactly one of:
image_url: a publichttp(s)URL. SightRadar downloads it, so it must be reachable from the internet.gcs_key: an object key on the CDN configured for your account.image_base64: the bytes as base64 or adata:URL. Up to 10 MB on the remote server and 30 MB on the local one.file_path(local server only): a JPEG, PNG, WebP, GIF, BMP, TIFF or HEIC file insideSIGHTRADAR_FILE_ROOTS.
Base64 data and files are checked to be real images before anything is uploaded. For large files, prefer image_url. See Images for what makes a photo match well.
Safety
- Tools carry MCP annotations (
readOnlyHint,destructiveHint), so clients that support them ask you before a destructive call. - Deletes are soft by default. Permanent erasure happens only when
immediateorcomplianceis set, and erasing a collection that still holds faces needs a second, confirmed call. requeue_failed_batch_photosshows the number of photos and the estimated cost before it spends anything, andupdate_auto_rechargetells the assistant to confirm amounts with you first.- The local server reads only image files inside
SIGHTRADAR_FILE_ROOTS, after resolving symlinks. - API errors come back to the assistant as tool results with the error code, a hint and the request id, never as stack traces.
- A selfie is biometric data. Register selfies only with the person's consent, as the Acceptable Use Policy requires.
Related
- Agent skill: instructions for coding agents that call the REST API or CLI directly.
- Agent setup: point any agent at the Markdown docs and
llms.txt. - Authentication: how API keys work and how to keep them out of client code.