Skip to main content
Glama
civitai

Civitai MCP Server

Official
by civitai

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoHTTP listen port (http transport only). Default: 31003100
MCP_TRANSPORTNoTransport mode: 'http' (Streamable HTTP) or 'stdio'. Default: httphttp
OAUTH_ENABLEDNoSet to 'true' to enable OAuth one-click connect. Default: falsefalse
CIVITAI_API_KEYNoBearer token for authenticated calls. Optional for browse tools; required for user-action tools.
CIVITAI_API_URLNoBase URL for all API calls (REST + tRPC). Default: https://civitai.comhttps://civitai.com
CIVITAI_USER_IDNoOptional: skip the JWT round-trip for self-id resolution.
CIVITAI_WEB_URLNoPublic website base for user-facing links. Default: https://civitai.comhttps://civitai.com
PUBLIC_BASE_URLNoOptional canonical public base URL (e.g. https://mcp.civitai.com).
MCP_ALLOWED_HOSTSNoCSV of Host values allowed by DNS-rebinding protection.
CIVITAI_UPLOAD_MAX_BYTESNoMax bytes accepted for image upload (10 MB default). Default: 1048576010485760
CIVITAI_UPLOAD_ALLOWED_HOSTSNoCSV 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

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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