monosketch-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@monosketch-mcpCreate an ASCII diagram of a server-client connection using boxes and lines."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
monosketch-mcp
An MCP server that gives AI agents the ability to create beautiful ASCII diagrams using Unicode box-drawing characters. Built on the rendering engine from MonoSketch.
┌──────────────────┐ ┌──────────────────┐
│ │ │ │
│ Frontend │──────▶│ API │
│ │ │ │
└──────────────────┘ └────────┬─────────┘
│
│
┌────────▼─────────┐
│ │
│ Database │
│ │
└──────────────────┘Setup
Requires Bun runtime.
git clone https://github.com/supersterling/monosketch-mcp.git
cd monosketch-mcp
bun installAdd to Claude Code
claude mcp add monosketch -- bun run /path/to/monosketch-mcp/index.tsAdd to Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"monosketch": {
"command": "bun",
"args": ["run", "/path/to/monosketch-mcp/index.ts"]
}
}
}Related MCP server: tldraw MCP Server
Tools
render_scene
Stateless one-shot rendering. Pass an array of shapes, get back ASCII art.
{
"shapes": [
{
"type": "rectangle",
"x": 0, "y": 0, "width": 20, "height": 5,
"border": { "enabled": true }
},
{
"type": "text",
"x": 0, "y": 0, "width": 20, "height": 5,
"content": "Hello World",
"horizontalAlign": "center",
"verticalAlign": "middle",
"border": { "enabled": true }
}
]
}Output:
┌──────────────────┐
│ │
│ Hello World │
│ │
└──────────────────┘Canvas Tools (Stateful)
Build diagrams incrementally across multiple tool calls:
Tool | Description |
| Create a named canvas session |
| Add a shape to a canvas |
| Update shape properties |
| Remove a shape |
| Render current state to ASCII |
| List active sessions |
| Remove all shapes |
Utilities
Tool | Description |
| List all available border, fill, and anchor styles |
| Compute bounding box for word-wrapped text |
Shape Types
Rectangle
{ "type": "rectangle", "x": 0, "y": 0, "width": 10, "height": 4,
"border": { "enabled": true, "style": "S1", "corner": "rounded" },
"fill": { "enabled": true, "style": "F1" } }Text
{ "type": "text", "x": 0, "y": 0, "width": 20, "height": 3,
"content": "Centered text", "horizontalAlign": "center", "verticalAlign": "middle",
"border": { "enabled": true } }Line
{ "type": "line",
"points": [{"x": 0, "y": 2}, {"x": 10, "y": 2}, {"x": 10, "y": 5}],
"stroke": { "enabled": true },
"endAnchor": "A1" }Group
{ "type": "group", "children": [
{ "type": "rectangle", "x": 0, "y": 0, "width": 10, "height": 3, "border": { "enabled": true } },
{ "type": "rectangle", "x": 15, "y": 0, "width": 10, "height": 3, "border": { "enabled": true } }
]}Style Reference
Border / Stroke Styles
ID | Name | Characters |
S1 | Thin (default) |
|
S2 | Bold |
|
S3 | Double |
|
S4 | Rounded |
|
Fill Styles
ID | Name | Character |
F1 | Space |
|
F2 | Solid |
|
F3 | Medium shade |
|
F4 | Light shade |
|
F5 | Diagonal |
|
Anchor Styles (Line Endpoints)
ID | Name | L R U D |
A1 | Filled arrow |
|
A12 | Hollow arrow |
|
A2 | Filled square |
|
A21 | Hollow square |
|
A220 | Filled diamond |
|
A221 | Hollow diamond |
|
A3 | Hollow circle |
|
A5 | Filled circle |
|
Dash Patterns
Add "dash": { "dash": 3, "gap": 1 } to any shape for dashed borders/strokes.
Line Crossing
When lines cross, junction characters are automatically resolved:
│
────┼────
│The engine handles all combinations of single, bold, and double line styles with correct Unicode junction characters (T-junctions, crosses, corners).
Tests
bun test208 tests covering geometry primitives, bitmap rendering, board compositing, crossing resolution, shape hierarchy, renderer pipeline, canvas management, and end-to-end integration scenarios.
Architecture
The rendering engine was extracted from MonoSketch, an open-source ASCII diagram editor.
Shape Description (JSON)
→ BitmapFactory (per shape type)
→ MonoBitmap (sparse character matrix)
→ MonoBoard (tiled canvas with crossing resolution)
→ ASCII string outputEngine modules:
engine/geo/— Point, Rect, Size geometry primitivesengine/shape/— Shape hierarchy (Rectangle, Text, Line, Group)engine/style/— Stroke, fill, anchor, and alignment stylesengine/bitmap/— Sparse bitmap matrix and per-shape rendering factoriesengine/board/— Tiled canvas compositing with Unicode line crossing resolution
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Connect AI agents to Flato's editable canvas runtime through a hosted MCP server.
Official MCP server for Agentwork — delegate tasks to AI agents with human-in-the-loop
MCP server for agentverse documentation, generated by doc2mcp.
MCP server for AI dialogue using various LLM models via AceDataCloud
Related MCP Servers
- AlicenseAqualityDmaintenanceA minimal MCP server for AI-driven canvas manipulation and visualization using tldraw. It enables AI clients to programmatically create, update, and manage shapes, flowcharts, and frames on a live interactive canvas.91MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that gives AI agents programmatic control over a live tldraw canvas, enabling diagram creation through natural language.1MIT
- FlicenseAqualityDmaintenanceAn MCP server that enables AI coding agents to create pixel art programmatically by providing canvas manipulation tools and PNG export.10302-
- AlicenseAqualityBmaintenanceAn MCP server that lets agents draw 18 diagram types from JSON (no SVG, no headless browser)2547MIT