This repository contains an MVP design and reference implementation for a Model Context Protocol (MCP) server that delivers high-quality Mermaid diagram rendering services. The goal is to provide a tool that helps large language models return fully-rendered diagrams instead of plain Mermaid code blocks.
docs/– product design and architecture notes for the MVP.src/mcp_mermaid/– Python package that implements the MCP server, rendering pipeline, and helper utilities.tests/– unit tests covering the rendering helpers and request validation.pyproject.toml– project metadata and dependencies for development.
The design emphasises a lightweight, testable core that can be extended with additional rendering back-ends (for example a Node-based mermaid-cli worker or a headless browser renderer) without changing the protocol-facing layer.
See docs/mvp_plan.md for the detailed product plan.