Skip to main content
Glama
niradler

diagram-mcp

by niradler

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
render_mermaidA

Render a Mermaid diagram to SVG, PNG, JPG, or PDF format with comprehensive styling and output options. Output options:

  • "link" (default): Returns a localhost URL for easy viewing (always show the user the link he can view the diagram in a browser)

  • "filepath": Saves to disk and returns the file path

  • "raw": Returns base64 data for images or raw SVG string

Examples:

  • Basic SVG: Just provide mermaidCode for raw SVG data

  • Localhost image: Set format='png' with output='link' (default) to get a localhost URL

  • Save to disk: Set output='filepath' to save and get file path

  • Base64 image: Set output='raw' to get base64 data for tags

  • Custom styling: Use theme, backgroundColor, and dimension options for tailored appearance

render_plotlyA

Render a Plotly chart to SVG, PNG, JPG, or PDF format with comprehensive styling and output options. Output options:

  • "link" (default): Returns a localhost URL for easy viewing

  • "filepath": Saves to disk and returns the file path

  • "raw": Returns base64 data for images or raw SVG string

Examples:

  • Basic chart: Provide plotlyCode with Plotly.newPlot() call

  • Localhost image: Set format='png' with output='link' (default) to get a localhost URL (always show the user the link he can view the diagram in a browser)

  • Save to disk: Set output='filepath' to save and get file path

  • Base64 image: Set output='raw' to get base64 data for tags

  • Custom styling: Use backgroundColor, width, height, and plotlyConfig options

Plotly Code Example: Plotly.newPlot('plotly-chart', [{ x: [1, 2, 3, 4, 5], y: [1, 2, 4, 8, 16], type: 'scatter' }], { margin: { t: 0 } });

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4/5.0

Scored across 2 tools

Disambiguation5/5

The two tools serve clearly distinct purposes: one renders Mermaid diagrams, the other renders Plotly charts. There is no overlap in functionality, so an agent can easily select the correct tool based on the desired output type.

Naming Consistency5/5

Both tools follow a consistent 'render_' prefix naming pattern, clearly indicating their action and distinguishing them by the library they support (mermaid vs plotly). This makes the naming predictable and easy to understand.

Tool Count4/5

With only two tools, the count is on the lower side but appropriate for a server focused on rendering two distinct visualization libraries. Each tool is justified by the different input formats and rendering engines, so the count feels reasonable for the scope.

Completeness4/5

The server covers the core functionality for rendering diagrams from two popular libraries. While it could include additional libraries or a generic render tool, the current set is sufficient for its stated purpose and has no obvious gaps in the rendering workflows.

Maintenance

ActivityInactive
ResponsivenessNo issues