Skip to content

Configuration ​

Slidev MCP is configured via environment variables. Set them in your .env file or pass them directly to Docker Compose.

Environment Variables ​

Server ​

VariableDefaultDescription
SERVER_TRANSPORTstdioTransport mode: stdio or streamable-http
SERVER_HOST0.0.0.0Bind host (streamable-http mode only)
SERVER_PORT8000Bind port (streamable-http mode only)

Domain ​

VariableDefaultDescription
DOMAINlocalhostPublic domain for the MCP API
SLIDES_DOMAIN(falls back to DOMAIN)Separate domain for serving slides. Recommended for production to prevent same-origin XSS from user-generated slide content.

Database ​

VariableDefaultDescription
DATABASE_URLpostgresql+asyncpg://slidev:slidev@localhost:5432/slidevPostgreSQL connection string
POSTGRES_PASSWORD—PostgreSQL password (required for production)

Builder ​

VariableDefaultDescription
BUILDER_HOSTbuilderBuilder HTTP server hostname
BUILDER_PORT3000Builder HTTP server port
BUILD_TIMEOUT120Maximum seconds per build
MAX_CONCURRENT_BUILDS3Maximum simultaneous builds
SLIDES_DIR/data/slidesDirectory for built slide files

Lifecycle ​

VariableDefaultDescription
SLIDE_TTL_DAYS30Days before sealed slides are garbage-collected
GC_INTERVAL_HOURS6How often the garbage collector runs

Logging ​

VariableDefaultDescription
LOG_LEVELINFOPython log level (DEBUG, INFO, WARNING, ERROR)
LOG_FORMATjsonLog format: json or text

TLS (Production) ​

VariableDefaultDescription
ACME_EMAIL—Email for Let's Encrypt certificate registration

Operated by LatentSpace Labs GmbH · Built by Souverana, AI Consulting for teams shipping with LLMs · Legal Notice