ng-diagram MCP Server
Provides ng-diagram documentation and API lookup tools for AI coding assistants.
ng-diagram MCP Server
MCP server that enables AI assistants to search ng-diagram documentation and public API
An MCP server that provides intelligent documentation search and API symbol lookup for ng-diagram - an Angular library for building interactive diagrams. Connect it to AI assistants like Claude, Cursor, or any MCP-compatible tool and ask questions like:
- "How do I create custom nodes in ng-diagram?"
- "What's the signature of the
DiagramComponentclass?" - "What config options does ng-diagram support?"
How It Works
1. search_docs / search_symbols
+--------------+ ---------------------------------> +-----------+
| AI Assistant | <--------------------------------- | MCP Server|
| | 2. Returns matches | |
| | ---------------------------------> | |
| | 3. get_doc / get_symbol | |
| | <--------------------------------- | |
+--------------+ 4. Returns full content +-----------+
|
| 5. Answers with context
v
+------+
| User |
+------+
Quick Start
Add the server to your MCP client config - no installation or monorepo checkout required:
macOS / Linux:
{
"mcpServers": {
"ng-diagram-docs": {
"command": "npx",
"args": ["-y", "@ng-diagram/mcp"]
}
}
}
Windows:
{
"mcpServers": {
"ng-diagram-docs": {
"command": "cmd",
"args": ["/c", "npx", "-y", "@ng-diagram/mcp"]
}
}
}
The package includes all documentation and API data bundled in. Restart your AI assistant after updating the config, then ask something like "Search the ng-diagram docs for palette" to verify.
MCP client config file locations
| Client | Config file |
|---|---|
| Claude Code | .mcp.json in project root (project) or ~/.claude.json (user) |
| Claude Desktop | ~/Library/Application Support/Claude/claude_desktop_config.json (macOS), %APPDATA%\Roaming\Claude\claude_desktop_config.json (Windows), ~/.config/claude-desktop/claude_desktop_config.json (Linux) |
| Cursor | .cursor/mcp.json in project root (project) or ~/.cursor/mcp.json (global) |
| Windsurf | ~/.codeium/windsurf/mcp_config.json |
Local development (monorepo)
If you're working within the ng-diagram monorepo:
cd tools/mcp-server
pnpm install
pnpm build
Then configure with the local path:
{
"mcpServers": {
"ng-diagram-docs": {
"command": "node",
"args": ["/absolute/path/to/ng-diagram/tools/mcp-server/dist/index.js"]
}
}
}
API Reference
Tool: search_docs
Search through ng-diagram documentation sections. Returns full section content split by ## headings. Supports exact phrases, multi-word queries, and individual keywords.
Parameters:
query(string, required): Search query to find relevant documentationlimit(number, optional): Max results to return (default: 10)
Tool: get_doc
Retrieve the full content of a documentation page by its path. Returns the complete markdown body with frontmatter stripped.
Parameters:
path(string, required): Relative path from docs root (e.g.,"guides/palette.mdx"). Use paths fromsearch_docsresults.
Tool: search_symbols
Search through ng-diagram public API symbols (classes, functions, interfaces, types, constants, enums).
Parameters:
query(string, required): Search query (e.g.,"Diagram","provideNg","Edge")kind(string, optional): Filter by symbol kind (class,function,interface,type,const,enum)limit(number, optional): Max results to return (default: 10)
Tool: get_symbol
Retrieve full API details for a specific ng-diagram symbol by exact name. Returns kind, full signature, jsDoc (if available), and a ready-to-use import statement.
Parameters:
name(string, required): Exact symbol name (case-sensitive). Use names fromsearch_symbolsresults.
Development
Commands
# Development
pnpm dev # Run with auto-reload (uses monorepo paths)
# Testing
pnpm test # Run all tests
pnpm test:watch # Run in watch mode
# Building
pnpm build # Compile TypeScript + bundle docs & API report into dist/data/
For detailed architecture and adaptation instructions, see GUIDE.md.
License
Apache-2.0 - Part of the ng-diagram project
Initial PoC by Pawel Kubiak
Finished and built with ❤️ by the Synergy Codes team
Servidores relacionados
Scout Monitoring MCP
patrocinadorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
patrocinadorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
OPNsense MCP Server
A comprehensive MCP server for managing OPNsense firewalls, offering over 300 tools for configuration and monitoring.
MCP Router
A unified gateway for routing requests to multiple Model Context Protocol servers.
paytoll-mcp
Access 20+ DeFi, crypto, and AI endpoints through micro-payments. Get Aave rates, build DeFi transactions, fetch crypto prices, resolve ENS names, search Twitter, and query LLMs - all paid per-call with USDC on Base. No API keys needed, payment is the auth
PydanticRPC
A Python library for building gRPC/ConnectRPC services with Pydantic models, featuring automatic protobuf generation and AI assistant tool exposure.
GhostQA
GhostQA sends AI personas through your application — they look at the screen, decide what to do, and interact like real humans. No test scripts. No selectors. You describe personas and journeys in YAML, and GhostQA handles the rest.
Code Runner MCP
Execute JavaScript and Python code in a secure sandbox. Supports Deno for JS/TS and Pyodide for Python, with configurable permissions.
PyAutoGUI Server
An MCP server for PyAutoGUI that enables automated GUI testing and control, including mouse and keyboard actions, screenshots, and screen information.
mcprouter
A proxy for routing requests to remote MCP servers.
UUIDv7 Generator
A server for generating version 7 universally unique identifiers (UUIDv7).
Cisco NSO MCP Server
An MCP server for Cisco NSO that exposes its data and operations as MCP primitives.