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.
PinePaper MCP Server
Create animated graphics with AI using the Model Context Protocol
Overview
PinePaper MCP Server enables AI assistants like Claude to create and animate graphics in PinePaper Studio. 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 Claude Desktop
Add to your claude_desktop_config.json:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
3. Start Using
Open Claude Desktop 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
π¨ 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 |
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 |
Query Tools
Tool | Description |
| Get canvas items |
| Relation statistics |
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
Architecture
Development
Setup
Test with Claude Desktop (Local)
Build the server:
# Using npm npm run build # Using bun bun run buildAdd to Claude Desktop config (
~/Library/Application Support/Claude/claude_desktop_config.jsonon macOS):{ "mcpServers": { "pinepaper": { "command": "node", "args": ["/full/path/to/mcp-server/dist/cli.js"] } } }Restart Claude Desktop
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 |
|
API Documentation
Full API documentation available at:
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