Supports exporting canvas data to SVG format through the export_canvas tool, allowing visualization of JSON Canvas content.
JSON Canvas MCP Server
A Model Context Protocol (MCP) server implementation that provides tools for working with JSON Canvas files according to the official specification. This server enables creating, modifying, and validating infinite canvas data structures.
Overview
The JSON Canvas MCP server provides a complete implementation of the JSON Canvas 1.0 specification, enabling:
Creation and manipulation of infinite canvas data
Support for all node types (text, file, link, group)
Edge connections with styling and labels
Validation against the specification
Configurable output paths
Components
Resources
The server exposes the following resources:
canvas://schema
: JSON Schema for validating canvas filescanvas://examples
: Example canvas files demonstrating different featurescanvas://templates
: Templates for creating new canvases
Tools
Node Operations
create_node
Create a new node of any supported type
Input:
type
(string): Node type ("text", "file", "link", "group")properties
(object): Node-specific propertiesCommon:
id
,x
,y
,width
,height
,color
Type-specific:
text
,file
,url
, etc.
Returns: Created node object
update_node
Update an existing node's properties
Input:
id
(string): Node ID to updateproperties
(object): Properties to update
Returns: Updated node object
delete_node
Remove a node and its connected edges
Input:
id
(string): Node ID to delete
Returns: Success confirmation
Edge Operations
create_edge
Create a new edge between nodes
Input:
id
(string): Unique edge identifierfromNode
(string): Source node IDtoNode
(string): Target node IDfromSide
(optional string): Start side ("top", "right", "bottom", "left")toSide
(optional string): End sidecolor
(optional string): Edge colorlabel
(optional string): Edge label
Returns: Created edge object
update_edge
Update an existing edge's properties
Input:
id
(string): Edge ID to updateproperties
(object): Properties to update
Returns: Updated edge object
delete_edge
Remove an edge
Input:
id
(string): Edge ID to delete
Returns: Success confirmation
Canvas Operations
validate_canvas
Validate a canvas against the specification
Input:
canvas
(object): Canvas data to validate
Returns: Validation results with any errors
export_canvas
Export canvas to different formats
Input:
format
(string): Target format ("json", "svg", "png")canvas
(object): Canvas data to export
Returns: Exported canvas in requested format
Usage with Claude Desktop
Docker
Add this to your claude_desktop_config.json
:
UV
Configuration
The server can be configured using environment variables:
OUTPUT_PATH
: Directory where canvas files will be saved (default: "./output")FORMAT
: Default output format for canvas files (default: "json")
Building
Docker Build
Local Build
Example Usage
Creating a Canvas
License
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
A Model Context Protocol server that enables creating, modifying, and validating infinite canvas data structures according to the JSON Canvas 1.0 specification.
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that provides tools for code modification and generation via Large Language Models, allowing users to create, modify, rewrite, and delete files using structured XML instructions.Last updated -122MIT License
- AsecurityFlicenseAqualityA Model Context Protocol server that enables interaction with the Canvas Learning Management System API, allowing users to manage courses, assignments, enrollments, and grades within Canvas.Last updated -542350JavaScript
- AsecurityAlicenseAqualityA Model Context Protocol server that transforms text into structured JSON data using templates with placeholders.Last updated -21MIT License
- -securityFlicense-qualityA Model Context Protocol server that enables AI assistants to interact with Canvas LMS through its API, providing tools for managing courses, users, content, assessments, and quizzes.Last updated -23