Skip to main content

Karanfil Labs — Visual DNA MCP Server

Karanfil Labs Visual DNA API

Official Model Context Protocol (MCP) server for the Karanfil Labs Visual DNA API — enabling Claude Desktop, Cursor, Windsurf, and any MCP-compatible AI agent to identify movies & TV episodes from video frames or search across 88M+ 768-d visual fingerprints using plain-language prompts.

🇬🇧 English Guide • 🇹🇷 Türkçe Kılavuz • 🌐 Live Demo & API Key • 📖 Swagger Docs


🇬🇧 English Guide

Available MCP Tools

  1. identify_scene_from_image — Identify the movie or TV episode (SxxExx), release year, tmdb_id, and similarity confidence from any local screenshot file path (PNG, JPG, WEBP) or direct image URL (POST /v1/identify). Works even on cropped or subtitled frames.
  2. search_scenes_by_text — Semantic text-to-scene discovery across millions of cinema and TV frames using natural English descriptions like "rainy neon street car chase" (POST /v1/search).
  3. check_visual_dna_status — Keyless health check returning live server status and real-time indexed 768-d vector count (GET /health).

Privacy & Catalog Note

  • Volatile RAM Processing: Submitted image frames are converted into 768-d mathematical vectors strictly in volatile server RAM and discarded immediately — zero full images or copyrighted videos are hosted or written to disk.
  • Growing Catalog & Thresholds: While 88M+ frame vectors are online (heavily covering TV series, anime, and feature films), not every movie ever made is indexed yet. True matches from indexed titles typically score 82% – 95%+; scores below 80% indicate closest visual similarity when a title is not yet in the index.

1. Get Your Free API Key (50 Free Credits)

Sign up in 15 seconds at karanfillabs.com/#portal (no credit card required) to receive 50 free API test credits and your kl_live_... key.

2. Quick Configuration (Claude Desktop / Cursor / Windsurf)

Requires uv (pip install uv or brew install uv). Add the following block to your claude_desktop_config.json or .cursor/mcp.json:

Option A — Run directly from GitHub (Works Immediately):

{
  "mcpServers": {
    "karanfillabs": {
      "command": "uvx",
      "args": [
        "--from",
        "git+[https://github.com/karanfillabs/karanfillabs-mcp](https://github.com/karanfillabs/karanfillabs-mcp)",
        "karanfillabs-mcp"
      ],
      "env": {
        "KARANFIL_API_KEY": "kl_live_your_api_key_here"
      }
    }
  }
}

Option B — Run from PyPI (Once published on PyPI):

{
  "mcpServers": {
    "karanfillabs": {
      "command": "uvx",
      "args": ["karanfillabs-mcp"],
      "env": {
        "KARANFIL_API_KEY": "kl_live_your_api_key_here"
      }
    }
  }
}

3. Example Prompts in Claude or Cursor

  • "Check Karanfil Labs Visual DNA server status and how many vectors are online."
  • "Identify the movie or series episode in /Users/alex/Desktop/frame.jpg using Karanfil Labs."
  • "Search Karanfil Labs for cinema scenes matching 'spaceship approaching a black hole'."

🇹🇷 Türkçe Kılavuz

Karanfil Labs Visual DNA API için resmi Model Context Protocol (MCP) köprü paketi. Tek satır kod yazmadan Claude Desktop, Cursor ve Windsurf içerisinden bilgisayarınızdaki bir film/dizi karesini taratabilir veya 88M+ adet 768 boyutlu görsel parmak izi arasında sahne araması yapabilirsiniz.

Sunulan Araçlar (Tools)

  1. identify_scene_from_image — Bilgisayarınızdaki bir ekran görüntüsü yolundan (PNG, JPG, WEBP) veya doğrudan görsel bağlantısından hangi film/dizi bölümü (SxxExx) olduğunu, yılını, tmdb_id bilgisini ve güven skorunu döndürür (POST /v1/identify).
  2. search_scenes_by_text — Doğal dil sahne tarifleriyle milyonlarca sinema/dizi karesi içinde anlamsal sahne araması yapar (POST /v1/search). Türkçe yazsanız bile yapay zeka asistanınız tarifi otomatik İngilizceye çevirerek sorgular.
  3. check_visual_dna_status — Anahtar gerektirmeden sunucu sağlık durumunu ve o an aktif olan canlı vektör sayısını döndürür (GET /health).

Gizlilik ve Katalog Notu

  • Anlık RAM İşleme (KVKK / GDPR Uyumlu): Gönderilen kareler yalnızca geçici sunucu belleğinde (RAM) 768 boyutlu vektöre çevrilip salisesinde silinir; diske ham görsel yazılmaz ve telifli video barındırılmaz.
  • Büyüyen Katalog ve Skor Eşiği: Katalogda 88M+ kare vektörü aktif olsa da henüz tarihteki tüm filmler indekslenmemiştir. İndekste bulunan yapımlar genelde %82 – %95+ bandında eşleşir; %80 altındaki skorlar aranan yapımın henüz katalogda olmayabileceğini gösterir.

1. Ücretsiz API Anahtarı Alın (50 Hediye Kredi)

karanfillabs.com/#portal adresinden kredi kartı gerekmeden ücretsiz hesap açarak 50 test kredisi ve kl_live_... anahtarınızı hemen alabilirsiniz.

2. Kurulum (Claude Desktop / Cursor)

claude_desktop_config.json veya .cursor/mcp.json dosyanıza yukarıdaki Option A JSON bloğunu ekleyip KARANFIL_API_KEY kısmına kendi kl_live_... anahtarınızı yazmanız yeterlidir.

3. Örnek Kullanım Komutları

  • "Karanfil Labs sunucu durumunu ve aktif vektör sayısını kontrol et."
  • "Masaüstümdeki C:\Users\Kullanici\Desktop\sahne.png karesinin hangi dizi ve bölüm olduğunu Karanfil Labs ile bul."
  • "Yağmurlu bir gecede neon ışıklı sokakta geçen araba kovalamacası sahnelerini Karanfil Labs'te ara."

License

MIT © Karanfil Labs Yazılım ve Teknoloji A.Ş.

Metadata

Release files for karanfillabs-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for karanfillabs-mcp 0.1.0
File Size Uploaded Provenance Actions
karanfillabs_mcp-0.1.0.tar.gz 7.3 kB With provenance Details for karanfillabs_mcp-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for karanfillabs-mcp 0.1.0
File Interpreter ABI Platform Actions
karanfillabs_mcp-0.1.0-py3-none-any.whl Python 3 none any Details for karanfillabs_mcp-0.1.0-py3-none-any.whl

Total release size: 15.0 kB

Release files / karanfillabs_mcp-0.1.0.tar.gz

Download URL karanfillabs_mcp-0.1.0.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
636c54054ec8a294cd95ad9ae3ff3e71a6406e874edb3fc82093a814a86ed03b
BLAKE2b-256 checksum
How to use checksums
e6081d28fa63192afb6fee8598b59b752eca9309b2480f8baa4679e112765b26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / karanfillabs_mcp-0.1.0-py3-none-any.whl

Download URL karanfillabs_mcp-0.1.0-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e5f43ea24c246c76bf4db0b243b5447f567428f1d607319ccc6c8e282cb436ed
BLAKE2b-256 checksum
How to use checksums
a458c7b6430e0261d856eb0293a5d1d5430cff54f8cf8c713ad7da41566d33eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Security for karanfillabs-mcp 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for karanfillabs_mcp-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page