Civitai MCP Server
Officialby civitai
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PORT | No | HTTP listen port (http transport only). Default: 3100 | 3100 |
| MCP_TRANSPORT | No | Transport mode: 'http' (Streamable HTTP) or 'stdio'. Default: http | http |
| OAUTH_ENABLED | No | Set to 'true' to enable OAuth one-click connect. Default: false | false |
| CIVITAI_API_KEY | No | Bearer token for authenticated calls. Optional for browse tools; required for user-action tools. | |
| CIVITAI_API_URL | No | Base URL for all API calls (REST + tRPC). Default: https://civitai.com | https://civitai.com |
| CIVITAI_USER_ID | No | Optional: skip the JWT round-trip for self-id resolution. | |
| CIVITAI_WEB_URL | No | Public website base for user-facing links. Default: https://civitai.com | https://civitai.com |
| PUBLIC_BASE_URL | No | Optional canonical public base URL (e.g. https://mcp.civitai.com). | |
| MCP_ALLOWED_HOSTS | No | CSV of Host values allowed by DNS-rebinding protection. | |
| CIVITAI_UPLOAD_MAX_BYTES | No | Max bytes accepted for image upload (10 MB default). Default: 10485760 | 10485760 |
| CIVITAI_UPLOAD_ALLOWED_HOSTS | No | CSV allowlist of hostnames permitted for URL-based image uploads. |
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/civitai/civitai-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server