Enterprise Architect MCP Server
A read-only MCP server that gives AI agents access to Sparx Enterprise Architect models, enabling search, navigation, and reading of elements, packages, scenarios, and connectors from .qea exports without a running EA instance.
README
Enterprise Architect MCP Server
A read-only Model Context Protocol (MCP) server for Sparx Enterprise Architect .qea exports. Gives AI agents access to EA analysis models — search elements, navigate packages, read use case scenarios, and traverse connectors — without a running EA instance.
Works with any MCP client (VS Code / GitHub Copilot, Claude Desktop, Cursor, Windsurf). Reads the .qea SQLite export directly, never writes to it, and every response carries completeness metadata so an agent can tell a truncated answer from a complete one.
Keywords: MCP server · Sparx Enterprise Architect · .qea · UML · use case scenarios · package tree · connectors · diagrams · model search · AI agent tooling
Prerequisites
- Node.js 22+ (uses the built-in
node:sqlitemodule) - A
.qeafile exported from Sparx Enterprise Architect
Installation
VS Code / GitHub Copilot
The quickest route is the Install in VS Code badge at the top of this page. There is nothing to
fill in: the server asks for your .qea path the first time an agent queries the model, and
remembers the answer for next time.
To register it from a terminal instead, which is handier for scripting or a shared setup, use one CLI call:
code --add-mcp '{\"name\":\"enterprise-architect\",\"command\":\"npx\",\"args\":[\"-y\",\"enterprise-architect-mcp\"]}'
The \" sequences are for the code shim, which re-parses the argument after PowerShell has
already handed it over — escaping with PowerShell's own backtick, or using --%, still arrives with
the quotes stripped. The single quotes stop PowerShell from touching the string. On bash or zsh the
plain form works instead:
code --add-mcp '{"name":"enterprise-architect","command":"npx","args":["-y","enterprise-architect-mcp"]}'
To configure it by hand instead, add to your project's .vscode/mcp.json:
{
"servers": {
"enterprise-architect": {
"type": "stdio",
"command": "npx",
"args": ["-y", "enterprise-architect-mcp"]
}
}
}
Nothing personal is in that file, so it can be committed as-is and each developer answers the prompt
once on their own machine. If you would rather not be asked at all, name the path up front — as a
trailing argument, in an env block, or in a gitignored .env in your workspace root:
EA_QEA_PATH=C:\EA\exports\model.qea
Claude Desktop
The same path-less configuration goes in claude_desktop_config.json (%APPDATA%\Claude\ on
Windows, ~/Library/Application Support/Claude/ on macOS):
{
"mcpServers": {
"enterprise-architect": {
"command": "npx",
"args": ["-y", "enterprise-architect-mcp"]
}
}
}
Claude Desktop does not run the server from a workspace folder, so a .env there is not reliable.
If the client cannot show the path prompt at all, the server says so instead of failing silently, and
you can name the path in an env block:
"env": { "EA_QEA_PATH": "C:\\EA\\exports\\model.qea" }
To run straight from source instead of npm, use "args": ["-y", "github:mm6502/enterprise-architect-mcp"].
Configuration
The server does not need a path to start. It looks for one when an agent first queries the model, and takes the first source that actually opens:
- CLI argument —
mcp-server-ea C:\path\to\model.qea - Environment variable —
EA_QEA_PATH(set in anenvblock or system env) .envfile —EA_QEA_PATH=...in a.envfile in the working directory- A remembered answer — whatever you last told the prompt
- The prompt — the client asks, and a working answer is remembered for next time
A source naming a path that cannot be opened is skipped rather than fatal, so the next source gets
its turn. The reason goes to the server log, and once some later source opens, ea_get_model_info
lists it under ignored. That is deliberate — a sample value left in an env block would otherwise
outrank every answer you could give, and answering the prompt would never help. The cost is that a
genuine typo is demoted quietly, so check ea_get_model_info if the server opens a different model
than you expected.
Skipping is only worth it when an answer can take the skipped source's place, so two cases stay fatal: a path you passed on the command line (that is this run's explicit instruction, not a stale default), and any broken source in a client that cannot show a prompt — falling through there would quietly open some other model instead of telling you.
Answers are remembered per machine, in %APPDATA%\enterprise-architect-mcp\ on Windows,
~/Library/Application Support/enterprise-architect-mcp/ on macOS, and $XDG_CONFIG_HOME (or
~/.config) elsewhere; set EA_MCP_CONFIG_DIR to keep that file somewhere else. A path that does
not open is never remembered, so asking again is enough to correct a mistyped answer.
If the path points to a directory, the server automatically picks the newest .qea file by
modification time. Pointing at your export folder means new exports are picked up without
reconfiguring anything.
Naming the path up front
If you would rather never see the prompt — a CI job, a shared image, or simply a preference — put
the path in a gitignored .env in the working directory. Copy the template:
Copy-Item .env.example .env
Then set your local path in .env:
EA_QEA_PATH=C:\EA\exports\model.qea
A directory works too — the newest .qea file in it is used:
EA_QEA_PATH=C:\EA\exports\
The .env file is gitignored — each developer sets their own path without affecting the shared
config. It is also never committed, which is why it is the one route every new user has to set up by
hand; answering the prompt once is what makes that unnecessary.
Available Tools
| Tool | Description |
|---|---|
ea_search |
Full-text search across elements, attributes, operations, and constraints. Case-insensitive across the Slovak alphabet, decodes entity-encoded text. |
ea_get_element |
Full element detail — attributes, operations, diagrams it appears on, constraints (pre/post/invariant/process). Flags whether attribute multiplicity is contrastive. |
ea_list_elements |
List elements in a package, optionally filtered by type. Reports total count with pagination. |
ea_get_connectors |
Relationships for an element — includes feature-link resolution (which attribute/operation each end attaches to). |
ea_get_diagram_elements |
Elements and connectors on a diagram, including implied connectors and feature links. |
ea_get_scenarios |
Use case scenario steps with all attributes (trigger, uses, result, link, state) and scenario notes. |
ea_get_package_tree |
Navigate the package hierarchy with recursive depth. |
ea_list_diagrams |
Search diagrams by name and package. |
ea_resolve |
Resolve analyst references (braced GUID or plain name) to model candidates with full package path. Falls back to name-prefix matching for analyst codes; every candidate carries a match of guid, exact, or prefix. |
ea_get_schema |
Introspect the model's database schema — tables, columns, indexes, rowid alias. |
ea_get_model_info |
Identity of the open export — file name, size, modification date, server version, and which configuration source the path came from. |
Response contract
Every tool returns structured JSON with:
_meta.sourceTables— which database tables were consultedtotalMatched/returned/truncated— completeness metadata on every collectioncontinuation— exact call to retrieve the full set when truncatedisError: true+{ error: "not_found" }for non-existent subjects (distinct from empty results)
Two fields exist to stop an inexact answer from being read as a confirmed one:
ea_resolve—matchis always present; onlyprefixis an inexact matchea_get_element—_meta.attributes.multiplicityIsUniform: truemeans the element's attributes show no multiplicity contrast, so1..1is not evidence of requiredness
Example Prompts
Once connected, try prompts like:
- "Search for elements related to 'legal entity'"
- "Show me the package structure under the root"
- "What are the use case scenarios for UC_SUBMIT_APPLICATION?"
- "What elements and connectors are on diagram 0103 Application Processing?"
- "Resolve the reference {3F2A7C10-5B4D-4e8a-9C1F-27D6E8B0A4F3}"
- "What columns does t_connector have?"
- "Which diagrams does element a7680 appear on?"
License
Copyright (c) 2026 Michal Mracka
Licensed under the EUPL — see LICENSE for the full text.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。