Canvelete MCP Server
Enables programmatic design creation and manipulation on the Canvelete platform through AI assistants. Supports design management, canvas element manipulation, template application, asset management, and real-time synchronization with the design editor.
README
Canvelete MCP Server
Model Context Protocol (MCP) server for the Canvelete design platform. This server exposes Canvelete's design capabilities to AI assistants and other MCP-compatible clients, enabling programmatic design creation and manipulation.
Features
Resources (Read-Only Data Access)
- Designs: Access user designs, browse templates
- Canvas: View canvas state and elements
- Assets: Browse user's asset library and available fonts
- User: Access profile and preferences
Tools (Actions)
- Design Management: Create, update, delete, duplicate, and export designs
- Canvas Manipulation: Add, update, delete elements; resize canvas; clear canvas
- Templates: List, apply, and create templates
- Assets: List assets, search stock images
- AI Integration: Access Civi AI for design generation
Prompts (Guided Templates)
- Create social media posts
- Create presentation slides
- Add text elements
Installation
Method 1: Global Installation (Recommended)
This gives you the canvelete-mcp command globally.
npm install -g @canveletedotcom/mcp-server
# or
pnpm add -g @canveletedotcom/mcp-server
Method 2: Use via npx
Run without installing:
npx @canveletedotcom/mcp-server start
Configuration
Environment Variables
You need a Canvelete API key.
- Log in to your Canvelete account
- Go to Settings → API Keys
- Generate a new API key
Usage with Claude Desktop
-
Open your Claude Desktop config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
-
Add the Canvelete server configuration:
{
"mcpServers": {
"canvelete": {
"command": "canvelete-mcp",
"args": ["start"],
"env": {
"CANVELETE_API_KEY": "your_api_key_here"
}
}
}
}
Note: If you haven't installed it globally, you can use npx:
{
"mcpServers": {
"canvelete": {
"command": "npx",
"args": ["-y", "@canveletedotcom/mcp-server", "start"],
"env": {
"CANVELETE_API_KEY": "your_api_key_here"
}
}
}
}
- Restart Claude Desktop
Example Conversations
Once configured, you can ask Claude:
- "What designs do I have in Canvelete?"
- "Create a new 1080x1080 Instagram post design called 'Summer Sale'"
- "Add a text element to design {id} that says 'Hello World'"
- "Export design {id} as PNG"
- "List all my uploaded assets"
- "Apply template {template-id} to design {design-id}"
Available Resources
| URI | Description |
|---|---|
canvelete://designs/list |
List user's designs |
canvelete://designs/templates |
Browse templates |
canvelete://design/{id} |
Get specific design |
canvelete://canvas/{designId} |
Get canvas state |
canvelete://canvas/{designId}/elements |
Get canvas elements |
canvelete://assets/library |
User's assets |
canvelete://assets/fonts |
Available fonts |
canvelete://user/profile |
User profile |
canvelete://user/preferences |
User preferences |
Available Tools
Design Tools
list_designs- List all user's designsget_design- Get detailed design info including canvas datacreate_design- Create new designupdate_design- Update design propertiesdelete_design- Delete designduplicate_design- Fork/copy designexport_design- Export to PNG/JPG/PDF/SVG
Canvas Tools
add_element- Add shape, text, image, etc.update_element- Modify element propertiesdelete_element- Remove elementresize_canvas- Change dimensionsclear_canvas- Remove all elements
Template Tools
list_templates- Browse templatesapply_template- Apply to designcreate_template- Save as template
Asset Tools
list_assets- View asset librarysearch_stock_images- Search Pixabay
Element Types
Supported canvas element types:
- rectangle - Rectangular shapes
- circle - Circular/elliptical shapes
- text - Text elements with fonts
- image - Images from URLs or assets
- line - Straight lines
- polygon - Multi-sided shapes
- star - Star shapes
- svg - SVG graphics
- bezier - Curved paths
- container - Group elements
- table - Data tables
Development
Build
npm run build
Run in Development
npm run dev
Type Check
npm run type-check
Clean Build
npm run clean
npm run build
Troubleshooting
"Invalid API key"
- Generate a new API key in Canvelete Settings → API Keys
- Verify the key is set correctly in your MCP config
- Check key hasn't expired or been revoked
- Run the test script to verify:
npx tsx test-auth.ts your_api_key
"Permission denied"
- Ensure API key has appropriate scopes
- Verify you own the resource you're modifying
"Failed to connect to API"
- Check
CANVELETE_API_URLis correct (default: https://canvelete.com) - Verify network connectivity to the Canvelete API
- For local development, ensure the Canvelete app is running
Claude Desktop doesn't show resources
- Restart Claude Desktop
- Check the config file syntax
- Verify the server path is absolute
- Check stderr logs for errors
Real-time Sync
The MCP server supports real-time synchronization with the design editor via WebSocket. When you make changes through MCP tools, the editor will instantly update to reflect those changes.
Setup
- Start the WebSocket server (in the main Canvelete directory):
pnpm ws
-
The WebSocket server runs on port 3001 by default. You can change this with the
WS_PORTenvironment variable. -
Open the design editor - you'll see a sync indicator in the top-right corner showing connection status.
How it works
- When MCP tools modify a design (add/update/delete elements, resize canvas, etc.), the changes are broadcast via WebSocket
- All connected editor clients subscribed to that design receive instant updates
- The editor shows a "Live" indicator when connected, with a count of received updates
Environment Variables
# WebSocket server port (default: 3001)
WS_PORT=3001
# WebSocket server URL for MCP server to connect to
WS_SERVER_URL=ws://localhost:3001/ws
Security Notes
- API Keys: Keep your API keys secure. Never commit them to version control.
- Database Access: The MCP server has full database access. Only use trusted API keys.
- Rate Limiting: API keys may have rate limits. Check your subscription plan.
License
MIT
Support
For issues and questions:
- GitHub Issues: canvelete/issues
- Documentation: canvelete.com/docs
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。