codetoimage MCP
An official MCP server that allows AI agents to render HTML and CSS into pixel-perfect PNG, JPG, or WebP images. It provides two tools: one for returning inline base64 images for immediate display, and another for generating temporary hosted URLs suitable for external integrations like social media or email.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Generate dynamic Open Graph and Twitter card images
- Create code screenshots with syntax highlighting
- Render social media cards for various platforms
- Produce personalized hero images for email campaigns
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
@codetoimage/mcp-server 0.2.0
{
"version": "0.2.0",
"transport": "stdio",
"identifier": "@codetoimage/mcp-server",
"registryType": "npm",
"environmentVariables": [
{
"name": "CODETOIMAGE_API_KEY",
"format": "string",
"isRequired": true,
"description": "API key from https://codetoimage.app/dashboard/keys (starts with cti_live_…). Sandbox tier is free."
},
{
"name": "CODETOIMAGE_API_URL",
"format": "string",
"default": "https://api.codetoimage.app",
"description": "Override the API base URL. Defaults to https://api.codetoimage.app."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"codetoimage-mcp": {
"command": "npx",
"args": [
"-y",
"@codetoimage/mcp-server@0.2.0"
],
"env": {
"CODETOIMAGE_API_KEY": "<YOUR_CODETOIMAGE_API_KEY>",
"CODETOIMAGE_API_URL": "<YOUR_CODETOIMAGE_API_URL>"
}
}
}
}Cline
{
"mcpServers": {
"codetoimage-mcp": {
"command": "npx",
"args": [
"-y",
"@codetoimage/mcp-server@0.2.0"
],
"env": {
"CODETOIMAGE_API_KEY": "<YOUR_CODETOIMAGE_API_KEY>",
"CODETOIMAGE_API_URL": "<YOUR_CODETOIMAGE_API_URL>"
}
}
}
}VS Code
{
"servers": {
"codetoimage-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@codetoimage/mcp-server@0.2.0"
],
"env": {
"CODETOIMAGE_API_KEY": "<YOUR_CODETOIMAGE_API_KEY>",
"CODETOIMAGE_API_URL": "<YOUR_CODETOIMAGE_API_URL>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"codetoimage-mcp": {
"command": "npx",
"args": [
"-y",
"@codetoimage/mcp-server@0.2.0"
],
"env": {
"CODETOIMAGE_API_KEY": "<YOUR_CODETOIMAGE_API_KEY>",
"CODETOIMAGE_API_URL": "<YOUR_CODETOIMAGE_API_URL>"
}
}
}
}Let your agent find its tools
Find servers like codetoimage MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.