Skip to main content

Ultimate MCP server for Civitai API — search models, browse top images with prompts, download LoRAs/Checkpoints, analyze trends

Project description

civitai-mcp-ultimate

PyPI Python 3.10+ License: MIT MCP

The most complete MCP server for Civitai API. Search models, browse top images with prompts, download LoRAs/Checkpoints, analyze trends — all from your AI assistant.

All API parameters verified against real Civitai API on 2026-03-24. No guessing, no copying from broken implementations.


Features

  • Meilisearch-powered search — fast, accurate text search (Civitai REST API search is broken since May 2025)
  • Search models — Checkpoints, LoRAs, ControlNets with 40+ base model filters (SD 1.5 → Flux.2)
  • Top images with prompts — sort by reactions, comments, collections. Get full generation params
  • Download commands — curl/PowerShell commands with auth, ComfyUI path auto-mapping
  • NSFW support — full NSFW access with API key (None/Soft/Mature/X filtering)
  • Image/video cache — auto-download previews to ~/.civitai-mcp-cache/, 24h auto-cleanup
  • Bilingual output — English and Russian (CIVITAI_MCP_LANG=ru)
  • Async & fast — httpx async client, retry with backoff on rate limits
  • 14 tools covering 100% of the Civitai public REST API v1

Quick Start

Install from PyPI

pip install civitai-mcp-ultimate

Claude Code

claude mcp add civitai -e CIVITAI_API_KEY=your_key_here -- uvx civitai-mcp-ultimate

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "civitai": {
      "command": "uvx",
      "args": ["civitai-mcp-ultimate"],
      "env": {
        "CIVITAI_API_KEY": "your_key_here"
      }
    }
  }
}

pip

pip install civitai-mcp-ultimate
civitai-mcp-ultimate

Tools

Models (6 tools)

Tool Description
search_models Search via Meilisearch (text) or REST API (filters). Type, base model, tag, creator, sort
get_model Full model details by ID
get_model_version Version details: files, trigger words, download URLs
get_model_version_by_hash Find model by file hash
get_top_checkpoints Top checkpoints by base model (SDXL, Flux, Pony...)
get_top_loras Top LoRAs by base model

Images (4 tools)

Tool Description
browse_images Browse images with filters and sorting
get_top_images Top images by reactions/comments/collections
get_model_images Example images for a model with prompts
get_image_generation_data Full generation params from top images

Creators & Tags (2 tools)

Tool Description
get_creators Browse/search model creators
get_tags Browse/search model tags

Downloads (2 tools)

Tool Description
get_download_url Authenticated download URL
get_download_info Download commands (curl/PowerShell) + ComfyUI path mapping

Supported Filters

Base Models (all verified working)

SD 1.5, SD 1.5 LCM, SD 1.5 Hyper, SD 2.0, SD 2.1, SDXL 1.0, SDXL Lightning, SDXL Hyper, Flux.1 S, Flux.1 D, Flux.1 Krea, Flux.1 Kontext, Flux.2 D, Flux.2 Klein 9B/4B, Pony, Pony V7, Illustrious, NoobAI, Anima, ZImageBase, AuraFlow, Chroma, HiDream, Hunyuan 1, Kolors, PixArt a/E, Lumina, CogVideoX, Hunyuan Video, LTXV/LTXV2, Mochi, Wan Video (all variants)

Model Types

Checkpoint, LORA, LoCon, TextualInversion, Hypernetwork, Controlnet, Poses, AestheticGradient, Wildcards, MotionModule, VAE, Upscaler, Workflows, Other

Image Sort

Most Reactions, Most Comments, Most Collected, Newest, Oldest


Configuration

Variable Required Default Description
CIVITAI_API_KEY Recommended API key for NSFW access + higher rate limits
CIVITAI_MCP_LANG No en Output language: en or ru
COMFYUI_MODELS_PATH No ComfyUI models path for download commands
MEILISEARCH_KEY No built-in Meilisearch search-only key (public, has default)

Get your API key: Civitai Account Settings


Examples

> Search for the top Flux LoRAs this month
> Show me the most popular SDXL checkpoints
> Get the best prompts for model 12345
> Give me download commands for this LoRA into my ComfyUI
> Find NSFW LoRAs for Illustrious sorted by reactions

Development

git clone https://github.com/timoncool/civitai-mcp-ultimate
cd civitai-mcp-ultimate
pip install -e ".[dev]"
pytest

Автор

Nerual Dreming (t.me/nerual_dreming) — neuro-cartel.com | основатель ArtGeneration.me

Другие open-source проекты

Проект Описание
Foundation Music Lab Генерация музыки + таймлайн-редактор
VibeVoice ASR Распознавание речи (ASR)
LavaSR Портативный ASR на базе Faster-Whisper
Bulka Браузерный синтезатор live-coded музыки
mock.dog AI-генератор мокапов для маркетплейсов

License

MIT


Если проект полезен — поставьте звездочку!


README.ru.md

civitai-mcp-ultimate

Самый полный MCP сервер для Civitai API. Ищите модели, просматривайте топовые картинки с промптами, скачивайте LoRA/Checkpoints, анализируйте тренды — прямо из AI-ассистента.

Быстрый старт

claude mcp add civitai -- uvx civitai-mcp-ultimate
export CIVITAI_API_KEY=ваш_ключ
export CIVITAI_MCP_LANG=ru

Примеры использования

> Найди топовые Flux LoRA за месяц
> Покажи лучшие SDXL чекпоинты
> Дай промпты для модели 12345
> Скачай эту LoRA в мой ComfyUI
> Найди NSFW LoRA для Illustrious по реакциям

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

civitai_mcp_ultimate-0.2.0.tar.gz (30.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

civitai_mcp_ultimate-0.2.0-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

Details for the file civitai_mcp_ultimate-0.2.0.tar.gz.

File metadata

  • Download URL: civitai_mcp_ultimate-0.2.0.tar.gz
  • Upload date:
  • Size: 30.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for civitai_mcp_ultimate-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cf435fcba0142cf6a50613ec63828b29a1d6e650a740171877760543ce12da80
MD5 f5b8309770bdcb66d2ce0dc240938359
BLAKE2b-256 a0a5e5342f24a4c324ee376492043a98c5c7944fd199b2afe2a0880390bd7982

See more details on using hashes here.

File details

Details for the file civitai_mcp_ultimate-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for civitai_mcp_ultimate-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 77ef92667c8aa98431d67318c924b0488fa42c6004fbf315aa8644e153b16da0
MD5 61e05d7346fd35dd0bb57bd93d254ff0
BLAKE2b-256 a7cca12d30b7bc2db7caf5be9cf145fda5ae987acc1e83a826768cd85f525fd6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page