โ ๏ธ OUTDATED REPOSITORY - This repository is no longer maintained
A public MCP server is now available and this package is deprecated.
Please use the official public server instead: https://mcp.jsoncut.com/mcp
For more information, see: https://docs.jsoncut.com/docs/mcp/overview
๐ Features
๐จ Image Generation: Create JSON configurations for image composition with layers, positioning, and effects
๐ฌ Video Generation: Create JSON configurations for video rendering with clips, transitions, and audio
โ Configuration Validation: Validate configs against the Jsoncut API before submission
๐ Schema Resources: JSON schemas automatically available as MCP resources
๐ Flexible Authentication: API key via environment variable or .env file
๐ฆ Quick Start
Using npx (Recommended for Local)
Using Remote Server (Recommended)
A public MCP server is available at https://mcp.jsoncut.com. No installation needed - just configure your MCP client with your API key:
Using Docker Locally (Optional)
You can also run your own local server using Docker:
Or use Docker Compose:
๐ See
Get Your API Key
Get your Jsoncut API key at jsoncut.com
๐ฏ MCP Client Configuration
Remote Server (Recommended)
Use the public server at https://mcp.jsoncut.com:
Cursor IDE
Open Cursor Settings โ Features โ MCP Servers โ "+ Add New MCP Server"
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
Local npx Mode
For local development without network access:
Cursor IDE
Claude Desktop
Local Docker Server
If you're running your own local Docker server:
Cursor IDE
Claude Desktop
๐ MCP Resources
The server automatically exposes JSON schemas as MCP resources:
schema://image- Complete image generation schemaschema://video- Complete video generation schema
AI agents can read these directly without tool calls for fast access to all configuration options.
๐ ๏ธ Available Tools
create_image_config
Create JSON configurations for image generation with a layer-based system.
Layer Types:
image: Display images with fit modes (cover, contain, fill, inside, outside)
text: Text with custom fonts, alignment, wrapping, and effects
rectangle: Rectangular shapes with fill, stroke, and rounded corners
circle: Circular and elliptical shapes
gradient: Linear or radial color gradients
Positioning:
Pixel coordinates:
{ x: 100, y: 50 }Position strings:
center,top,bottom,top-left,top-right, etc.Position objects:
{ x: 0.5, y: 0.5, originX: "center", originY: "center" }
Example:
create_video_config
Create JSON configurations for video generation with clips, layers, and transitions.
Key Features:
Clips: Sequential video segments with individual layers
Layer Types: video, image, title, subtitle, news-title, audio, gradients, and more
Transitions: 75+ effects (fade, wipe, circle, cube, glitch, zoom, etc.)
Audio: Background music, multiple tracks, normalization, and ducking
Example:
validate_config
Validate configurations against the Jsoncut API before submission.
Parameters:
type: "image" or "video"config: Configuration object to validateapiKey: Optional API key (uses environment if not provided)
Returns:
Validation status
Estimated token cost
Error details (if any)
Detected resources with sizes
get_image_schema / get_video_schema
Get complete JSON schemas for image or video generation.
Note: Schemas are also available as MCP resources (schema://image and schema://video) which AI agents can access directly without tool calls.
๐ Workflow
Create Configuration: Use
create_image_configorcreate_video_configValidate (optional): Call
validate_configif you have actual file pathsSubmit: Use the configuration with the Jsoncut API
The schemas are automatically available as MCP resources, so AI agents have instant access to all configuration options.
๐ File Paths
Use placeholder paths in configurations:
Supported formats:
Images: png, jpg, jpeg, gif, webp
Videos: mp4, mov, avi, webm
Audio: mp3, wav, m4a, aac
Fonts: ttf, otf, woff, woff2
๐งช Testing
Use the MCP Inspector for interactive testing:
๐ง Development
Local Development
Configuration with Local Build
For Cursor/Claude Desktop, use the local build:
๐ Examples
See the examples/ directory for complete configurations:
image-example.json- Image generation with multiple layer typesvideo-example.json- Video generation with clips and transitions
๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
๐ License
MIT License - see LICENSE file for details.
๐ Links
API Documentation: docs.jsoncut.com
Website: jsoncut.com
npm: @jsoncut/mcp-server
Support: support@jsoncut.com