Логотип Jsoncut MCP Server

Jsoncut MCP Server

Организация
jsoncut

Official MCP server for jsoncut.com , an API that generates images and videos from JSON scripts. It supports creating and validating JSON files, while exposing schema and syntax as resources for LLMs to streamline media generation workflows.

Издательjsoncut
Репозиторийjsoncut-mcp-server
ЯзыкJavaScript
Форки
2
Звёзды
1
Доступные инструменты
5
Тип транспортаstdio
Категории
ЛицензияMIT
Ссылки
  • Подключайте инструменты к рабочим процессам с ИИ

    Jsoncut MCP Server предоставляет возможности MCP, доступные совместимым ИИ-клиентам и агентам.

  • Доступные инструменты: 5

    Ниже представлены доступные для вызова действия с названиями и описаниями, если сервер их предоставляет.

  • Готовая конфигурация для копирования

    Используйте примеры конфигурации, чтобы настроить этот сервер в предпочитаемом MCP-клиенте.

  • Показатели интереса к открытому проекту

    Звёзды: 1, форки: 2 — в связанном репозитории.

[!WARNING] ⚠️ 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)

bash
export JSONCUT_API_KEY=your_api_key_here
npx -y @jsoncut/mcp-server

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:

json
{
  "jsoncut": {
    "url": "https://mcp.jsoncut.com/mcp",
    "headers": {
      "x-api-key": "your_jsoncut_api_key_here"
    }
  }
}

Using Docker Locally (Optional)

You can also run your own local server using Docker:

bash
# Pull and run from Docker Hub
docker run -d \
  --name jsoncut-mcp \
  -p 3210:3000 \
  centerbit/jsoncut-mcp-server:latest

# Access at: http://localhost:3210/mcp

Or use Docker Compose:

bash
# Start the service
docker-compose up -d

# Access at: http://localhost:3210/mcp

📖 See DOCKER.md for complete Docker deployment guide

Get Your API Key

Get your Jsoncut API key at jsoncut.com

bash
# Set as environment variable
export JSONCUT_API_KEY=your_api_key_here

# Or create .env file
cp .env.example .env
# Edit .env and add: JSONCUT_API_KEY=your_api_key_here

🎯 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"

json
{
  "jsoncut": {
    "url": "https://mcp.jsoncut.com/mcp",
    "headers": {
      "X-API-Key": "your_jsoncut_api_key_here"
    }
  }
}

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

json
{
  "mcpServers": {
    "jsoncut": {
      "url": "https://mcp.jsoncut.com/mcp",
      "headers": {
        "X-API-Key": "your_jsoncut_api_key_here"
      }
    }
  }
}

Local npx Mode

For local development without network access:

Cursor IDE

json
{
  "jsoncut": {
    "command": "npx",
    "args": ["-y", "@jsoncut/mcp-server"],
    "env": {
      "JSONCUT_API_KEY": "your_api_key_here"
    }
  }
}

Claude Desktop

json
{
  "mcpServers": {
    "jsoncut": {
      "command": "npx",
      "args": ["-y", "@jsoncut/mcp-server"],
      "env": {
        "JSONCUT_API_KEY": "your_api_key_here"
      }
    }
  }
}

Local Docker Server

If you're running your own local Docker server:

Cursor IDE

json
{
  "jsoncut": {
    "url": "http://localhost:3210/mcp",
    "headers": {
      "X-API-Key": "your_jsoncut_api_key_here"
    }
  }
}

Claude Desktop

json
{
  "mcpServers": {
    "jsoncut": {
      "url": "http://localhost:3210/mcp",
      "headers": {
        "X-API-Key": "your_jsoncut_api_key_here"
      }
    }
  }
}

📚 MCP Resources

The server automatically exposes JSON schemas as MCP resources:

  • schema://image - Complete image generation schema
  • schema://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:

json
{
  "width": 1200,
  "height": 630,
  "layers": [
    {
      "type": "gradient",
      "x": 0, "y": 0, "width": 1200, "height": 630,
      "gradient": {
        "type": "linear",
        "colors": ["#667eea", "#764ba2"],
        "direction": "diagonal"
      }
    },
    {
      "type": "text",
      "text": "Welcome to Jsoncut",
      "position": "center",
      "fontSize": 64,
      "color": "#ffffff"
    }
  ]
}

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:

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "defaults": {
    "duration": 3,
    "transition": { "name": "fade", "duration": 1 }
  },
  "clips": [
    {
      "layers": [
        { "type": "title", "text": "Welcome", "position": "center" }
      ]
    }
  ]
}

validate_config

Validate configurations against the Jsoncut API before submission.

Parameters:

  • type: "image" or "video"
  • config: Configuration object to validate
  • apiKey: 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

  1. Create Configuration: Use create_image_config or create_video_config
  2. Validate (optional): Call validate_config if you have actual file paths
  3. Submit: 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:

/image/2024-01-15/userXXX/photo.jpg
/video/2024-01-15/userXXX/video.mp4
/audio/2024-01-15/userXXX/music.mp3
/font/2024-01-15/userXXX/CustomFont.ttf

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:

