Enables creation and animation of graphics in PinePaper Studio, with the ability to export animated SVG files and generate procedural backgrounds, shapes, and text with behavior-driven relations.
Click on "Install 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., "@PinePaper MCP Servercreate a flowchart for our user login process"
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.
PinePaper MCP Server
Create animated graphics with AI using the Model Context Protocol
Overview
PinePaper MCP Server enables AI assistants to create and animate graphics in PinePaper Studio via the Model Context Protocol (MCP). Works with any AI that supports MCP tool calling (Claude, GPT, Gemini, local models, etc.). Using natural language, you can:
Create text, shapes, and complex graphics
Animate items with behavior-driven relations
Generate procedural backgrounds
Export animated SVG and training data
Quick Start
1. Install
2. Configure Your AI Client
Add to your MCP client configuration. Examples:
Claude Desktop (claude_desktop_config.json):
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Other MCP Clients: Refer to your AI client's MCP configuration documentation.
3. Start Using
Open your AI client and try:
"Create a red pulsing text that says HELLO"
"Create a sun and earth, make earth orbit the sun"
"Add a sunburst background with blue and purple colors"
Features
π Diagram Tools (NEW in v1.4.3)
Create flowcharts, UML diagrams, network diagrams, and more:
Shape Types:
Flowchart: process, decision, terminal, data, document, database, preparation
UML: uml-class, uml-usecase, uml-actor
Network: cloud, server
Basic: rectangle, circle, triangle, star
Connector Features:
Smart routing (orthogonal, direct, curved)
Arrow styles (classic, stealth, diamond, circle, none)
Animated bolt effect for data flow
Labels on connectors
Auto-Layout Algorithms:
Hierarchical (flowcharts, org charts)
Force-directed (network diagrams)
Tree (hierarchies)
Radial (mind maps)
Grid (component libraries)
Tools:
pinepaper_create_diagram_shape- Create diagram shapes with portspinepaper_connect- Connect items with smart connectorspinepaper_connect_ports- Connect specific portspinepaper_add_ports- Add connection ports to itemspinepaper_auto_layout- Automatically arrange itemspinepaper_get_diagram_shapes- List available shapespinepaper_update_connector- Update connector propertiespinepaper_remove_connector- Remove a connectorpinepaper_diagram_mode- Control diagram editing mode
π Asset Search & Import (NEW in v1.3.0)
Search and import free SVG assets from multiple repositories:
Supported Repositories:
SVGRepo: 500,000+ icons with various licenses
OpenClipart: 150,000+ public domain clipart (CC0)
Iconify: 200,000+ icons from multiple icon sets
Font Awesome: 2,000+ free icons (CC BY 4.0)
Tools:
pinepaper_search_assets- Search across all repositoriespinepaper_import_asset- Import and place on canvas
π Performance Metrics (NEW in v1.3.0)
Built-in performance tracking helps AI assistants optimize workflows:
Automatic timing for all tool operations
Phase breakdown (validation, code generation, execution, screenshots)
Export formats: summary, detailed JSON, CSV
Self-optimization through
pinepaper_get_performance_metrics
Example workflow:
π Enhanced Error Messages (NEW in v1.3.0)
Errors now include canvas context for easier debugging:
Total item count and types
Active relations
Recent items created
Canvas state at time of error
Makes troubleshooting much faster and more precise.
π¨ Item Creation
Create text, shapes, and custom graphics:
π Relations (Behavior-Driven Animation)
The key feature - describe HOW items should behave:
Relation | Description | Example |
| Circular motion | "Moon orbits Earth" |
| Move toward target | "Label follows player" |
| Fixed offset | "Hat attached to character" |
| Stay at distance | "Satellite 200px from station" |
| Face target | "Arrow points at target" |
| Mirror position | "Reflection mirrors original" |
| Depth movement | "Background parallax scroll" |
| Stay within area | "Player stays in arena" |
π¬ Simple Animations
For quick looping effects:
pulse- Scale up/downrotate- Continuous spinbounce- Vertical bouncefade- Opacity cyclewobble- Side-to-sideslide- Horizontal slidetypewriter- Character reveal
πΌοΈ Background Generators
Procedural patterns:
drawSunburst- Radial raysdrawSunsetScene- Animated sunsetdrawGrid- Lines, dots, squaresdrawWaves- Layered wavesdrawCircuit- Tech circuit board
π Training Data Export
Generate instruction/code pairs for LLM fine-tuning:
Outputs pairs like:
Tools Reference
Item Tools
Tool | Description |
| Create text, shapes, graphics |
| Change item properties |
| Remove an item |
| Create multiple items at once |
| Modify multiple items at once |
| Create items in a grid layout |
| Create 3D glossy sphere effect |
| Create diagonal stripe pattern |
Relation Tools
Tool | Description |
| Create behavioral relationship |
| Remove relationship |
| Find existing relations |
Animation Tools
Tool | Description |
| Apply simple loop animation |
| Timed keyframe animation |
| Control playback |
Generator Tools
Tool | Description |
| Run background generator |
| List available generators |
Effect Tools
Tool | Description |
| Apply sparkle, blast effects |
Asset Tools (NEW)
Tool | Description |
| Search for SVG assets across repositories |
| Import asset from search results |
Query Tools
Tool | Description |
| Get canvas items |
| Relation statistics |
| Get execution timing metrics |
Diagram Tools (NEW in v1.4.3)
Tool | Description |
| Create flowchart/UML/network shapes with ports |
| Connect items with smart connectors |
| Connect specific ports on items |
| Add connection ports to items |
| Auto-arrange items using layout algorithms |
| List available diagram shapes |
| Update connector style/label |
| Remove a connector |
| Control diagram editing mode |
Canvas Tools
Tool | Description |
| Set background |
| Set dimensions |
Export Tools
Tool | Description |
| Export animated SVG |
| Export LLM training pairs |
Examples
Solar System
Animated Logo
Following Labels
Flowchart Diagram (NEW)
Network Diagram (NEW)
Architecture
Development
Setup
Test with MCP Client (Local)
Build the server:
# Using npm npm run build # Using bun bun run buildAdd to your MCP client config (example for Claude Desktop on macOS:
~/Library/Application Support/Claude/claude_desktop_config.json):{ "mcpServers": { "pinepaper": { "command": "node", "args": ["/full/path/to/mcp-server/dist/cli.js"] } } }Restart your MCP client
Test with: "What PinePaper tools do you have available?"
Run Tests
Development Watch Mode
Internationalization (i18n)
PinePaper MCP Server supports 51 languages, providing localized tool descriptions and messages for AI agents.
Supported Languages
Category | Languages |
European | English, Spanish, French, German, Italian, Portuguese (+ Brazilian), Dutch, Polish, Russian, Ukrainian, Swedish, Danish, Norwegian, Finnish, Czech, Greek, Hungarian, Romanian, Turkish, Icelandic |
East Asian | Chinese (Simplified & Traditional), Japanese, Korean |
Southeast Asian | Thai, Vietnamese, Indonesian, Malay, Tagalog, Filipino |
South Asian | Hindi, Bengali, Tamil, Telugu, Marathi, Gujarati, Kannada, Malayalam, Punjabi, Urdu |
Middle Eastern | Arabic, Hebrew, Persian (RTL support) |
Indigenous (Canada) | Chipewyan, Cree, Michif, Inuktitut, Mi'kmaq, Mohawk, Ojibwe |
How It Works
The i18n system provides localized:
Tool names and descriptions
Error messages
Success messages
UI labels for item types, relations, animations, and generators
Setting Language
Set the PINEPAPER_LOCALE environment variable:
Or programmatically:
Adding New Languages
Create a new locale file in
src/i18n/locales/(e.g.,xx.ts)Copy the structure from
en.tsTranslate all strings
Export from
src/i18n/locales/index.tsAdd to the
localeMap
See CONTRIBUTING.md for detailed guidelines.
Configuration
Environment Variables
Variable | Description | Default |
| Enable debug logging |
|
| Log level (error/warn/info/debug) |
|
| Language locale code |
|
| Enable performance metrics tracking |
|
| Max metrics to retain in memory |
|
| Screenshot mode (on_request/always/never) |
|
Performance Metrics
PinePaper MCP Server includes built-in performance tracking to help AI assistants optimize workflows by identifying bottlenecks and choosing faster alternatives.
Key Features:
β‘ Automatic timing for all tool operations
π Phase breakdown (validation, code generation, browser execution, screenshots)
π― Real-time query via
pinepaper_get_performance_metricstoolπ Export formats: summary, JSON, CSV
πΎ In-memory storage (resets on restart)
π Minimal overhead (~1ms per operation)
Quick Example:
Configuration:
Learn More: See docs/PERFORMANCE_METRICS.md for complete documentation.
Documentation
Guides
Workflow Guide - Decision trees, multi-step patterns, performance optimization, and troubleshooting
Performance Metrics - In-memory metrics system for AI self-optimization
PinePaper Reference - Complete PinePaper Studio API reference
External Documentation
Contributing
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
Development Workflow
Fork the repository
Create a feature branch
Make your changes
Run tests:
npm testSubmit a pull request
License
MIT License - see LICENSE for details.
Links
Support
π§ Email: support@pinepaper.studio
π Issues: GitHub Issues
Made with β€οΈ by the PinePaper team