Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Civitai MCP ServerFind the most downloaded LoRA models for realistic portraits"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Civitai MCP Server (Python FastMCP)
A Python FastMCP implementation of an MCP server for interacting with the Civitai API. Browse AI models, images, creators, and more.
Features
Model Search: Search AI models with various filters
Model Details: Get detailed information about specific models
Image Browsing: Browse AI-generated images
Creator Search: Search for model creators
Tag Search: Search models by tags
Popular/Latest/Top Rated: Get ranking information
FastMCP Resources: Structured resource definitions for models, versions, images, creators, and tags
Installation
Install dependencies:
Set up environment variables (optional):
Usage
Standalone Execution
Docker Execution
Option 1: Use Pre-built Image from Docker Hub
Option 2: Build Locally
Build the Docker image:
Run the container:
Access the MCP server at
http://localhost:8000/mcpStop the container:
Deploy your MCP server to Amazon Bedrock AgentCore
Deploy using Amazon Bedrock AgentCore starter toolkit
MCP Configuration
For Standalone Python Execution
Add the following to your Kiro configuration file (.kiro/settings/mcp.json):
For Docker Execution
Option 1: HTTP Transport (推奨)
Add the following to your Kiro configuration file (.kiro/settings/mcp.json):
Option 2: Docker Command (Pre-built Image)
Option 3: Docker Command (Local Build)
Option 4: curl Command
Available Tools
Model-related
search_models: Search models with query, type, sort filtersget_model: Get detailed model information by IDget_model_version: Get model version detailsget_model_version_by_hash: Get model version by file hashget_popular_models: Get popular modelsget_latest_models: Get newest modelsget_top_rated_models: Get highest rated modelssearch_models_by_tag: Search models by tagsearch_models_by_creator: Search models by creatorget_models_by_type: Filter models by typeget_download_url: Get download URL
Other
get_images: Get imagesget_creators: Search creatorsget_tags: Search tags
FastMCP Resources
This server also provides structured resource definitions that can be accessed via FastMCP resource URIs:
Model Resources
civitai://models/{limit}- List models with filtering options (limit parameter required)civitai://models/{model_id}- Get specific model details
Model Version Resources
civitai://model-versions/{version_id}- Get model version detailscivitai://model-versions/by-hash/{hash}- Get model version by file hash
Image Resources
civitai://images/{limit}- List images with filtering options (limit parameter required)
Creator Resources
civitai://creators/{limit}- List creators (limit parameter required)
Tag Resources
civitai://tags/{limit}- List tags (limit parameter required)
These resources provide structured data models that can be used programmatically by MCP clients.
API Key
A Civitai API key is not required but recommended for:
Access to private models
Higher rate limits
Some advanced features
You can get an API key from your Civitai account settings.
Examples
Notes
API responses can be large
Use NSFW filtering options appropriately
Store API keys securely using environment variables