Skip to main content
Glama
niradler

diagram-mcp

by niradler

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/niradler/diagram-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server