codictor-mcp
v1.0.0
Published
Screenshot to code MCP that uses your project's design system
Maintainers
Readme
Codictor MCP
Convert screenshots to React + Tailwind code that uses YOUR project's design system.
Features
- Auto-reads tailwind.config.js - Uses your exact colors, fonts, spacing
- Detects existing components - Reuses your Button, Card, etc.
- True responsive code - Mobile-first with proper breakpoints
- Claude Vision powered - High-quality code generation
Installation
npm install -g codictor-mcpOr install locally:
npm install
npm run buildSetup
Add to your IDE's MCP config:
Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"codictor": {
"command": "codictor-mcp",
"env": {
"ANTHROPIC_API_KEY": "sk-ant-your-key-here"
}
}
}
}Claude Code
claude mcp add codictor codictor-mcp -e ANTHROPIC_API_KEY=sk-ant-your-key-hereUsage
In Cursor or Claude Code:
Convert this screenshot to code: /path/to/screenshot.pngOr:
Analyze my design systemTools
screenshot_to_code
Converts a screenshot to React + Tailwind code.
image_path(required): Path to screenshotproject_path(optional): Project root directory
analyze_design_system
Shows what design tokens and components will be used.
project_path(optional): Project root directory
Environment Variables
The server supports these environment variables:
ANTHROPIC_API_KEY- Your Anthropic API keyAI_INTEGRATIONS_ANTHROPIC_API_KEY- Replit AI Integrations key (preferred on Replit)AI_INTEGRATIONS_ANTHROPIC_BASE_URL- Replit AI Integrations base URL
How It Works
- Reads your
tailwind.config.jsto understand your design tokens - Scans common component directories to find existing components
- Sends the screenshot to Claude Vision with your design context
- Returns production-ready React + Tailwind code using YOUR design system
License
MIT
