TC

timoncool/civitai-mcp-ultimate

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

27 stars 7 forks 品質 84 トレンド 20MIT

Civitai APIの究極のMCPサーバー — 検索モデル、プロンプトでトップ画像を参照し、LoRAs /チェックポイントをダウンロードし、傾向を分析します。 バイリンガル(EN/RU) Python と FastMCP の.

概要

あなたのAIアシスタントからすべて。 CivitaiパブリックREST API v1の100%をカバーする14ツール。 2026-03-24 の実際の Civitai API から検証されるすべての API パラメータ。 壊れた実装からコピーしないと推測しません。 - — 高速で正確なテキスト検索 (Civitai REST API の検索は 5 月 2025 日以降は壊れています) - — チェックポイント、LoRAs、40 以上のベースモデルフィルタで ControlNets (SD 1.5 → Flux.2) - — 反応、コメント、コレクションでソートします。 完全な生成パラメータを取得する - — auth、ComfyUI パス自動マッピングによる curl/PowerShell コマンド - API キー (None/Soft/Mature/X フィルタリング) で NSFW の全アクセス - - - - - - - - - - - /.civitai-mcp-cache/、24h 自動クリーンアップ - 英語とロシア語 (CITAIVI MCP LANG = ru) - - - パブリック API をカバーする HTTPx async クライアント、再接続 - RESTai-mcp-cache を100% 制限します。 SD 1.5、SD 1.5 LCM、SD 1.5 ハイパー、SD 2.0、SD 2.1、SDXL 1.0、SDXL ライトニング、SDXL ハイパー、Flux.1 S、Flux.1 D、Flux.1 Krea、Flux.1 Kontext、Flux.2 D、変化.

概要(AI 翻訳)

Civitai APIのMCPサーバーは、検索モデル、プロンプトで画像を参照し、LoRAs /チェックポイントをダウンロードし、傾向を分析します。

あなたのAIアシスタントからすべて。 CivitaiパブリックREST API v1の100%をカバーする14ツール。

2026-03-24 の実質の Civitai API から確認されるすべての API 変数。 壊れた実装からコピーしないと推測しません。

お問い合わせ

##特徴

  • Meilisearch-powered search — 速く、正確なテキスト検索 (Civitai REST API search は 2025 年 5 月以降壊れています)
  • 検索モデル — チェックポイント、LoRA、40以上のベースモデルフィルタを備えたControlNet(SD 1.5 → Flux.2) -プロンプトでトップ画像 - 反応、コメント、コレクションでソートします。 全世代のパラムを入手 -コマンドのダウンロード — auth、ComfyUIパス自動マッピングでcurl/PowerShellコマンド
  • NSFW サポート — API キー (None/Soft/Mature/X フィルタリング) による完全な NSFW アクセス
  • 画像/ビデオキャッシュ — 自動ダウンロードプレビューを[~/.civitai-mcp-cache/]に、24時間オートクリーンアップ -バイリンガル出力英語とロシア語([[T1])
  • 非同期&高速 — httpx非同期クライアント、レート制限のバックオフで再試行 -14ツール CivitaiパブリックREST API v1の100%をカバーする

お問い合わせ

クイックスタート

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

All from your AI assistant. 14 tools covering 100% of the Civitai public REST API v1.

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
GitHub で README 全文を見る

インストール

uvx civitai-mcp-ultimate
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

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