@pavithra.kvp5/animejs-mcp-server
v1.0.0
Published
A Model Context Protocol (MCP) server for Anime.js animation library, providing AI assistants with access to Anime.js components, APIs, examples, and documentation.
Downloads
9
Maintainers
Readme
Anime.js MCP Server
A Model Context Protocol (MCP) server providing AI assistants with comprehensive access to Anime.js animation library components, APIs, examples, and documentation.
Features
- 🎬 Complete Anime.js API Coverage: Access to all major Anime.js functions and properties
- 📚 Rich Documentation: Built-in guides for getting started, easing functions, performance optimization
- 🎯 Interactive Examples: Ready-to-use code examples for common animation patterns
- 🔍 Smart Search: Find relevant examples and documentation quickly
- ⚡ Performance Tips: Best practices for smooth animations
- 🎨 Animation Patterns: Transform, timeline, stagger, SVG, morphing, and more
Installation
Via npm
npm install -g @animejs/anime-js-mcp-serverVia npx (recommended)
npx @animejs/anime-js-mcp-serverUsage
Basic Usage
# Start the server
npx @animejs/anime-js-mcp-server
# With GitHub API token for enhanced features
npx @animejs/anime-js-mcp-server --github-api-key YOUR_GITHUB_TOKENEnvironment Variables
export GITHUB_PERSONAL_ACCESS_TOKEN=your_token_here
export LOG_LEVEL=info # debug, info, warn, errorMCP Tools
Component Information
- get_anime_component: Get detailed info about specific Anime.js APIs
- list_anime_components: Browse all available components by category
Examples and Tutorials
- get_anime_example: Get complete code examples for animation patterns
- search_anime_examples: Search through examples by keywords
- get_anime_docs: Access comprehensive documentation topics
Supported Animation Types
Core Animations
- Basic Transforms: translate, rotate, scale, skew
- CSS Properties: opacity, colors, dimensions, positioning
- Timeline Sequences: Complex multi-step animations
- Stagger Effects: Grid-based and directional delays
Advanced Features
- SVG Path Animations: Path following and morphing
- Text Animations: Letter-by-letter effects
- Elastic & Physics: Spring and bounce effects
- Performance Optimization: Hardware acceleration tips
Example Usage with Claude
# Get started with Anime.js
"How do I create a basic slide-in animation?"
# Explore specific features
"Show me timeline examples for sequential animations"
# Search for patterns
"Find examples with stagger effects"
# Get performance tips
"How do I optimize animations for mobile?"API Reference
Tools Available
| Tool | Description | Parameters |
|------|-------------|------------|
| get_anime_component | Get component documentation | componentName (required) |
| list_anime_components | List all components | category (optional) |
| get_anime_example | Get code example | exampleType (required) |
| search_anime_examples | Search examples | query (required) |
| get_anime_docs | Get documentation | topic (required) |
Categories
- core: Main animation functions (
anime,timeline) - utilities: Helper functions (
stagger,random,set) - svg: SVG-specific animations (
path, morphing)
Example Types
basic-transform- Simple transform animationstimeline-sequence- Sequential timeline animationsstagger-grid- Grid-based stagger effectssvg-path- SVG path animationstext-animation- Text effectselastic-bounce- Physics-based easingmorphing- CSS property morphingkeyframes- Complex keyframe animations
Documentation Topics
getting-started- Installation and basic usageanimation-controls- Play, pause, seek controlseasing- All easing functions and custom curvesperformance- Optimization best practicestimeline- Timeline and sequencingstagger- Stagger effects and patterns
Configuration
Claude Desktop Integration
Add to your Claude Desktop configuration:
{
"mcpServers": {
"anime-js": {
"command": "npx",
"args": ["@animejs/anime-js-mcp-server"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "your_token_here"
}
}
}
}Development Setup
# Clone and install
git clone https://github.com/juliangarnier/anime-js-mcp-server.git
cd anime-js-mcp-server
npm install
# Build and run
npm run build
npm start
# Development mode
npm run devArchitecture
The server follows MCP best practices with:
- Request Validation: Zod schema validation for all inputs
- Error Handling: Comprehensive error handling and logging
- Caching: Intelligent caching for performance
- Circuit Breakers: Resilient external API calls
- Logging: Configurable logging levels
Contributing
We welcome contributions! Please:
- Fork the repository
- Create a feature branch
- Add tests for new functionality
- Submit a pull request
License
MIT License - see LICENSE file for details.
Related Projects
- Anime.js - The animation library this server supports
- Model Context Protocol - The protocol standard
- Claude Desktop - AI assistant that can use this server
Support
Built with ❤️ for the animation community
