Enterprise Architect MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| EA_LOCALE | No | BCP 47 locale tag (e.g., 'sk', 'pl', 'hu', 'de') used for locale-aware name ordering in ea_get_scenarios. Defaults to the host system locale. | |
| EA_QEA_PATH | No | Path to the .qea file (or directory containing the newest .qea file) to open. If not provided, the server will prompt for a path when first queried. | |
| EA_MCP_CONFIG_DIR | No | Directory where the server stores remembered answers and configuration. Defaults to platform-specific application data directory. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server provides read-only access to a Sparx Enterprise Architect analysis model (.qea export).
Response shape contract:
Every response is structured JSON — no tool returns unstructured text, even for empty results.
Every collection carries totalMatched, returned, truncated (always present, even when truncated: false).
_meta.sourceTables lists which database tables the response draws from.
ea_get_diagram_elements returns per-collection metadata in _meta.elements and _meta.connectors (not top-level) because it returns two independent collections.
The enumeration tools (ea_search, ea_list_elements, ea_list_diagrams) return a window: they accept offset, echo it back, and order results deterministically. That order is stable but artificial — not alphabetical and not the analyst's tree order — so never infer meaning from adjacency.
When truncated: true, a continuation object provides the exact call that returns the next window. Following it repeatedly visits every matching row once and terminates; do not raise limit to fetch a large set in one call.
When far more rows match than one window holds, a breakdown object reports how they distribute. Every key in it is a parameter name and every value is an argument value, so a breakdown is an invitation to narrow the next call rather than page through the set. Each axis reports totalMatched/returned/truncated for its own list of distinct values, not for rows, and rows carrying no value on that axis are not counted — so the counts need not sum to the response's totalMatched.
Not-found errors (non-existent element/package/diagram ID) return isError: true with structured JSON — distinct from a valid empty result.
When reporting that something is absent from the model, cite totalMatched, truncated and _meta.sourceTables from the response that supports the claim. An empty result is not evidence of absence unless the subject is confirmed to exist.
Text fields (Note, Notes, notes) use EA's HTML dialect: lists (, , ), bold (), anchors (). No div/span/script. Structural escapes (< > &) are preserved. Embedded model links ($element://, $diagram://) appear as targets. Character entities (á etc.) are decoded to characters.
Use ea_* tools when the user asks about:
Business analysis, use cases, requirements, screens, classes, or domain model elements
Application architecture, components, interfaces, or their relationships
Use case scenarios / flows — all step attributes (trigger, uses, result, link) and scenario notes are returned
How elements relate to each other — connectors include feature-link resolution showing which attribute or operation each end attaches to
Package/module structure of the analysis model
Diagram contents — elements AND connectors (including implied connectors with both ends on the diagram)
Which diagrams an element appears on (returned by ea_get_element)
Constraints and business rules on elements (pre-conditions, post-conditions, invariants, process rules)
Resolving analyst references (GUIDs, names) to model nodes
What database tables and columns the model export contains
Which export file the server has open
Do NOT use ea_* tools for:
Azure DevOps work items, bugs, tasks, PRs, or repositories (use ado server instead)
Source code, builds, or deployments
Typical workflow: ea_search → ea_get_element → ea_get_connectors / ea_get_scenarios Reference resolution: ea_resolve (GUID or name) → ea_get_element or ea_get_diagram_elements Discovery: ea_list_diagrams to find diagrams, ea_get_schema to explore the model's tables Provenance: ea_get_model_info to identify the export file
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| ea_searchA | Search Enterprise Architect model elements by name, alias, notes, attribute names/notes, operation names/notes, or constraint notes. Matching is case- and diacritic-insensitive across European Latin alphabets and sees through entity-encoded text. |
| ea_search_and_any_ofA | Search Enterprise Architect model elements the same way |
| ea_get_elementA | Get full details of an Enterprise Architect element by its ID, including its |
| ea_list_elementsA | List elements within a package, optionally filtered by object type. |
| ea_get_connectorsA | Get all relationships (connectors) for a given element. |
| ea_get_package_treeA | Navigate the package hierarchy. Without parameters, returns top-level |
| ea_get_diagram_elementsA | Get all elements and connectors placed on a specific diagram: the |
| ea_list_diagramsA | List diagrams in the model, optionally filtered by package, diagram type, and/or name substring. Each entry in |
| ea_get_scenariosA | Get use case scenario flows for an element. |
| ea_get_schemaA | List the model's database tables in |
| ea_get_model_infoA | Report which .qea export file the server has open: |
| ea_resolveA | Resolve an analyst reference (braced GUID or plain name) to model candidates: the input is echoed as |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 12 tools
Most tools target clearly distinct resources (packages, elements, connectors, diagrams, scenarios, schema), but `ea_search` and `ea_search_and_any_of` are effectively the same operation with one extra filter, and their descriptions spend most of their length explaining how they differ from each other. That is a parameter variation surfaced as a separate tool, which invites misselection. `ea_get_element` vs `ea_list_elements` is distinguishable, but the search pair drags the set down.
All names share the `ea_` prefix and follow a verb_noun pattern (`ea_get_element`, `ea_list_diagrams`, `ea_get_connectors`), which is highly predictable. Minor deviations: `ea_resolve` has no object noun, and `ea_search_and_any_of` encodes a parameter in the tool name rather than following the resource+action convention.
Twelve tools is a well-scoped surface for a read-only model browser, and each maps to a real artifact type in the .qea model. The count would be a clean 5 if the two near-duplicate search tools were merged into one with an optional filter.
The surface covers the main exploration paths: package hierarchy, element search and detail, element listing, connectors, diagram listing and contents, scenario flows, raw schema access, reference resolution, and export identity. Gaps remain around tagged values, standalone constraint/attribute/operation lookups, and any write capability, though a read-only inspector scope makes the latter a defensible design choice.