New: Earn 20% as an AgentAlley affiliate. Share your link and earn on every sale you refer. Join now New: Earn 20% as an affiliate. Join now

Discover Civitai models with the BUILT-IN downloadmodel

Civitai + comfyui-mcp

by artokun · MIT license · ★ 759 on GitHub · updated Sep 21

Civitai + comfyui-mcp cover

Discover Civitai models with the BUILT-IN download_model action:"search_civitai" and install/generate them locally. Find a checkpoint/LoRA/embedding on Civitai, download it into ComfyUI, and use its trigger words.

---
name: civitai
description: Discover Civitai models with the BUILT-IN download_model action:"search_civitai" and install/generate them locally. Find a checkpoint/LoRA/embedding on Civitai, download it into ComfyUI, and use its trigger words. Optionally pair the official Civitai MCP for community features (images browsing, posting, collections).
---

# Civitai + comfyui-mcp

comfyui-mcp has native Civitai search built in (`download_model` `action:"search_civitai"`)
plus the local half of the loop: download, wire, queue, tag. The full flow
(find, install, generate) needs no other server and no API key, and works on
every backend, including small local models behind the compact router.

## The built-in flow (default path)

```
download_model({ action: "search_civitai", query, types: ["LORA"], base_models: ["Flux.1 D"] })
        │                    each hit: model_id · model_version_id · trigger words
        ▼

Overview

comfyui-mcp has native Civitai search built in (download_model action:"search_civitai") plus the local half of the loop: download, wire, queue, tag. The full flow (find, install, generate) needs no other server and no API key, and works on every backend, including small local models behind the compact router.

Manual install (npx, ZIP)
Claude Codenpx skills add artokun/comfyui-mcp --skill civitai -g -a claude-code
Claude Code (manual)mkdir -p ~/.claude/skills && curl -sL https://codeload.github.com/artokun/comfyui-mcp/tar.gz/1d5b12b1b499 \ | tar -xz -C ~/.claude/skills --strip-components=3 comfyui-mcp-1d5b12b1b499/plugin/skills/civitai
Windows (PowerShell)New-Item -ItemType Directory -Force "$HOME\.claude\skills" | Out-Null; Invoke-WebRequest "https://m.agentalley.io/zip/56143b12167285f64fbf/civitai.zip" -OutFile "$env:TEMP\civitai.zip"; Expand-Archive "$env:TEMP\civitai.zip" -DestinationPath "$HOME\.claude\skills" -Force
Claude.ai / desktopDownload the ZIP and upload it under Settings → Capabilities → Skills.
Codex, Cursor, other agentsPoint them at SKILL.md. The other files are plain text.

Connects with Agent Alley MCP · agentalley.io/mcp

Files included

  • SKILL.md4.2 KB
Read the files here
artokun/1d5b12b1 file
SKILL.md
Show the full text87 lines

Civitai + comfyui-mcp

comfyui-mcp has native Civitai search built in (download_model action:"search_civitai") plus the local half of the loop: download, wire, queue, tag. The full flow (find, install, generate) needs no other server and no API key, and works on every backend, including small local models behind the compact router.

The built-in flow (default path)

download_model({ action: "search_civitai", query, types: ["LORA"], base_models: ["Flux.1 D"] })
        │                    each hit: model_id · model_version_id · trigger words
        ▼
download_model({ action: "download_civitai", model_version_id, target_subfolder: "loras" })
        │
        ▼
list_local_models({ action: "list" })  →  panel_add_node loader / generate_image   # use it
  • ALWAYS filter base_models when the user's checkpoint family is known. A Flux LoRA will not load on an SDXL checkpoint (see model-compatibility). CivitAI labels: Flux.1 D, SDXL 1.0, SD 1.5, Pony, Illustrious, Wan Video.
  • target_subfolder must match the model type: checkpoints, loras, vae, controlnet, embeddings, upscale_models, and so on.
  • Results are SFW-only by default (nsfw: true to opt in).
  • Each hit carries trigger words. Put them in the prompt after installing.
  • Prefer model_version_id over model_id. A Civitai page can list several versions and the user usually means a specific one.

Search needs no API key. CIVITAI_API_TOKEN (from civitai.com/user/account) unlocks gated/early-access downloads and gated search results. Set it once, in panel Settings under "Set CivitAI token…" or in env.

Recipes

"Find me a good anime LoRA for Flux and install it"

  1. download_model({ action: "search_civitai", query: "anime style", types: ["LORA"], base_models: ["Flux.1 D"] }).
  2. Present the top 3 to 5 with name, creator, base model, downloads, and the version id. Let the user pick.
  3. download_model({ action: "download_civitai", model_version_id, target_subfolder: "loras" }).
  4. In the panel, panel_add_node a LoraLoader, panel_set_widget the lora_name, wire it between checkpoint and sampler, and use the hit's trigger words in the prompt. Headless: generate_image(action="image") / build the workflow.

"Download this Civitai page for me" (user pastes a URL)

  • Parse the modelVersionId from the URL if present; otherwise pass the model id from the URL to action:"download_civitai" (it resolves the latest version). A raw civitai.com/api/download/... URL also works via action:"download" with CIVITAI_API_TOKEN set.

Optional: the official Civitai MCP (community surface)

For features beyond search and install (browsing example images and their generation params, collections, posting, reviews, bounties), pair the official remote server. It is no longer auto-bundled; add it once:

claude mcp add --transport http civitai https://mcp.civitai.com/mcp \
  --header "Authorization: Bearer YOUR_CIVITAI_API_KEY"

Then mcp__civitai__* tools appear alongside comfyui-mcp's. Its discovery results hand off identically (modelVersions[].id → action:"download_civitai").

That server also exposes write/social tools (post, comment, review, DM, follow). Those publish on the user's behalf, so show what you're about to post and get an explicit yes first. This skill covers discovery, local install, and generation; don't post or message without being asked.

See also

  • model-registry for curated direct download URLs (HF + Civitai notes)
  • model-compatibility for base-model / VAE / CLIP pairing (why a LoRA won't load)
  • prompt-engineering because Civitai image params are a prompt goldmine

Sources

1---
2name: civitai
3description: Discover Civitai models with the BUILT-IN download_model action:"search_civitai" and install/generate them locally. Find a checkpoint/LoRA/embedding on Civitai, download it into ComfyUI, and use its trigger words. Optionally pair the official Civitai MCP for community features (images browsing, posting, collections).
4---
5 
6# Civitai + comfyui-mcp
7 
8comfyui-mcp has native Civitai search built in (`download_model` `action:"search_civitai"`)
9plus the local half of the loop: download, wire, queue, tag. The full flow
10(find, install, generate) needs no other server and no API key, and works on
11every backend, including small local models behind the compact router.
12 
13## The built-in flow (default path)
14 
15```
16download_model({ action: "search_civitai", query, types: ["LORA"], base_models: ["Flux.1 D"] })
17 │ each hit: model_id · model_version_id · trigger words
18 ▼
19download_model({ action: "download_civitai", model_version_id, target_subfolder: "loras" })
20 │
21 ▼
22list_local_models({ action: "list" }) → panel_add_node loader / generate_image # use it
23```
24 
25- ALWAYS filter `base_models` when the user's checkpoint family is known.
26 A Flux LoRA will not load on an SDXL checkpoint (see `model-compatibility`).
27 CivitAI labels: `Flux.1 D`, `SDXL 1.0`, `SD 1.5`, `Pony`, `Illustrious`,
28 `Wan Video`.
29- `target_subfolder` must match the model type: `checkpoints`, `loras`, `vae`,
30 `controlnet`, `embeddings`, `upscale_models`, and so on.
31- Results are SFW-only by default (`nsfw: true` to opt in).
32- Each hit carries trigger words. Put them in the prompt after installing.
33- Prefer `model_version_id` over `model_id`. A Civitai page can list several
34 versions and the user usually means a specific one.
35 
36Search needs no API key. `CIVITAI_API_TOKEN` (from
37civitai.com/user/account) unlocks gated/early-access downloads and gated
38search results. Set it once, in panel Settings under "Set CivitAI token…" or in env.
39 
40## Recipes
41 
42**"Find me a good anime LoRA for Flux and install it"**
431. `download_model({ action: "search_civitai", query: "anime style", types: ["LORA"], base_models: ["Flux.1 D"] })`.
442. Present the top 3 to 5 with name, creator, base model, downloads, and the
45 version id. Let the user pick.
463. `download_model({ action: "download_civitai", model_version_id, target_subfolder: "loras" })`.
474. In the panel, `panel_add_node` a `LoraLoader`, `panel_set_widget` the
48 `lora_name`, wire it between checkpoint and sampler, and use the hit's
49 trigger words in the prompt. Headless: `generate_image(action="image")` / build the workflow.
50 
51**"Download this Civitai page for me"** (user pastes a URL)
52- Parse the `modelVersionId` from the URL if present; otherwise pass the model
53 id from the URL to `action:"download_civitai"` (it resolves the latest version).
54 A raw `civitai.com/api/download/...` URL also works via `action:"download"`
55 with `CIVITAI_API_TOKEN` set.
56 
57## Optional: the official Civitai MCP (community surface)
58 
59For features beyond search and install (browsing example images and their
60generation params, collections, posting, reviews, bounties), pair the official
61remote server. It is no longer auto-bundled; add it once:
62 
63```bash
64claude mcp add --transport http civitai https://mcp.civitai.com/mcp \
65 --header "Authorization: Bearer YOUR_CIVITAI_API_KEY"
66```
67 
68Then `mcp__civitai__*` tools appear alongside comfyui-mcp's. Its discovery
69results hand off identically (`modelVersions[].id` → `action:"download_civitai"`).
70 
71That server also exposes write/social tools (post,
72comment, review, DM, follow). Those publish on the user's behalf, so show
73what you're about to post and get an explicit yes first. This skill covers
74discovery, local install, and generation; don't post or message without being
75asked.
76 
77## See also
78 
79- `model-registry` for curated direct download URLs (HF + Civitai notes)
80- `model-compatibility` for base-model / VAE / CLIP pairing (why a LoRA won't load)
81- `prompt-engineering` because Civitai image params are a prompt goldmine
82 
83## Sources
84 
85- **Official:** Civitai REST API https://civitai.com/api/v1 and Civitai MCP https://mcp.civitai.com/mcp
86- **Empirical:** find→install→generate wiring is comfyui-mcp product guidance, not Civitai's prompting docs.
87 
View all files on GitHub →

Details

Updated
Sep 21, 2026
License
MIT
Stars on the repo
★ 759
Checked
Source
artokun/comfyui-mcp ↗
Creator
artokun · 44 listings
View creator

Similar skills

See all →
SkillMake Japanese TV-anime style videos with codeAnime celedenfunf/reelmimic · by edenfunfMake Japanese TV-anime style videos (MP4) with code — cel-shaded characters with tapered line art, big detailed eyes, hair clumps with a specular band, comedic anime reactions (sweat drop, anger vein, sparkle eyes, ≥< eyes, dot eyes, tears), painted skies with cumulus clouds, school/street/classroom/rooftop sets with time-of-day palettes, speed/focus lines, impact frames, dramatic zooms, smears, sakura petals and anime subtitles (CJK). Canvas 2D rendered frame by frame in headless Chrome, encoded with ffmpeg. Use when a reference video or brief calls for anime / 動畫 / 日系動畫 / アニメ / cel-shaded / slice-of-life / school romance / shōnen-style reactions, or when the video-clone router picks the anime-cel style. 2D only; characters are original (Hina, Ren) or new ones built on the same rig.★ 3.6k GitHub starsSkillDirect and produce a short film made entirely in codeLemo opuscarlemomo-ai/lemo-opuscar · by lemomo-aiDirect and produce a short film made entirely in code, in one of the styles of the Lemo-Opuscar library (e.g. Impasto Oil Painting 油画厚涂, Watercolor Brush 水彩笔刷, Ukiyo-e 浮世绘, Satellite Briefing 卫星简报, Exploded Teardown 产品拆解, Microscope Story 显微叙事). Use when the user asks for a video, film, short, promo, explainer or animation (视频、短片、动画、宣传片) in a named style, including data, science and product explainers built from real material such as satellite imagery, laser scans, CAD files or archive scans (数据解说、科普、产品拆解); when they want a film made about their own topic and haven't chosen a style (help them choose); or when they ask which film styles there are. Not for editing or converting existing video files.★ 3k GitHub starsSkillGenerate Ian-style Xiaohei illustrations for articles, postsdzhng/skills · by dzhngGenerate Ian-style Xiaohei illustrations for articles, posts, blogs, Notion documents, workflows, methods, processes, structures, states, metaphors, and opinions. Use when the user asks for weird, hand-drawn, Xiaohei, article, editorial, body illustrations, illustration ideas, shot lists, title removal, image edits, or image regeneration. By default, all image text and annotations are English, even when the source article is Chinese; only use another language when the user explicitly asks.★ 1.3k GitHub starsSkillCreating game art through Scenario MCP: spritesScenario game assetsscenario-labs/skills · by scenario-labsUse when creating game art through Scenario MCP: sprites, sprite sheets, icons, props, loot, tilesets and autotile terrain transitions, seamless tiles, isometric buildings, top-down maps, pixel art, UI buttons and panels, parallax background layers or depth planes for side-scrollers, and character or concept art; or when assets need transparent backgrounds, background removal, style-consistent variation batches, upscaling, pixel-grid cleanup, or PNG export for Unity, Godot, or Unreal.★ 854 GitHub starsSkillTrain custom LoRAs with ostris AI-ToolkitAI-Toolkit LoRA Trainer (WAN 2.2 & Z-Image)artokun/comfyui-mcp · by artokunTrain custom LoRAs with ostris AI-Toolkit. Covers WAN 2.2/2.1 (people, styles, video motion) and Z-Image (Turbo & Base, low-VRAM image LoRAs). Use when the user wants to train a WAN or Z-Image LoRA; covers local + RunPod setup, dataset prep, key params, and using the result in a ComfyUI workflow.★ 759 GitHub starsSkillAnime/illustration text-to-imageANIMA 1.0 (Anima Base Ultra) Text-to-Image Workflowsartokun/comfyui-mcp · by artokunAnime/illustration text-to-image (ANIMA 1.0, ~2B Cosmos DiT). Use for anime, manga, illustrated characters; accepts Danbooru tags + natural language; runs/trains on <6GB VRAM; includes anime inpainting via Anima-LLLite ControlNet★ 759 GitHub stars

More from artokun

SkillTrain custom LoRAs with ostris AI-ToolkitAI-Toolkit LoRA Trainer (WAN 2.2 & Z-Image)artokun/comfyui-mcp · by artokunTrain custom LoRAs with ostris AI-Toolkit. Covers WAN 2.2/2.1 (people, styles, video motion) and Z-Image (Turbo & Base, low-VRAM image LoRAs). Use when the user wants to train a WAN or Z-Image LoRA; covers local + RunPod setup, dataset prep, key params, and using the result in a ComfyUI workflow.★ 759 GitHub starsSkillAnime/illustration text-to-imageANIMA 1.0 (Anima Base Ultra) Text-to-Image Workflowsartokun/comfyui-mcp · by artokunAnime/illustration text-to-image (ANIMA 1.0, ~2B Cosmos DiT). Use for anime, manga, illustrated characters; accepts Danbooru tags + natural language; runs/trains on <6GB VRAM; includes anime inpainting via Anima-LLLite ControlNet★ 759 GitHub starsSkillAuthoring & Publishing ComfyUI Custom Nodesartokun/comfyui-mcp · by artokunAuthoring & publishing ComfyUI custom nodes to the Comfy Registry, covering node structure, pyproject.toml spec, comfy-cli publishing, and CI★ 759 GitHub starsSkillTrain a custom anime LoRA on the ANIMA base modelCitron Anima LoRA Trainerartokun/comfyui-mcp · by artokunTrain a custom anime LoRA on the ANIMA base model with Citron's local Gradio trainer (kohya sd-scripts), <6GB VRAM, character/style LoRAs; covers setup, dataset prep, training params, and using the result in the anima-base workflow★ 759 GitHub starsSkillDiagnose and fix video/image color OBJECTIVELYColor Correction (measure, don't eyeball)artokun/comfyui-mcp · by artokunDiagnose and fix video/image color OBJECTIVELY with the get_image (action:"analyze_color") tool (scopes/stats such as black/white points, contrast, saturation, clipping, cast) instead of eyeballing a contact sheet. Covers the "washed out" signature, why reference color-match (mkl/ColorMatch/ColorMatchAdobe) CAN'T add contrast a flat source lacks, the levels/contrast-stretch fix (core AdjustContrast / CurveEditor), the measure→fix→re-measure loop, the side-by-side sandbox pattern, and where to place the fix in a render graph (after decode, before save). Use when a render looks washed out / flat / dull / over-saturated / color-cast, or when deciding between a color-match and a contrast/levels fix.★ 759 GitHub starsMCPDiagnoses ComfyUI workflow failures by analyzing logsComfy debuggerartokun/comfyui-mcp · by artokunDiagnoses ComfyUI workflow failures by analyzing logs, history, and node definitions★ 759 GitHub stars