civitai-mcp-ultimate
An MCP server for Civitai: model and LoRA search, images with prompts, download commands, trend analysis, bilingual output
Medium risk
We rate an entry medium when the tool runs code, makes network calls or reads project files. Check what exactly it does before installing.
Why this level
- Reaches out to the Civitai and Meilisearch APIs over the network
- Downloads previews into a local on-disk cache
Install
In your terminal, with SkillFoxx CLI
npx skillfoxx add mcp/civitai-mcp-ultimateDetects the agents on your machine, checks the risk and pins the version.
Other ways to install
Run in a terminal
claude mcp add --transport stdio civitai -- uvx civitai-mcp-ultimateOr add to the file .mcp.json, in the project
{
"mcpServers": {
"civitai": {
"command": "uvx",
"args": [
"civitai-mcp-ultimate"
]
}
}
}If the file already exists, add the server inside the mcpServers key.
Keys and settings
CIVITAI_API_KEYsecret, optional
Replace the values in angle brackets with your own. Keys never go into install links and are not stored by us.
The button opens the agent and offers to add the server. If nothing happens, copy the config below.
Add to the file ~/.cursor/mcp.json, for all projects
{
"mcpServers": {
"civitai": {
"command": "uvx",
"args": [
"civitai-mcp-ultimate"
]
}
}
}If the file already exists, add the server inside the mcpServers key. For a single project, put the same block into .cursor/mcp.json.
Keys and settings
CIVITAI_API_KEYsecret, optional
Replace the values in angle brackets with your own. Keys never go into install links and are not stored by us.
The button opens the agent and offers to add the server. If nothing happens, copy the config below.
Run in a terminal
code --add-mcp '{"name":"civitai","type":"stdio","command":"uvx","args":["civitai-mcp-ultimate"]}'Or add to the file .vscode/mcp.json, in the project
{
"servers": {
"civitai": {
"type": "stdio",
"command": "uvx",
"args": [
"civitai-mcp-ultimate"
]
}
}
}If the file already exists, add the server inside the servers key.
Keys and settings
CIVITAI_API_KEYsecret, optional
Replace the values in angle brackets with your own. Keys never go into install links and are not stored by us.
Run in a terminal
codex mcp add civitai -- uvx civitai-mcp-ultimateOr add to the file ~/.codex/config.toml, for all projects
[mcp_servers.civitai]
command = "uvx"
args = ["civitai-mcp-ultimate"]If the file already exists, append the block to the end.
Keys and settings
CIVITAI_API_KEYsecret, optional
Replace the values in angle brackets with your own. Keys never go into install links and are not stored by us.
Run in a terminal
gemini mcp add -s user civitai uvx civitai-mcp-ultimateOr add to the file ~/.gemini/settings.json, for all projects
{
"mcpServers": {
"civitai": {
"command": "uvx",
"args": [
"civitai-mcp-ultimate"
]
}
}
}If the file already exists, add the server inside the mcpServers key.
Keys and settings
CIVITAI_API_KEYsecret, optional
Replace the values in angle brackets with your own. Keys never go into install links and are not stored by us.
Add to the file ~/.config/devin/mcp_config.json, for all projects
{
"mcpServers": {
"civitai": {
"command": "uvx",
"args": [
"civitai-mcp-ultimate"
]
}
}
}If the file already exists, add the server inside the mcpServers key. Legacy Cascade keeps the MCP config in ~/.codeium/windsurf/mcp_config.json.
Keys and settings
CIVITAI_API_KEYsecret, optional
Replace the values in angle brackets with your own. Keys never go into install links and are not stored by us.
Formerly Windsurf.
Add to the file cline_mcp_settings.json, for all projects
{
"mcpServers": {
"civitai": {
"command": "uvx",
"args": [
"civitai-mcp-ultimate"
]
}
}
}If the file already exists, add the server inside the mcpServers key. Open the settings file in Cline: MCP Servers tab, Configure MCP Servers.
Keys and settings
CIVITAI_API_KEYsecret, optional
Replace the values in angle brackets with your own. Keys never go into install links and are not stored by us.
Add to the file .roo/mcp.json, in the project
{
"mcpServers": {
"civitai": {
"command": "uvx",
"args": [
"civitai-mcp-ultimate"
]
}
}
}If the file already exists, add the server inside the mcpServers key.
Keys and settings
CIVITAI_API_KEYsecret, optional
Replace the values in angle brackets with your own. Keys never go into install links and are not stored by us.
A fork of Roo Code, same .roo folders.
Add to the file opencode.json, in the project
{
"mcp": {
"civitai": {
"type": "local",
"command": [
"uvx",
"civitai-mcp-ultimate"
]
}
}
}If the file already exists, add the server inside the mcp key.
Keys and settings
CIVITAI_API_KEYsecret, optional
Replace the values in angle brackets with your own. Keys never go into install links and are not stored by us.
Add to the file ~/.config/zed/settings.json, for all projects
{
"context_servers": {
"civitai": {
"command": "uvx",
"args": [
"civitai-mcp-ultimate"
]
}
}
}If the file already exists, add the server inside the context_servers key.
Keys and settings
CIVITAI_API_KEYsecret, optional
Replace the values in angle brackets with your own. Keys never go into install links and are not stored by us.
Add to the file .codeassistant/mcp.json, in the project
{
"mcpServers": {
"civitai": {
"command": "uvx",
"args": [
"civitai-mcp-ultimate"
]
}
}
}If the file already exists, add the server inside the mcpServers key.
Keys and settings
CIVITAI_API_KEYsecret, optional
Replace the values in angle brackets with your own. Keys never go into install links and are not stored by us.
Connect the Civitai MCP server. In Claude Code: claude mcp add civitai -e CIVITAI_API_KEY=your_key -- uvx civitai-mcp-ultimate. The key is optional, but without it NSFW is unavailable and limits are lower.
Other ways from the author
pip install civitai-mcp-ultimatePyPI package, launched with the civitai-mcp-ultimate command.
This is third-party code. Review the repository files before installing.
What it does
The server opens the public Civitai REST API to an agent through 14 tools. With them you can search checkpoints, LoRAs and ControlNets with filters by base model, type, tag and creator, browse top images with full generation parameters, find a model by file hash, and read a version's trigger words and download links. Text search goes through Meilisearch because Civitai's own search has been broken since mid 2025. It builds ready download commands for curl and PowerShell with ComfyUI path mapping, caches previews, and outputs in English or Russian. It is written in Python with FastMCP and runs over stdio.
Who it is for. For designers and content creators who gather Stable Diffusion, Flux and similar models and prompts through their agent.
Good fit when
- You need to find LoRAs or checkpoints for a base model and sort them by popularity
- You need working prompts and generation parameters from top images
- You need a download command for a model with auth and ComfyUI layout
Not a fit when
- You need image generation rather than search and metadata from Civitai
- Civitai is not reachable from your network and a VPN is not an option
Example request
Find the top Flux LoRAs this month and show the best prompts for eachLimitations
The server sits on top of Civitai, so it depends on civitai.com being reachable, which is worth checking separately from Russia without a VPN. The CIVITAI_API_KEY is optional, but without it NSFW content is closed and rate limits are lower. Text search runs through Meilisearch because Civitai's REST search is broken. The server does not generate images itself, it only searches models and metadata and prepares download commands.
How to disable. Remove the civitai server from your MCP client config. Uninstall the package with pip uninstall civitai-mcp-ultimate if it was installed, and the preview cache lives in ~/.civitai-mcp-cache/.
MCP
- Transport
- stdio
- Authentication
- API key
| Environment variables | |
|---|---|
| CIVITAI_API_KEY secret | Civitai key for NSFW access and higher rate limits, taken from account settings. |
| CIVITAI_MCP_LANG | Output language, en or ru, default en. |
| COMFYUI_MODELS_PATH | ComfyUI models path used in download commands. |
| MEILISEARCH_KEY | Read-only Meilisearch key, a public default is built in. |
Security check
- Reaches out to the Civitai and Meilisearch APIs over the network
- Downloads previews into a local on-disk cache
README in short
The README presents the server as full coverage of the public Civitai REST API v1 across 14 tools, grouped into models, images, creators and tags, and downloads. Parameters are verified against the live API, and text search is moved to Meilisearch because the native search is broken. It installs from PyPI via pip or runs through uvx, with configs for Claude Code, Claude Desktop and Smithery. Settings come from environment variables: the Civitai key, output language, ComfyUI path and a Meilisearch key. It has an auto-cleaning preview cache, an async client and retries on rate limits. MIT licensed.
FAQ
Do I need a Civitai key?
It is optional. Without a key search, images and metadata work, but NSFW content is closed and rate limits are lower. The key comes from your Civitai account settings.
Why does search go through Meilisearch?
Civitai's REST text search has been broken since mid 2025, so the server uses Meilisearch with a public read-only key that you can override with your own.
Related
Skills and CLI from HeyGen: the agent writes HTML compositions and renders them into MP4 videos, captions, motion graphics and decks
Blender MCP
MCP for Blender
An MCP server and Blender addon: the agent creates and edits objects, materials and scenes, pulls assets and runs Python in Blender
Official Remotion skills for making videos in React: compositions, animation, captions, maps and rendering
Agentic video studio for Claude Code, Cursor and Codex: script, voiceover, images, stock footage, music, subtitles and render