drawio-mcp
Enables local creation and maintenance of editable draw.io XML diagram files, with tools for inspecting, validating, and updating diagrams.
README
Local Draw.io MCP
本地 STDIO MCP 服务,用于让 Codex 直接创建和维护可编辑的 draw.io XML 文件。
工具
server_info:查看版本及允许访问的目录。create_diagram:根据分组、节点和连线创建.drawio。inspect_diagram:读取第一页的节点、连线和几何信息。validate_diagram:检查重复 ID、无效坐标、越界、失效连线和节点重叠。update_diagram:添加节点/连线,或修改已有节点。
文件中的文字只作为数据处理,不作为 MCP 指令执行。
本地运行
npm install
npm test
npm start
npm start 使用 STDIO,正常启动后会等待 MCP 客户端连接,不会显示交互式界面。
接入 Codex
在 Codex 桌面版中打开“设置 → MCP servers → Add server”,选择 STDIO,然后填写:
- Command:
C:\Program Files\nodejs\node.exe - Arguments:本项目的
src\server.mjs绝对路径 - Working directory:本项目目录
也可复制 config.example.toml 的内容到 ~/.codex/config.toml,修改其中路径后重启 Codex。
在 Codex CLI 中可运行:
codex mcp list
在会话输入框中可使用 /mcp 查看连接状态。
路径限制
通过以下环境变量控制访问范围,Windows 下使用分号分隔多个目录:
DRAWIO_MCP_READ_ROOTSDRAWIO_MCP_WRITE_ROOTS
未配置时仅允许访问本 MCP 项目目录。建议只开放项目工作区,不要把整个磁盘配置为可写。
调用示例
连接后可直接告诉 Codex:
使用 drawio MCP 创建一个包含数据平台层、预警引擎层和响应反馈层的
主动预警系统.drawio,完成后运行validate_diagram校验。
创建工具默认不会覆盖已有文件;需要覆盖时必须显式传入 overwrite=true。
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.