Codetoimage MCP Server
Pixel-perfect HTML/CSS to PNG/JPG/WebP for AI agents — inline image or 24h hosted URL.
- Pricing
- Open source
- Runs
- Locally
- Version
- 0.2.0
- Listing updated
- 6 days ago
About Codetoimage MCP Server
Codetoimage MCP Server is an open-source MCP server. It runs locally on your machine and is started by your AI client.
Install
Run in a terminal
claude mcp add codetoimage-mcp-server --env CODETOIMAGE_API_KEY='<CODETOIMAGE_API_KEY>' -- npx -y @codetoimage/mcp-serverAdd to claude_desktop_config.json
{
"mcpServers": {
"codetoimage-mcp-server": {
"command": "npx",
"args": [
"-y",
"@codetoimage/mcp-server"
],
"env": {
"CODETOIMAGE_API_KEY": "<CODETOIMAGE_API_KEY>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"codetoimage-mcp-server": {
"command": "npx",
"args": [
"-y",
"@codetoimage/mcp-server"
],
"env": {
"CODETOIMAGE_API_KEY": "<CODETOIMAGE_API_KEY>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"codetoimage-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@codetoimage/mcp-server"
],
"env": {
"CODETOIMAGE_API_KEY": "<CODETOIMAGE_API_KEY>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"codetoimage-mcp-server": {
"command": "npx",
"args": [
"-y",
"@codetoimage/mcp-server"
],
"env": {
"CODETOIMAGE_API_KEY": "<CODETOIMAGE_API_KEY>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"codetoimage-mcp-server": {
"command": "npx",
"args": [
"-y",
"@codetoimage/mcp-server"
],
"env": {
"CODETOIMAGE_API_KEY": "<CODETOIMAGE_API_KEY>"
}
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
CODETOIMAGE_API_KEYAPI key from https://codetoimage.app/dashboard/keys (starts with cti_live_…). Sandbox tier is free.RequiredCODETOIMAGE_API_URLOverride the API base URL. Defaults to https://api.codetoimage.app.
Pricing
Open source
Prices change. Check codetoimage.app before you buy.
Codetoimage MCP Server FAQ
Is Codetoimage MCP Server free?
Yes. Codetoimage MCP Server is open source, so you can use and self-host it for free.
How do I add Codetoimage MCP Server to Claude Code?
Run this command in your terminal: claude mcp add codetoimage-mcp-server --env CODETOIMAGE_API_KEY='<CODETOIMAGE_API_KEY>' -- npx -y @codetoimage/mcp-server
Where this comes from
- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.