Metadata-Version: 2.5
Name: topit-mcp
Version: 0.1.0
Summary: Topit local companion: rank, de-duplicate and export the photos in a folder with your Topit taste, from Claude, Claude Code or Amp.
Project-URL: Homepage, https://mytopit.com/mcp
Project-URL: Documentation, https://mytopit.com/settings/api
Author-email: Topit AI LLC <hello@mytopit.com>
License: Proprietary
Keywords: claude,instagram,mcp,model-context-protocol,photo-culling,photos
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Multimedia :: Graphics
Requires-Python: >=3.10
Requires-Dist: anyio<5,>=4.9
Requires-Dist: httpx<0.29.0,>=0.28.1
Requires-Dist: imagehash<5.0.0,>=4.3.1
Requires-Dist: mcp<1.31.0,>=1.30.0
Requires-Dist: numpy<3,>=1.26
Requires-Dist: pillow-heif<2.0.0,>=0.18.0
Requires-Dist: pillow<12.0.0,>=10.4.0
Requires-Dist: rawpy<0.27.0,>=0.21.0
Provides-Extra: test
Requires-Dist: pytest<10,>=8; extra == 'test'
Description-Content-Type: text/markdown

# topit-mcp: your best photos, picked by your own taste

<!-- mcp-name: com.mytopit/topit -->

Ask Claude, Claude Code, Cursor or Amp to "find my best 25 photos in this folder for Instagram" and get
[Topit](https://mytopit.com)'s ranking, trained on your own taste, not a generic guess.

`topit-mcp` is the local companion: a small MCP server that ranks, de-duplicates and exports the photos in a
folder on your computer (JPEG, PNG, WebP, HEIC and camera RAW).

## Quick start

1. Get a free key at **mytopit.com → Settings → API & MCP → Create key**, or run `uvx topit-mcp login` once.
2. Add it to your agent:

```sh
# Claude Code
claude mcp add --env TOPIT_API_KEY=tpk_... --transport stdio topit-local -- uvx topit-mcp
# Amp
amp mcp add topit-local --env TOPIT_API_KEY=tpk_... -- uvx topit-mcp
```

Claude Desktop (`claude_desktop_config.json`):

```json
{ "mcpServers": { "topit": { "command": "uvx", "args": ["topit-mcp"], "env": { "TOPIT_API_KEY": "tpk_..." } } } }
```

No install at all? Use the hosted connector `https://api.mytopit.com/mcp` (sign in with your Topit account).
It ranks photos already in Topit or sent in the chat, but cannot read your disk.

## Try it

- "Rank the photos in ~/Pictures/Lisbon for Instagram and give me the best 25."
- "Which of these are duplicates? Keep the best of each."
- "Copy the top 10 to ~/Desktop/lisbon-picks at 2048 px."

## Tools

| Tool | Does |
|---|---|
| `rank_photos(folder or files, context, top_k)` | Topit's ranking with a score and a reason per photo |
| `group_duplicates(folder or files)` | Near-duplicate groups and the sharpest keeper; runs offline |
| `export_selection(ranked, destination)` | Copies the picks in rank order as `001_…`, never touching the originals |

## What leaves your computer

Only a 1200 px JPEG copy of each photo, with no EXIF, GPS, camera or date data, and no file names. Topit keeps
only the measured numbers, for at most 15 minutes. No photo is stored. `group_duplicates` sends nothing.

## Limits

Each Topit plan includes ranked photos every month, starting with the free plan. See your allowance and usage at
mytopit.com/settings/api.

Requires Python 3.10+ and [uv](https://docs.astral.sh/uv/). Questions: hello@mytopit.com.
