Penpot MCP Server
Supports workflow automation for Penpot design files through GitHub Actions and CI integration. Enables automated testing and validation of design components.
Connects to Penpot's API for design file access, component analysis, export automation, and design validation. Enables browsing projects, analyzing design components, exporting assets, and validating design system compliance.
Provides a Python SDK for custom integrations with Penpot designs, enabling programmatic access to design files and components for workflow automation.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Penpot MCP Server analyze the accessibility of my latest dashboard design"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Penpot MCP Server π¨π€
π What is Penpot MCP?
Penpot MCP is a revolutionary Model Context Protocol (MCP) server that bridges the gap between AI language models and Penpot, the open-source design and prototyping platform. This integration enables AI assistants like Claude (in both Claude Desktop and Cursor IDE) to understand, analyze, and interact with your design files programmatically.
π― Key Benefits
π€ AI-Native Design Analysis: Let Claude AI analyze your UI/UX designs, provide feedback, and suggest improvements
β‘ Automated Design Workflows: Streamline repetitive design tasks with AI-powered automation
π Intelligent Design Search: Find design components and patterns across your projects using natural language
π Design System Management: Automatically document and maintain design systems with AI assistance
π¨ Cross-Platform Integration: Works with any MCP-compatible AI assistant (Claude Desktop, Cursor IDE, etc.)
Related MCP server: AI-Canvas MCP Server
π₯ Demo Video
Check out our demo video to see Penpot MCP in action:

