Enterprise Architect MCP Server
Enterprise Architect MCP Server
用于 Sparx Enterprise Architect .qea 导出的只读 MCP 服务器。让 AI 代理能够访问 EA 分析模型——搜索元素、导航包、读取用例场景以及遍历连接器——而无需运行 EA 实例。
先决条件
Node.js 22+(使用内置的
node:sqlite模块)从 Sparx Enterprise Architect 导出的
.qea文件
安装
添加到项目的 .vscode/mcp.json:
{
"servers": {
"enterprise-architect": {
"type": "stdio",
"command": "npx",
"args": ["-y", "github:DITEC-Mracka/enterprise-architect-mcp"],
"env": {
"EA_QEA_PATH": "<path-to-your-qea-file-or-directory>"
}
}
}
}将 <path-to-your-qea-file-or-directory> 替换为你的实际 .qea 文件路径。
配置
服务器使用回退链解析 .qea 路径(第一个匹配项优先):
CLI 参数 ——
mcp-server-ea C:\path\to\model.qea环境变量 ——
EA_QEA_PATH(在mcp.json的env块或系统环境中设置).env文件 —— 在工作目录的.env文件中设置EA_QEA_PATH=...
如果路径指向目录,服务器会自动按修改时间选择最新的 .qea 文件。
使用 .env 进行设置(推荐团队使用)
# Copy the template
cp .env.example .env
# Edit .env with your local path
EA_QEA_PATH=D:\EAExporty\projekt\architektura.qea.env 文件已被 gitignore——每位开发者设置自己的路径,不会影响共享配置。
可用工具
工具 | 描述 |
| 跨元素、属性、操作和约束进行全文搜索。对斯洛伐克字母表不区分大小写,解码实体编码文本。 |
| 完整的元素详情——属性、操作、出现的图表、约束(前置/后置/不变量/流程)。标记属性多重性是否具有对比性。 |
| 列出包中的元素,可按类型过滤。报告总数并支持分页。 |
| 元素的关系——包括特性链接解析(每个端点连接到哪个属性/操作)。 |
| 图表上的元素和连接器,包括隐含连接器和特性链接。 |
| 用例场景步骤及其所有属性(触发器、用途、结果、链接、状态)和场景备注。 |
| 以递归深度导航包层次结构。 |
| 按名称和包搜索图表。 |
| 将分析师引用(花括号 GUID 或纯名称)解析为带有完整包路径的模型候选。对分析师代码回退到名称前缀匹配;每个候选都带有 |
| 检查模型的数据库架构——表、列、索引、rowid 别名。 |
| 当前打开的导出文件的标识信息——文件名、大小、修改日期、服务器版本。 |
响应契约
每个工具都返回结构化 JSON,包含:
_meta.sourceTables—— 查询了哪些数据库表totalMatched/returned/truncated—— 每个集合的完整性元数据continuation—— 被截断时用于获取完整集合的确切调用isError: true+{ error: "not_found" }—— 用于不存在的对象(与空结果区分)
存在两个字段,防止不精确的答案被当作已确认的答案:
ea_resolve——match始终存在;只有prefix是不精确匹配ea_get_element——_meta.attributes.multiplicityIsUniform: true表示元素的属性没有多重性对比,因此1..1不能作为必填性的证据
示例提示词
连接后,可以尝试如下提示词:
"搜索与 'právnická osoba' 相关的元素"
"显示根目录下的包结构"
"UC_FEO_2027 的用例场景是什么?"
"图表 0103 Spracovanie eFORM 上有哪些元素和连接器?"
"解析引用 {94291B11-C990-482e-BF3F-19EFF04FB37E}"
"t_connector 有哪些列?"
"元素 a7680 出现在哪些图表上?"
This server cannot be installed
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 Connectors
MCP server for AI access to Swagger by SmartBear.
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
Official remote MCP server for Archivist AI TTRPG campaign memory: characters, sessions, and more.
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/mm6502/enterprise-architect-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server