Allyson MCP Server is an AI-driven animation generator based on the Model Context Protocol (MCP) that converts static files into animated SVG components. It integrates with AI assistants through the MCP protocol and uses the Allyson platform to generate animations.
Main Capabilities
- AI-driven animation generation: Converts static images into animated SVG components.
- MCP protocol compatible: Can be used with any AI assistant or tool that supports MCP.
- File upload support: Supports multiple image formats (PNG, JPG, SVG, etc.).
- Custom animation prompts: Can precisely describe the desired animation effects.
- Local file processing: Reads files from the local file system.
- Automatic output generation: Saves animated components to the specified path.
Installation and Running
Install and run via npx. Supports command-line options and environment variable configuration. The API key can also be set as an environment variable.
Available Tools
generate_svg_animation
Generates an animated SVG component from a source file and an animation prompt. Parameters:
- prompt (string, required): The description of the animation to generate. Example: "make the character wave", "add a bouncing motion to the ball", "create a rotating effect for the logo".
- svg_path (string, required): The absolute path of the source file. Example: "/path/to/my-icon.svg".
- output_path (string, required): The absolute path to save the animated component. Example: "/path/to/animated-component.tsx".
Integration with AI Assistants
This MCP server is designed for AI assistants that support the Model Context Protocol, such as:
- Claude Desktop (configure MCP)
- Cursor IDE (integrate MCP)
- Custom AI applications (use the MCP SDK)
Security and Privacy
- API key protection: API keys are securely transmitted to the Allyson service.
- Local file access: Only explicitly specified files are read.
- No data storage: Files are not stored on external servers after processing.
- HTTPS communication: All API communication uses secure HTTPS.
Troubleshooting
Common errors and solutions:
- "API key is required" error
- "File not found" error
- "Cannot connect to animation API server" error: Check the network connection, verify the validity of the API key, and ensure the Allyson service is accessible.
- Permission issues When debugging, you can check the server logs output to stderr.
Requirements
- Node.js: Version 18.0.0 or higher.
- API key: A valid Allyson API key.
- Internet connection: Required for API communication.
License
Apache-2.0 License, see the LICENSE file for details.
Related Links
- Model Context Protocol
- Allyson website
- Documentation: Please check the README and inline help (--help)
- Feedback: Report bugs in GitHub Issues