β¨ Features
π Core Capabilities
MCP Protocol Implementation: Full compliance with Model Context Protocol standards
Real-time Design Access: Direct integration with Penpot's API for live design data
Component Analysis: AI-powered analysis of design components and layouts
Export Automation: Programmatic export of design assets in multiple formats
Design Validation: Automated design system compliance checking
π οΈ Developer Tools
Command-line Utilities: Powerful CLI tools for design file analysis and validation
Python SDK: Comprehensive Python library for custom integrations
REST API: HTTP endpoints for web application integration
Extensible Architecture: Plugin system for custom AI workflows
π¨ AI Integration Features
Claude Desktop & Cursor Integration: Native support for Claude AI assistant in both Claude Desktop and Cursor IDE
Design Context Sharing: Provide design context to AI models for better responses
Visual Component Recognition: AI can "see" and understand design components
Natural Language Queries: Ask questions about your designs in plain English
IDE Integration: Seamless integration with modern development environments
π‘ Use Cases
For Designers
Design Review Automation: Get instant AI feedback on accessibility, usability, and design principles
Component Documentation: Automatically generate documentation for design systems
Design Consistency Checks: Ensure brand guidelines compliance across projects
Asset Organization: AI-powered tagging and categorization of design components
For Developers
Design-to-Code Workflows: Bridge the gap between design and development with AI assistance
API Integration: Programmatic access to design data for custom tools and workflows
Automated Testing: Generate visual regression tests from design specifications
Design System Sync: Keep design tokens and code components in sync
For Product Teams
Design Analytics: Track design system adoption and component usage
Collaboration Enhancement: AI-powered design reviews and feedback collection
Workflow Optimization: Automate repetitive design operations and approvals
Cross-tool Integration: Connect Penpot with other tools in your design workflow
π Quick Start
Prerequisites
Python 3.12+ (Latest Python recommended for optimal performance)
Penpot Account (Sign up free)
Claude Desktop or Cursor IDE (Optional, for AI integration)
Installation
Prerequisites
Python 3.12+
Penpot account credentials
Installation
Option 1: Install from PyPI
pip install penpot-mcpOption 2: Using uv (recommended for modern Python development)
# Install directly with uvx (when published to PyPI)
uvx penpot-mcp
# For local development, use uvx with local path
uvx --from . penpot-mcp
# Or install in a project with uv
uv add penpot-mcpOption 3: Install from source
# Clone the repository
git clone https://github.com/montevive/penpot-mcp.git
cd penpot-mcp
# Using uv (recommended)
uv sync
uv run penpot-mcp
# Or using traditional pip
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -e .Configuration
Create a .env file based on env.example with your Penpot credentials:
PENPOT_API_URL=https://design.penpot.app/api
PENPOT_USERNAME=your_penpot_username
PENPOT_PASSWORD=your_penpot_password
PORT=5000
DEBUG=trueβ οΈ CloudFlare Protection Notice: The Penpot cloud site (penpot.app) uses CloudFlare protection that may occasionally block API requests. If you encounter authentication errors or blocked requests:
Open your web browser and navigate to https://design.penpot.app
Log in to your Penpot account
Complete any CloudFlare human verification challenges if prompted
Once verified, the API requests should work normally for a period of time
Usage
Running the MCP Server
# Using uvx (when published to PyPI)
uvx penpot-mcp
# Using uvx for local development
uvx --from . penpot-mcp
# Using uv in a project (recommended for local development)
uv run penpot-mcp
# Using the entry point (if installed)
penpot-mcp
# Or using the module directly
python -m penpot_mcp.server.mcp_serverDebugging the MCP Server
To debug the MCP server, you can:
Enable debug mode in your
.envfile by settingDEBUG=trueUse the Penpot API CLI for testing API operations:
# Test API connection with debug output
python -m penpot_mcp.api.penpot_api --debug list-projects
# Get details for a specific project
python -m penpot_mcp.api.penpot_api --debug get-project --id YOUR_PROJECT_ID
# List files in a project
python -m penpot_mcp.api.penpot_api --debug list-files --project-id YOUR_PROJECT_ID
# Get file details
python -m penpot_mcp.api.penpot_api --debug get-file --file-id YOUR_FILE_IDCommand-line Tools
The package includes utility command-line tools:
# Generate a tree visualization of a Penpot file
penpot-tree path/to/penpot_file.json
# Validate a Penpot file against the schema
penpot-validate path/to/penpot_file.jsonMCP Monitoring & Testing
MCP CLI Monitor
# Start your MCP server in one terminal
python -m penpot_mcp.server.mcp_server
# In another terminal, use mcp-cli to monitor and interact with your server
python -m mcp.cli monitor python -m penpot_mcp.server.mcp_server
# Or connect to an already running server on a specific port
python -m mcp.cli monitor --port 5000MCP Inspector
# Start your MCP server in one terminal
python -m penpot_mcp.server.mcp_server
# In another terminal, run the MCP Inspector (requires Node.js)
npx @modelcontextprotocol/inspectorUsing the Client
# Run the example client
penpot-clientMCP Resources & Tools
Resources
server://info- Server status and informationpenpot://schema- Penpot API schema as JSONpenpot://tree-schema- Penpot object tree schema as JSONrendered-component://{component_id}- Rendered component imagespenpot://cached-files- List of cached Penpot files
Tools
list_projects- List all Penpot projectsget_project_files- Get files for a specific projectget_file- Retrieve a Penpot file by its ID and cache itexport_object- Export a Penpot object as an imageget_object_tree- Get the object tree structure for a Penpot objectsearch_object- Search for objects within a Penpot file by name
AI Integration
The Penpot MCP server can be integrated with AI assistants using the Model Context Protocol. It supports both Claude Desktop and Cursor IDE for seamless design workflow automation.
Claude Desktop Integration
For detailed Claude Desktop setup instructions, see CLAUDE_INTEGRATION.md.
Add the following configuration to your Claude Desktop config file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%\Claude\claude_desktop_config.json on Windows):
{
"mcpServers": {
"penpot": {
"command": "uvx",
"args": ["penpot-mcp"],
"env": {
"PENPOT_API_URL": "https://design.penpot.app/api",
"PENPOT_USERNAME": "your_penpot_username",
"PENPOT_PASSWORD": "your_penpot_password"
}
}
}
}Cursor IDE Integration
Cursor IDE supports MCP servers through its AI integration features. To configure Penpot MCP with Cursor:
Install the MCP server (if not already installed):
pip install penpot-mcpConfigure Cursor settings by adding the MCP server to your Cursor configuration. Open Cursor settings and add:
{ "mcpServers": { "penpot": { "command": "uvx", "args": ["penpot-mcp"], "env": { "PENPOT_API_URL": "https://design.penpot.app/api", "PENPOT_USERNAME": "your_penpot_username", "PENPOT_PASSWORD": "your_penpot_password" } } } }Alternative: Use environment variables by creating a
.envfile in your project root:PENPOT_API_URL=https://design.penpot.app/api PENPOT_USERNAME=your_penpot_username PENPOT_PASSWORD=your_penpot_passwordStart the MCP server in your project:
# In your project directory penpot-mcpUse in Cursor: Once configured, you can interact with your Penpot designs directly in Cursor by asking questions like:
"Show me all projects in my Penpot account"
"Analyze the design components in project X"
"Export the main button component as an image"
"What design patterns are used in this file?"
Key Integration Features
Both Claude Desktop and Cursor integration provide:
Direct access to Penpot projects and files
Visual component analysis with AI-powered insights
Design export capabilities for assets and components
Natural language queries about your design files
Real-time design feedback and suggestions
Design system documentation generation
Package Structure
penpot_mcp/
βββ api/ # Penpot API client
βββ server/ # MCP server implementation
β βββ mcp_server.py # Main MCP server
β βββ client.py # Client implementation
βββ tools/ # Utility tools
β βββ cli/ # Command-line interfaces
β βββ penpot_tree.py # Penpot object tree visualization
βββ resources/ # Resource files and schemas
βββ utils/ # Helper utilitiesDevelopment
Testing
The project uses pytest for testing:
# Using uv (recommended)
uv sync --extra dev
uv run pytest
# Run with coverage
uv run pytest --cov=penpot_mcp tests/
# Using traditional pip
pip install -e ".[dev]"
pytest
pytest --cov=penpot_mcp tests/Linting
# Using uv (recommended)
uv sync --extra dev
# Set up pre-commit hooks
uv run pre-commit install
# Run linting
uv run python lint.py
# Auto-fix linting issues
uv run python lint.py --autofix
# Using traditional pip
pip install -r requirements-dev.txt
pre-commit install
./lint.py
./lint.py --autofixContributing
Contributions are welcome! Please feel free to submit a Pull Request.
Fork the repository
Create your feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add some amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
Please make sure your code follows the project's coding standards and includes appropriate tests.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
Penpot - The open-source design and prototyping platform
Model Context Protocol - The standardized protocol for AI model context
Available Tools
10 toolsexport_objectC
Export a Penpot design object as an image.
Args:
file_id: The ID of the Penpot file
page_id: The ID of the page containing the object
object_id: The ID of the object to export
export_type: Image format (png, svg, etc.)
scale: Scale factor for the exported image
Inputs: file_id (required), page_id (required), object_id (required), export_type, +1 more.
get_cached_filesB
List all files currently stored in the cache.
Inputs: no named parameters.
get_fileA
Retrieve a Penpot file by its ID and cache it. Don't use this tool for code generation, use 'get_object_tree' instead.
Args:
file_id: The ID of the Penpot file
Inputs: file_id (required).
get_object_treeB
Get the object tree structure for a Penpot object ("tree" field) with rendered screenshot image of the object ("image.mcp_uri" field). Args: file_id: The ID of the Penpot file object_id: The ID of the object to retrieve fields: Specific fields to include in the tree (call "penpot_tree_schema" resource/tool for available fields) depth: How deep to traverse the object tree (-1 for full depth) format: Output format ('json' or 'yaml')
Inputs: file_id (required), object_id (required), fields (required), depth, +1 more.
get_project_filesC
Get all files contained within a specific Penpot project.
Args:
project_id: The ID of the Penpot project
Inputs: project_id (required).
get_rendered_componentC
Return a rendered component image by its ID.
Inputs: component_id (required).
list_projectsB
Retrieve a list of all available Penpot projects.
Inputs: no named parameters.
penpot_schemaB
Provide the Penpot API schema as JSON.
Inputs: no named parameters.
penpot_tree_schemaB
Provide the Penpot object tree schema as JSON.
Inputs: no named parameters.
search_objectB
Search for objects within a Penpot file by name.
Args:
file_id: The ID of the Penpot file to search in
query: Search string (supports regex patterns)
Inputs: file_id (required), query (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 10 tools
Most tools have distinct purposes, but 'get_file' and 'get_object_tree' could be confused as both retrieve file/object data, though their descriptions clarify different use cases (caching vs. tree structure with image). Other tools like export_object, list_projects, and search_object are clearly differentiated.
Tools follow a consistent verb_noun pattern (e.g., export_object, get_file, list_projects) with minor deviations: 'penpot_schema' and 'penpot_tree_schema' use noun-only names, breaking the pattern slightly but remaining readable and domain-specific.
With 10 tools, the count is well-scoped for a Penpot design server, covering key operations like listing projects, retrieving files, exporting objects, and searching, without being overwhelming or too sparse.
The toolset covers essential Penpot operations such as listing, retrieving, exporting, and searching, with minor gaps like updating or creating design objects (e.g., no create_file or update_object tools), but agents can likely work around this for basic workflows.
Maintenance
Related MCP Connectors
Draw architecture diagrams, UML, planning boards and clickable wireframes from your AI assistant.
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
AI-agent design tools: fonts, font recognition, palettes, color naming, contrast, code, SVG, CSS.
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analyβ¦
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to read and modify Figma designs programmatically, supporting design analysis, element creation, text replacement, annotations, auto-layout configuration, and prototype visualization through natural language commands.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to inspect, modify, export, and validate design documents with 47 tools covering design, code generation, branding, and print/mockup workflows.2MIT
- AlicenseCqualityDmaintenanceEnables AI assistants to create, modify, and manage Penpot designs programmatically, providing full manipulation capabilities for the open-source design tool.8166 npm20MIT
- AlicenseNot gradedqualityFmaintenanceEnables LLMs to query, transform, and create design elements in Penpot via the Model Context Protocol and Penpot's Plugin API.536Mozilla Public 2.0