scuffed-painter
Scuffed Painter
Un servidor MCP (Model Context Protocol) que renderiza comandos de dibujo en imágenes rasterizadas usando Pillow. Expone dos herramientas:
draw_image— renderiza los comandos y devuelve el resultado como una imagen PNG en línea.draw_image_to_file— renderiza los comandos y guarda el resultado en un archivo.
Se admiten cinco formas, cada una de ellas un objeto JSON discriminado por su campo "shape":
shape | parámetros |
|
|
|
|
|
|
|
|
|
|
Los comandos se ejecutan en el orden de la lista sobre un lienzo blanco de tamaño fijo; los comandos posteriores pintan sobre los anteriores. Los colores son nombres de color CSS o códigos hexadecimales.
Instalación
pip install .Esto proporciona el script de consola scuffed-painter, que inicia el servidor MCP a través de stdio (el valor predeterminado). python -m scuffed_painter es una alternativa equivalente. El mismo comando también puede servir el servidor a través de HTTP (transporte MCP Streamable HTTP):
scuffed-painter # stdio transport (default)
scuffed-painter --transport http # HTTP on 127.0.0.1:8000
scuffed-painter --transport http --host H --port P--host y --port solo se aplican al transporte HTTP; los valores predeterminados son 127.0.0.1 y 8000. Puedes habilitar CORS con --enable-cors si es necesario.
Related MCP server: openai-imagegen-mcp
Configuración del host MCP
stdio
Añade el servidor a la configuración de servidores stdio de tu host MCP:
{
"mcpServers": {
"scuffed-painter": {
"command": "scuffed-painter"
}
}
}Nota: en un host con un PATH restringido o cuando se ejecute dentro de un virtualenv, usa la ruta absoluta al script scuffed-painter instalado en su lugar (por ejemplo, la que indica which scuffed-painter).
Streamable HTTP
Inicia el servidor tú mismo y luego apunta tu host MCP al endpoint (la ruta es /mcp):
scuffed-painter --transport http --host 127.0.0.1 --port 8000{
"mcpServers": {
"scuffed-painter": {
"type": "streamable-http",
"url": "http://127.0.0.1:8000/mcp"
}
}
}(Ajusta los nombres de las claves para que coincidan con el formato de configuración de tu host MCP).
Nota: cuando se usa draw_image_to_file, output_path se refiere a la máquina en la que se ejecuta el servidor. A través de stdio, esa máquina es el mismo host que el cliente MCP; cuando se accede al servidor a través de HTTP, es el host del servidor en su lugar.
Ejemplo de llamada a la herramienta
{
"width": 200,
"height": 200,
"commands": [
{"shape": "circle", "center": [100, 80], "radius": 50, "fill": "gold", "outline": "orange", "width": 3},
{"shape": "triangle", "points": [[50, 170], [150, 170], [100, 70]], "fill": "darkgreen"},
{"shape": "line", "start": [20, 185], "end": [180, 185], "color": "black", "width": 2}
]
}Desarrollo
Estructura del repositorio:
scuffed_painter/ the package
server.py server, tools, command models, rendering
__init__.py re-exports mcp, defines __version__
__main__.py python -m scuffed_painter support
py.typed typing marker
tests/ pytest suite (in-process fastmcp.Client)Preparación y ejecución de las pruebas:
pip install -e ".[dev]"
python -m pytestMaintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables creation, management, and export of Excalidraw drawings through natural language. Supports CRUD operations on drawings and export to SVG, PNG, and JSON formats with file-based storage.81,917The Unlicense
- FlicenseNot gradedqualityDmaintenanceEnables image generation and editing via OpenAI's gpt-image-1 model, with options for saving, format control, and transparency.
- FlicenseNot gradedqualityDmaintenanceEnables to create, compose, and export SVG documents programmatically using the svgwrite library through tool calls. Supports shapes, groups, gradients, and pattern generators.
- FlicenseNot gradedqualityBmaintenanceEnables image generation and editing via third-party relay services. Returns local file paths and Markdown display hints.
Related MCP Connectors
Generate images, GIFs, and PDFs from HTML, URLs, or templates — from your AI agent.
Create diagrams in chat, rendered as live interactive draw.io diagrams. 10,000+ searchable shapes.
Generate logos, social posts, app screenshots, comic panels & visual-novel assets from prompts.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/viktor-haag/scuffed-painter'
If you have feedback or need assistance with the MCP directory API, please join our Discord server