bash
export JSONCUT_API_KEY=your_api_key_here
npm run inspector

🔧 Development

Local Development

bash
# Clone and install
git clone https://github.com/jsoncut/jsoncut-mcp-server.git
cd jsoncut-mcp-server
npm install

# Build
npm run build

# Watch mode
npm run watch

# Run locally
node dist/index.js

Configuration with Local Build

For Cursor/Claude Desktop, use the local build:

json
{
  "jsoncut": {
    "command": "node",
    "args": ["/absolute/path/to/jsoncut-mcp-server/dist/index.js"],
    "env": {
      "JSONCUT_API_KEY": "your_api_key_here"
    }
  }
}

📝 Examples

See the examples/ directory for complete configurations:

  • image-example.json - Image generation with multiple layer types
  • video-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


Установка

TypingMind
Требования:

Node.js 18+

{
  "mcpServers": {
    "jsoncut": {
      "command": "npx",
      "args": [
        "-y",
        "@jsoncut/mcp-server"
      ],
      "env": {
        "JSONCUT_API_KEY": "your_api_key_here"
      }
    }
  }
}

Доступные инструменты

  • create_image_config

    Create a JSON configuration for image generation based on jsoncut documentation.

    Returns a complete configuration object that can be used with the validate_config tool or submitted directly to the jsoncut API.

    WORKFLOW:

    1. First get the schema (read resource schema://image or call get_image_schema) to understand all available options
    2. Create the configuration with this tool
    3. Call validate_config to verify the configuration (if user provided media file paths)

    Image Structure:

    • Layer-based system (rendered bottom to top, max 50 layers)
    • Canvas with dimensions, background color, and output format
    • Support for defaults to avoid repetition

    Layer Types:

    • image: Display uploaded 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
  • create_video_config

    Create a JSON configuration for video generation based on jsoncut documentation.

    Returns a complete configuration object that can be used with the validate_config tool or submitted directly to the jsoncut API.

    WORKFLOW:

    1. First get the schema (read resource schema://video or call get_video_schema) to understand all available options
    2. Create the configuration with this tool
    3. Call validate_config to verify the configuration (if user provided media file paths)

    Video Structure:

    • Built using clips (segments) that play sequentially
    • Each clip contains layers (rendered bottom to top)
    • Supports transitions between clips
    • Comprehensive audio system with multiple options

    Layer Types:

    • video: Display video files with timing control, Ken Burns effects, and enhanced positioning
    • image: Static images with positioning and Ken Burns effects
    • image-overlay: Images positioned over other content with timing
    • title: Large headline text with animation styles (fade-in
  • validate_config

    Validate a job configuration against the jsoncut API.

    This tool sends the configuration to the API's validation endpoint to check:

    • Schema compliance
    • Resource availability
    • Estimated token cost
    • Any configuration errors

    WHEN TO USE:

    • ONLY call this tool if the user has provided actual media file paths (e.g., from uploaded files)
    • DO NOT validate configurations with placeholder paths like "/image/2024-01-15/userXXX/..."
    • Always call this after creating a configuration when real file paths are available

    BENEFITS:

    • Catches errors before job submission
    • Provides accurate token cost estimates
    • Verifies that referenced files exist and are accessible
  • get_image_schema

    Get the complete JSON schema for image generation.

    Returns the full JSON Schema document that defines all possible configuration options for image generation jobs. Use this to understand all available options, constraints, and examples.

    NOTE: This schema is also available as a resource at schema://image which can be read directly without a tool call.

    IMPORTANT: Get this schema FIRST when creating image configurations to understand the complete structure, available layer types, positioning options, and all properties. This ensures you create valid and complete configurations.

  • get_video_schema

    Get the complete JSON schema for video generation.

    Returns the full JSON Schema document that defines all possible configuration options for video generation jobs. Use this to understand all available options, constraints, and examples.

    NOTE: This schema is also available as a resource at schema://video which can be read directly without a tool call.

    IMPORTANT: Get this schema FIRST when creating video configurations to understand the complete structure, available layer types, audio options, transitions, and all properties. This ensures you create valid and complete configurations.

Используйте MCP Jsoncut MCP Server с разными ИИ-моделями

TypingMind подключает инструменты MCP на уровне рабочего пространства, поэтому после подключения Jsoncut MCP Server вы можете использовать их с разными моделями ИИ в TypingMind, не настраивая подключение отдельно для каждой модели. Эта интеграция MCP работает локально на вашем устройстве через коннектор MCP TypingMind.

Руководство по настройке локального коннектора

Выберите этот способ, если серверу MCP нужен доступ к локальным файлам, приложениям или закрытым ресурсам на вашем компьютере.

1

Откройте настройки MCP

В TypingMind откройте «Настройки», затем «Расширенные настройки», перейдите в раздел «Протокол контекста модели» и выберите «Настроить коннектор».

  1. Откройте TypingMind в браузере.
  2. Нажмите значок настроек.
  3. Перейдите в «Расширенные настройки».
  4. Откройте раздел «Протокол контекста модели».
  5. Нажмите «Настроить коннектор» и выберите «Это устройство».
Экран настройки коннектора MCP в TypingMind с выбранным вариантом «Это устройство»
2

Выполните команду коннектора

Выберите «Это устройство», скопируйте команду из TypingMind и выполните её в терминале. Не останавливайте процесс, пока используете MCP.

  1. Скопируйте команду настройки, показанную в TypingMind.
  2. Откройте «Терминал» в macOS или Windows Terminal в Windows.
  3. Вставьте и выполните команду.
  4. Подтвердите установку пакета, если терминал запросит разрешение продолжить.
  5. Не закрывайте окно терминала и не останавливайте процесс, пока используете инструменты MCP.
3

Добавьте Jsoncut MCP Server как сервер

Когда статус коннектора сменится на «Готов», нажмите «Изменить серверы» и вставьте конфигурацию сервера MCP.

  1. Дождитесь, пока статус коннектора сменится на «Готов».
  2. Нажмите «Изменить серверы».
  3. Вставьте конфигурацию сервера MCP для Jsoncut MCP Server.
  4. Сохраните список серверов.
  5. Обновите статус, если хотите убедиться, что коннектор по-прежнему готов к работе.
Настройки MCP в TypingMind с активным сервером и кнопкой «Изменить серверы»
{
  "mcpServers": {
    "jsoncut-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@jsoncut/mcp-server"
      ]
    }
  }
}
4

Используйте подключение с разными моделями

Сохраните список серверов, откройте раздел «Плагины», включите инструменты MCP для Jsoncut MCP Server, затем выберите любую поддерживаемую модель ИИ в TypingMind и используйте инструменты в чате или назначьте их ИИ-агенту.

  1. Откройте страницу «Плагины» в TypingMind.
  2. Включите инструменты MCP для Jsoncut MCP Server.
  3. Начните чат и выберите модель ИИ, которую хотите использовать.
  4. Используйте инструменты MCP в чате или назначьте их ИИ-агенту.
  5. При необходимости переключайтесь на другую модель ИИ без повторного подключения MCP.
Чат TypingMind с включёнными инструментами MCP и выбранной ИИ-моделью
Можете помочь мне с этой задачей с помощью Jsoncut MCP Server?
Jsoncut MCP Server
Конечно. Я всё прочитал.
Вот что я нашёл с помощью Jsoncut MCP Server.

Часто задаваемые вопросы

Для чего используется сервер MCP Jsoncut MCP Server?

Jsoncut MCP Server — это сервер MCP, который позволяет совместимым ИИ-клиентам подключаться к внешним инструментам и получать контекст. В TypingMind достаточно один раз добавить этот сервер MCP, чтобы его инструменты стали доступны в вашем рабочем пространстве с ИИ.

Можно ли использовать сервер MCP Jsoncut MCP Server с несколькими ИИ-моделями в TypingMind?

Да. TypingMind подключает инструменты MCP на уровне рабочего пространства, поэтому вы можете использовать Jsoncut MCP Server с разными ИИ-моделями, например Claude, ChatGPT, Gemini или другими моделями, настроенными в TypingMind, без отдельной настройки сервера MCP для каждой модели.

Зачем использовать MCP Jsoncut MCP Server с TypingMind?

TypingMind — один из лучших интерфейсов для чата с LLM: он объединяет разные ИИ-модели, промпты, плагины, ИИ-агентов, ключи API и инструменты MCP в одном рабочем пространстве. Подключив Jsoncut MCP Server, вы сможете использовать его инструменты MCP с предпочитаемыми моделями, сохраняя удобную организацию работы с чатами в TypingMind.

Как подключить сервер MCP Jsoncut MCP Server к TypingMind?

Jsoncut MCP Server работает через локальный коннектор MCP TypingMind. Этот вариант лучше всего подходит, когда серверу MCP нужен доступ к локальным файлам, настольным приложениям, инструментам командной строки или закрытым ресурсам на вашем компьютере.

Какие инструменты предоставляет сервер MCP Jsoncut MCP Server в TypingMind?

Jsoncut MCP Server предоставляет инструменты MCP (5), которые можно включить на странице «Плагины» в TypingMind и использовать в чате или назначить ИИ-агентам.

Нужно ли передавать TypingMind свои ключи API для использования сервера MCP Jsoncut MCP Server?

Нет. TypingMind ориентирован прежде всего на локальную работу и позволяет вам контролировать выбор провайдеров моделей, ключи API, промпты и конфигурацию MCP. Если Jsoncut MCP Server требует аутентификации, при создании подключения добавьте необходимые заголовки, настройки OAuth или локальную конфигурацию для этого сервера MCP.

Image Generation Schema

Complete JSON schema for image generation configurations

Video Generation Schema

Complete JSON schema for video generation configurations

Похожие серверы MCP

Все

Создайте свою рабочую ИИ-среду сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