dgmo-mcp
Official@diagrammo/dgmo-mcp
DGMO図をレンダリングするためのMCPサーバーです。Claude Desktop、Claude Code、およびMCP互換のあらゆるAIツールで動作します。
ツール
ツール | 説明 |
| DGMOマークアップをSVGまたはPNGにレンダリング |
| 共有可能なdiagrammo.app URLを生成 |
| Diagrammoデスクトップアプリで図を開く(アプリがインストールされていない場合はブラウザにフォールバック) |
| サポートされているすべてのチャートタイプを一覧表示 |
| DGMO構文のドキュメントを取得 |
| 1つ以上の図をレンダリングし、ブラウザでHTMLプレビューを開く |
| 複数の図、目次、オプションのソースを含む洗練されたHTMLレポートを生成 |
preview_diagram
1つ以上のDGMO図をSVGにレンダリングし、デフォルトのブラウザで自己完結型のHTMLページを開きます。このページには、ライト/ダークテーマの切り替え機能とレスポンシブなSVGレイアウトが含まれています。
パラメータ | 型 | デフォルト | 説明 | |
|
| (必須) | プレビューする1つ以上の図 | |
| `'light' | 'dark'` |
| レンダリングされたSVGのカラーテーマ |
|
|
| カラーパレット | |
|
|
| 折りたたみ可能なブロックでDGMOソースを表示 |
単一の図はシンプルなプレビューページとしてレンダリングされます。複数の図がある場合は、レポート形式のレイアウトが生成され、(3セクションを超える場合に)目次が表示されます。一部の図のレンダリングに失敗した場合、成功した図が表示され、失敗した箇所にはエラーのプレースホルダーが表示されます。
generate_report
洗練されたマルチセクションのHTMLレポートを生成し、オプションでブラウザで開きます。タイトル、オプションのサブタイトル、自動生成された目次、セクションごとの説明、タイムスタンプ付きのフッターが含まれます。プロジェクト分析を共有可能なドキュメントにまとめるのに適しています。
パラメータ | 型 | デフォルト | 説明 | |
|
| (必須) | レポートのタイトル | |
|
| — | オプションのサブタイトル | |
|
| (必須) | レポートのセクション(各セクションに図を含む) | |
| `'light' | 'dark'` |
| レンダリングされたSVGのカラーテーマ |
|
|
| カラーパレット | |
|
|
| 折りたたみ可能なブロックでDGMOソースを表示 | |
|
|
| ブラウザでレポートを開く |
Related MCP server: drawio
セットアップ
Claude Code
プロジェクトの .claude/settings.local.json に追加してください:
{
"mcpServers": {
"dgmo": {
"command": "npx",
"args": ["-y", "@diagrammo/dgmo-mcp"]
}
}
}Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json に追加してください:
{
"mcpServers": {
"dgmo": {
"command": "npx",
"args": ["-y", "@diagrammo/dgmo-mcp"]
}
}
}保存後、Claude Desktopを再起動してください。ツールが自動的に表示されます。
開発
pnpm install
pnpm build
pnpm typecheck../dgmo にチェックアウトされた未公開の @diagrammo/dgmo に対してイテレーションを行うには、インストール後にnpmで解決された依存関係をワークスペースのシンボリックリンクで上書きします:
pnpm install
pnpm link ../dgmo # symlink node_modules/@diagrammo/dgmo → ../dgmo
pnpm --filter @diagrammo/dgmo build # ensure dist/ is up to datepnpm install を実行するとリンクが解除されるため、依存関係が変更された場合は pnpm link ../dgmo を再実行してください。
リリース
リリースは .github/workflows/release.yml を介したタグ駆動型です:
3つのファイルすべてのバージョンを更新します(ワークフローが検証するため、完全に一致させる必要があります):
package.json→versionmanifest.json→versionserver.json→versionおよびpackages[0].version
コミットしてタグ付けします:
git commit -am "Release vX.Y.Z" git tag vX.Y.Z git push && git push --tagsワークフローが型チェックとビルドを実行し、provenance(来歴)付きでnpmに公開し、
.mcpbをバンドルし、GitHub OIDC経由でMCPレジストリに公開し、GitHubリリースに.mcpbを添付します。
必要なシークレット
NPM_TOKEN—@diagrammo/*への書き込み権限を持つnpmの粒度の細かいアクセストークン。Settings → Secrets and variables → Actions → New repository secret から設定します。
MCPレジストリの認証は、リポジトリが diagrammo 組織にあり、サーバーの名前空間が io.github.diagrammo/* であるため、GitHub OIDCを自動的に使用します(トークンは不要です)。
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 Servers
- FlicenseNot gradedqualityDmaintenanceMCP server that generates Mermaid diagrams with live browser preview, supports real-time rendering and SVG/PNG export.12
- AlicenseAqualityAmaintenanceMCP server for creating and editing diagrams using draw.io. Allows generating diagrams from Mermaid or XML, searching shapes, and opening them in draw.io for export.20Apache 2.0
- AlicenseAqualityDmaintenanceMCP server for generating diagrams, charts, and visualizations using Gemini image generation on Vertex AI. Supports auto-detection of diagram types, multiple style modes, and iterative refinement.3161MIT
- AlicenseNot gradedqualityBmaintenanceMCP server that enables AI assistants to create, parse, render, and validate Draw.io diagrams programmatically.1MIT
Related MCP Connectors
Diagrams, badges, charts and QR codes as plain image URLs you can paste into Markdown.
Generate cloud architecture diagrams, flowcharts, and sequence diagrams.
Official Miro MCP server - Supports context to code and creating diagrams, docs, and data tables.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/diagrammo/dgmo-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server