mcp

mcp is a command for coding agents from erhangundogan/videre. It costs 18 tokens per session (2,036 once invoked), scanned A, original, Apache-2.0.

Read-only tools that let an AI assistant search and review a photo library through the Model Context Protocol, a standard way for AI clients to use external tools. The tools report library statistics, find duplicates, and search photos with filters.

In plain words
What is it for?
Getting library summaries, finding exact duplicates or similar images for review, and searching by text, image, person, category, location, and date.
Why use it?
They let an assistant inspect a photo database without opening a network port or changing the library.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/erhangundogan/videre/mcp
Clone the repo
git clone --depth 1 https://github.com/erhangundogan/videre

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mcp

README.md
[![agentmods](https://agentmods.dev/badge/commands/erhangundogan/videre/mcp.svg)](https://agentmods.dev/commands/erhangundogan/videre/mcp)
Your own site
<a href="https://agentmods.dev/commands/erhangundogan/videre/mcp"><img src="https://agentmods.dev/badge/commands/erhangundogan/videre/mcp.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,036 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00018 $0.02036
Opus 5 $0.00009 $0.01018
Sonnet 5 $0.00004 $0.00407
Haiku 4.5 $0.00002 $0.00204

Measured 5d ago against content hash fd9b8ed40a4b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mcp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/src/content/docs/commands/mcp.md · 253 lines

How it starts

The opening of the file, as written. The whole thing — 253 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Serves read-only tools to an AI assistant using the Model Context Protocol. No server to run, no port to open, nothing listening: the client starts videre as a child process and talks to it over stdin and stdout.

videre mcp                             # serve using the default database
videre mcp --db ~/photos.db            # serve a specific database
videre mcp --model <model-id>          # serve searches from a specific model

You do not usually run this yourself. Your client runs it for you, using one of the configurations below.

The three tools

Tool Parameters What it does
stats none Library summary: files, size, embeddings, faces, people, GPS coverage, date range
find_duplicates include_similar Exact-duplicate groups as keep and remove, plus review-only look-alikes
search query, image_path, person, category, location, radius_km, after, before, date, sort, top_k Composed search: filters narrow, a ranker orders

search takes at most one ranker (query or image_path) and any number of filters (person, category, location + radius_km, and after/before/date), which AND together. At least one of the two is required. sort accepts a comma-separated field[:asc|desc] list.

Text and image search need videre embed; person needs videre faces plus naming; category needs videre classify.

The MCP server and the CLI run the identical code path, so a composed tool call and the equivalent videre search invocation return the same results by construction. See compositional searches for what composes with what.

:::caution[location is the one parameter that reaches the network] Geocoding a place name makes an outbound request on a cache miss and writes the answer to the geocode_cache table, so it is also the only part of this read-only server that writes anything. Repeats are served locally. :::

Read the full file on GitHub · 253 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 253 lines · 18 tokens per session scan A fd9b8ed40a4b

Subscribe to this mod's changes

mcp is a command published in the GitHub repository erhangundogan/videre (2 stars, last pushed yesterday), licensed Apache-2.0. It adds 18 tokens to every session and 2,036 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.