Line9 MCP
A hosted MCP server that integrates Line9's Mermaid layout engine into AI assistants like Claude, ChatGPT, Cursor, and VS Code. It renders Mermaid source code with cleaner placement, orthogonal edges, and readable typography, displaying the result as a zoomable widget or providing an Open-in-Line9 link. It supports tools for rendering diagrams, listing published diagrams, and fetching specific diagram details.
Endpoint and access
No sign-in to connect and list tools. Individual tools may still need a vendor account, credentials, or permissions; check the documented prerequisites.
https://mcp.line9.ai/mcpWhat its tools do
3 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.
Read-only (3)
Checks and signals
Each line is separate evidence, not a trust score.
- Passed Endpoint answered the live check ·
- Passed Official MCP Registry namespace is tied to line9.ai ·
- Passed Endpoint is on the registry namespace domain ·
- Uptime 100% over 90 days
- Availability 2 of 2 checks passed in 30 days
About Line9 MCP
Line9 MCP is a hosted developer tool that integrates Line9's Mermaid layout engine into AI assistants. It processes Mermaid source code to produce diagrams with cleaner placement, orthogonal edges, and readable typography. The server provides results as zoomable widgets or via an Open-in-Line9 link.
The server supports three specific tasks: rendering Mermaid flowcharts, listing published diagrams within a Line9 workspace, and fetching details for a specific diagram by name or slug. These capabilities allow agents to visualize structured data or retrieve existing visual assets.
Connection to the server requires no sign-in. However, individual tools may still require a vendor account, credentials, or permissions. Administrators may need to allow Line9 access before use. Users should check documented prerequisites for specific tool requirements.
What you can do with it
- Render Mermaid flowcharts with Line9's layout engine
- List published diagrams in a Line9 workspace
- Fetch and display a specific diagram by name or slug
Source and maintenance
Protocol and capabilities
- Server
- Line9 0.5.0
- MCP protocol negotiated in check
- 2025-11-25
- Tools
- 3 advertised
- Resources
- 1 advertised
- Resource templates
- 0 advertised
- Prompts
- Not advertised
{
"tools": {
"listChanged": true
},
"resources": {
"listChanged": true
}
}Tools
3 advertised
render_diagram — Render diagram
Render Mermaid source with Line9's layout engine. Call this whenever you write or change Mermaid and the user should see the result. Flowcharts and sequence diagrams get Line9's layout; other Mermaid kinds are rendered with Mermaid's own layout and flagged as such. Returns a short verdict — kind, size, warnings, or a parse error with its line and column — plus an "Open in Line9" link. On a parse error, fix the named line and call again. Assistants that support MCP Apps show the diagram in a panel; there, do not paste the SVG or repeat the source in your reply. In an assistant with no panel (a terminal or editor), reply with the verdict line and the `open_url` link — that link is the only way the user sees the diagram. Write flowcharts as `flowchart LR` unless the user asks for top-to-bottom; chat panels are wide and short. No sign-in needed; renders carry a small Line9 mark unless the user is signed in to Line9 Pro. Set theme, orientation, spacing and legend in the source itself (`line9:` frontmatter; `flowchart LR`), never as arguments. This connector cannot publish or save. To publish, the user opens the diagram in Line9 (the `open_url` link) and publishes there — not with the Line9 CLI.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"source"
],
"properties": {
"plan": {
"type": "string",
"description": "Opaque plan from a previous result (widget use). A hint only: skips the solve when it still fits the source."
},
"source": {
"type": "string",
"minLength": 1,
"description": "Mermaid source. Optional YAML frontmatter is honoured — set it in the source, never as arguments: `title`, and a nested `line9:` block with `theme` (one of `boardroom`, `linen`, `blueprint`), `scale: { node, spacing }` and `flowchart: { legend: on | off }`. The flowchart direction directive is also honoured. Maximum 100000 characters. Line9 Pro accounts can also use: kingfisher."
}
},
"additionalProperties": {}
}{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"schema_version",
"status"
],
"properties": {
"svg": {
"type": "string"
},
"path": {
"enum": [
"solve",
"plan"
],
"type": "string"
},
"plan": {
"type": "string"
},
"error": {
"type": "object",
"required": [
"code"
],
"properties": {
"code": {
"type": "string"
},
"line": {
"type": "number"
},
"next": {
"type": "string"
},
"stage": {
"type": "string"
},
"column": {
"type": "number"
},
"message": {
"type": "string"
},
"candidates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"slug": {
"type": "string"
}
},
"additionalProperties": {}
}
},
"current_version": {
"type": "number"
}
},
"additionalProperties": {}
},
"width": {
"type": "number"
},
"config": {
"type": "object",
"properties": {
"scale": {
"type": "object",
"properties": {
"node": {
"type": "number"
},
"spacing": {
"type": "number"
}
},
"additionalProperties": {}
},
"theme": {
"type": "string"
},
"flowchart": {
"type": "object",
"properties": {
"legend": {
"enum": [
"on",
"off"
],
"type": "string"
},
"direction": {
"type": "string"
}
},
"additionalProperties": {}
}
},
"additionalProperties": {}
},
"height": {
"type": "number"
},
"source": {
"type": "string"
},
"status": {
"enum": [
"ok",
"diagram_error",
"ambiguous",
"not_found",
"auth_required",
"forbidden",
"not_entitled",
"rate_limited",
"upstream",
"invalid_input",
"internal"
],
"type": "string"
},
"themes": {
"type": "array",
"items": {
"type": "string"
}
},
"diagram": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"slug": {
"type": "string"
},
"version": {
"type": "number"
},
"visibility": {
"type": "string"
},
"workspace_id": {
"type": "string"
}
},
"additionalProperties": {}
},
"controls": {
"type": "object",
"properties": {
"legend": {
"type": "boolean"
},
"orientation": {
"type": "boolean"
}
},
"additionalProperties": {}
},
"diagrams": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"slug": {
"type": "string"
},
"version": {
"type": "number"
},
"workspace": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"additionalProperties": {}
},
"updated_at": {
"type": "string"
},
"visibility": {
"type": "string"
}
},
"additionalProperties": {}
}
},
"open_url": {
"type": "string"
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
},
"signed_in": {
"type": "boolean"
},
"truncated": {
"type": "boolean"
},
"watermark": {
"type": "boolean"
},
"edge_count": {
"type": "number"
},
"node_count": {
"type": "number"
},
"orientation": {
"enum": [
"TB",
"BT",
"LR",
"RL"
],
"type": "string"
},
"render_mode": {
"enum": [
"line9",
"mermaid_fallback"
],
"type": "string"
},
"stop_reason": {
"type": "string"
},
"diagram_type": {
"type": [
"string",
"null"
]
},
"engine_version": {
"type": "string"
},
"schema_version": {
"type": "number"
},
"fallback_reason": {
"enum": [
"unsupported_diagram_kind",
"node_cap_exceeded",
"engine_panic"
],
"type": "string"
},
"mermaid_version": {
"type": "string"
},
"pro_theme_refused": {
"type": "string"
}
},
"additionalProperties": {}
}{
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}list_diagrams — List my diagrams
List the diagrams published in the user's Line9 workspace(s): name, visibility, version, last update and permalink. Use it to find a diagram before `get_diagram`. Requires Line9 sign-in.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Maximum rows to return (1–100; default 50)."
},
"query": {
"type": "string",
"description": "Case-insensitive substring of the diagram name."
}
},
"additionalProperties": {}
}{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"schema_version",
"status"
],
"properties": {
"svg": {
"type": "string"
},
"path": {
"enum": [
"solve",
"plan"
],
"type": "string"
},
"plan": {
"type": "string"
},
"error": {
"type": "object",
"required": [
"code"
],
"properties": {
"code": {
"type": "string"
},
"line": {
"type": "number"
},
"next": {
"type": "string"
},
"stage": {
"type": "string"
},
"column": {
"type": "number"
},
"message": {
"type": "string"
},
"candidates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"slug": {
"type": "string"
}
},
"additionalProperties": {}
}
},
"current_version": {
"type": "number"
}
},
"additionalProperties": {}
},
"width": {
"type": "number"
},
"config": {
"type": "object",
"properties": {
"scale": {
"type": "object",
"properties": {
"node": {
"type": "number"
},
"spacing": {
"type": "number"
}
},
"additionalProperties": {}
},
"theme": {
"type": "string"
},
"flowchart": {
"type": "object",
"properties": {
"legend": {
"enum": [
"on",
"off"
],
"type": "string"
},
"direction": {
"type": "string"
}
},
"additionalProperties": {}
}
},
"additionalProperties": {}
},
"height": {
"type": "number"
},
"source": {
"type": "string"
},
"status": {
"enum": [
"ok",
"diagram_error",
"ambiguous",
"not_found",
"auth_required",
"forbidden",
"not_entitled",
"rate_limited",
"upstream",
"invalid_input",
"internal"
],
"type": "string"
},
"themes": {
"type": "array",
"items": {
"type": "string"
}
},
"diagram": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"slug": {
"type": "string"
},
"version": {
"type": "number"
},
"visibility": {
"type": "string"
},
"workspace_id": {
"type": "string"
}
},
"additionalProperties": {}
},
"controls": {
"type": "object",
"properties": {
"legend": {
"type": "boolean"
},
"orientation": {
"type": "boolean"
}
},
"additionalProperties": {}
},
"diagrams": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"slug": {
"type": "string"
},
"version": {
"type": "number"
},
"workspace": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"additionalProperties": {}
},
"updated_at": {
"type": "string"
},
"visibility": {
"type": "string"
}
},
"additionalProperties": {}
}
},
"open_url": {
"type": "string"
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
},
"signed_in": {
"type": "boolean"
},
"truncated": {
"type": "boolean"
},
"watermark": {
"type": "boolean"
},
"edge_count": {
"type": "number"
},
"node_count": {
"type": "number"
},
"orientation": {
"enum": [
"TB",
"BT",
"LR",
"RL"
],
"type": "string"
},
"render_mode": {
"enum": [
"line9",
"mermaid_fallback"
],
"type": "string"
},
"stop_reason": {
"type": "string"
},
"diagram_type": {
"type": [
"string",
"null"
]
},
"engine_version": {
"type": "string"
},
"schema_version": {
"type": "number"
},
"fallback_reason": {
"enum": [
"unsupported_diagram_kind",
"node_cap_exceeded",
"engine_panic"
],
"type": "string"
},
"mermaid_version": {
"type": "string"
},
"pro_theme_refused": {
"type": "string"
}
},
"additionalProperties": {}
}{
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}get_diagram — Get a diagram
Fetch a published diagram's current Mermaid source by name or slug, and show it rendered. The returned source is stamped with the diagram's identity — keep the `line9:` frontmatter block when you edit it so that Line9 recognises the diagram when it is opened and published there instead of creating a new one. Requires Line9 sign-in. This connector cannot publish or save. To publish, the user opens the diagram in Line9 (the `open_url` link) and publishes there — not with the Line9 CLI.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"diagram"
],
"properties": {
"diagram": {
"type": "string",
"minLength": 1,
"description": "Diagram name, slug, or trailing public_ref."
}
},
"additionalProperties": {}
}{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"schema_version",
"status"
],
"properties": {
"svg": {
"type": "string"
},
"path": {
"enum": [
"solve",
"plan"
],
"type": "string"
},
"plan": {
"type": "string"
},
"error": {
"type": "object",
"required": [
"code"
],
"properties": {
"code": {
"type": "string"
},
"line": {
"type": "number"
},
"next": {
"type": "string"
},
"stage": {
"type": "string"
},
"column": {
"type": "number"
},
"message": {
"type": "string"
},
"candidates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"slug": {
"type": "string"
}
},
"additionalProperties": {}
}
},
"current_version": {
"type": "number"
}
},
"additionalProperties": {}
},
"width": {
"type": "number"
},
"config": {
"type": "object",
"properties": {
"scale": {
"type": "object",
"properties": {
"node": {
"type": "number"
},
"spacing": {
"type": "number"
}
},
"additionalProperties": {}
},
"theme": {
"type": "string"
},
"flowchart": {
"type": "object",
"properties": {
"legend": {
"enum": [
"on",
"off"
],
"type": "string"
},
"direction": {
"type": "string"
}
},
"additionalProperties": {}
}
},
"additionalProperties": {}
},
"height": {
"type": "number"
},
"source": {
"type": "string"
},
"status": {
"enum": [
"ok",
"diagram_error",
"ambiguous",
"not_found",
"auth_required",
"forbidden",
"not_entitled",
"rate_limited",
"upstream",
"invalid_input",
"internal"
],
"type": "string"
},
"themes": {
"type": "array",
"items": {
"type": "string"
}
},
"diagram": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"slug": {
"type": "string"
},
"version": {
"type": "number"
},
"visibility": {
"type": "string"
},
"workspace_id": {
"type": "string"
}
},
"additionalProperties": {}
},
"controls": {
"type": "object",
"properties": {
"legend": {
"type": "boolean"
},
"orientation": {
"type": "boolean"
}
},
"additionalProperties": {}
},
"diagrams": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"slug": {
"type": "string"
},
"version": {
"type": "number"
},
"workspace": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"additionalProperties": {}
},
"updated_at": {
"type": "string"
},
"visibility": {
"type": "string"
}
},
"additionalProperties": {}
}
},
"open_url": {
"type": "string"
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
},
"signed_in": {
"type": "boolean"
},
"truncated": {
"type": "boolean"
},
"watermark": {
"type": "boolean"
},
"edge_count": {
"type": "number"
},
"node_count": {
"type": "number"
},
"orientation": {
"enum": [
"TB",
"BT",
"LR",
"RL"
],
"type": "string"
},
"render_mode": {
"enum": [
"line9",
"mermaid_fallback"
],
"type": "string"
},
"stop_reason": {
"type": "string"
},
"diagram_type": {
"type": [
"string",
"null"
]
},
"engine_version": {
"type": "string"
},
"schema_version": {
"type": "number"
},
"fallback_reason": {
"enum": [
"unsupported_diagram_kind",
"node_cap_exceeded",
"engine_panic"
],
"type": "string"
},
"mermaid_version": {
"type": "string"
},
"pro_theme_refused": {
"type": "string"
}
},
"additionalProperties": {}
}{
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}Prompts
Not advertised
Resources
1 advertised
Line9 diagram
Interactive Line9 diagram viewer
ui://line9/diagram.html90-day uptime
A lightweight connection check about every six hours, sampled on hosts with many listings. It shows the server answered, not that its tools work.
- 2026-11-02: 3 of 3 checks answered
- 2026-11-03: 4 of 4 checks answered
- 2026-11-04: 4 of 4 checks answered
- 2026-11-05: 4 of 4 checks answered
- 2026-11-06: 4 of 4 checks answered
- 2026-11-07: 2 of 2 checks answered
- 2026-11-09: 1 of 1 checks answered
- 2026-11-10: 2 of 2 checks answered
- 2026-11-11: 1 of 1 checks answered
- 2026-11-12: 1 of 1 checks answered
- 2026-11-14: 1 of 1 checks answered
- 2026-11-15: 2 of 2 checks answered
- 2026-11-16: 4 of 4 checks answered
- 2026-11-17: 5 of 5 checks answered
- 2026-11-18: 5 of 5 checks answered
- 2026-11-19: 4 of 4 checks answered
- 2026-11-20: 3 of 3 checks answered
- 2026-11-21: 4 of 4 checks answered
- 2026-11-22: 4 of 4 checks answered
- 2026-11-23: 3 of 3 checks answered
- 2026-11-24: 4 of 4 checks answered
- 2026-11-25: 4 of 4 checks answered
- 2026-11-26: 4 of 4 checks answered
- 2026-11-27: 4 of 4 checks answered
- 2026-11-28: 1 of 1 checks answered
30-day availability
Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.
- Successful checks
- 2 of 2 (100%)
- Average latency
- 2327 ms
- 95th percentile latency
- 3004 ms
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · probe · passed · 1574 ms · 3 tool(s), 1 resource(s), 0 resource template(s)
- · probe · passed · 3079 ms · metadata changed · 3 tool(s), 1 resource(s), 0 resource template(s)
- · registry · passed · metadata changed · Source metadata updated
- · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown
Connect from your client
Each snippet registers the same endpoint; pick the client you use.
Claude Code
claude mcp add --transport http line9-mcp https://mcp.line9.ai/mcpCodex
codex mcp add line9-mcp --url https://mcp.line9.ai/mcpCursor
{
"mcpServers": {
"line9-mcp": {
"url": "https://mcp.line9.ai/mcp"
}
}
}Cline
{
"mcpServers": {
"line9-mcp": {
"type": "streamableHttp",
"url": "https://mcp.line9.ai/mcp",
"disabled": false
}
}
}VS Code
{
"servers": {
"line9-mcp": {
"type": "http",
"url": "https://mcp.line9.ai/mcp"
}
}
}Gemini CLI
gemini mcp add --transport http line9-mcp https://mcp.line9.ai/mcpClaude Desktop
https://mcp.line9.ai/mcpWindsurf
{
"mcpServers": {
"line9-mcp": {
"serverUrl": "https://mcp.line9.ai/mcp"
}
}
}Let your agent find its tools
Find servers like Line9 MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.
Other developer tools servers
Frequently asked questions
- Can I render Mermaid diagrams without an account?
- No sign-in is required to connect and list tools. However, individual tools may still need a vendor account, credentials, or permissions. Check the documented prerequisites for specific tool requirements.
- What tasks does this server support?
- The server supports rendering Mermaid flowcharts with Line9's layout engine, listing published diagrams in a Line9 workspace, and fetching specific diagram details by name or slug.
- Are there administrative prerequisites?
- Yes, your admin may need to allow Line9 first. This is a documented requirement before using the server's capabilities.
Do you run Line9 MCP?
Prove ownership with a DNS record, a well-known file, or your Official MCP Registry entry, and your edits publish immediately. Proofs are re-checked weekly; admins can still hide or remove a listing.