# Enterprise Architect [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/mm6502/enterprise-architect-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 627  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/enterprise-architect

## Description
Read-only search and navigation of Sparx Enterprise Architect .qea model exports

## Tools
Capabilities this server exposes over MCP:

- **ea_search** — Full-text search across elements, attributes, operations, and constraints. Takes `requiredTerms`, a list of terms every one of which must occur somewhere in an element's searchable text (conjunction) — terms need not share a field, but sharing one ranks higher. `boostAnyOf` is an optional list of f…
- **ea_search_and_any_of** — Same matching as `ea_search`, plus `andAnyOf`: an optional list of terms where a result must satisfy `requiredTerms` **and** at least one `andAnyOf` term — narrowing rather than reordering. Use this instead of `ea_search` when an alternative term should exclude, not just promote.
- **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. Windowed: reports the total and pages with `offset`.
- **ea_get_connectors** — Relationships for an element — includes feature-link resolution (which attribute/operation each end attaches to). `Generalization` connectors carry a `role` (`child`/`parent`) on each end; filter `connectorType: "Generalization"` with `direction: "incoming"`/`"outgoing"` to list an element's direct…
- **ea_get_diagram_elements** — Elements and connectors on a diagram, including implied connectors and feature links. `elements` includes free-text `Note` diagram objects, which often carry a legend or abbreviation definitions.
- **ea_get_scenarios** — Use case scenario steps with all attributes (trigger, uses, result, link, state) and scenario notes. A step's `uses` may name a business rule or constraint by code — that code isn't independently searchable, it's retrieved via `ea_get_element` on the same element.
- **ea_get_package_tree** — Navigate the package hierarchy with recursive depth.
- **ea_list_diagrams** — Search diagrams by name, type and package. Windowed like the tools above.
- **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.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "enterprise-architect": {
    "command": "npx",
    "args": ["-y","enterprise-architect-mcp"]
  }
}
```

## Documentation

## What Enterprise Architect does

Enterprise Architect provides MCP access to Sparx Enterprise Architect `.qea` model exports. It is designed for read-only analysis: agents can inspect model content, but the server never writes to the export. The server can search across element names and text, attributes, operations, and constraints; retrieve complete element details; inspect use case scenarios; and navigate the package, diagram, and connector structure.

Responses include completeness metadata, allowing an agent to distinguish a complete result from one that has been truncated or paginated. The server also exposes model identity details such as the selected file name, size, modification time, and server version.

## How it works

The server reads the `.qea` export as a SQLite database and communicates with MCP clients over its standard input/output configuration. It does not require a running Sparx Enterprise Architect instance. A model path can be supplied as a command-line argument, through `EA_QEA_PATH`, in a local `.env` file, or through a client prompt shown when the model is first queried.

When a directory is supplied instead of a file, the newest `.qea` file in that directory is selected by modification time. Invalid path sources can be skipped in favor of another configured source, while an explicit command-line path remains an error if it cannot be opened. The selected model and skipped sources can be reviewed with `ea_get_model_info`.

## Setup and configuration

Node.js 22 or newer is required because the server uses the built-in `node:sqlite` module. Install it through an MCP client with the npm command `npx -y enterprise-architect-mcp`, or run directly from the GitHub source with `npx -y github:mm6502/enterprise-architect-mcp`.

A minimal stdio configuration uses the server name `enterprise-architect`, command `npx`, and argument `-y enterprise-architect-mcp`. VS Code can register this with `code --add-mcp`, while Claude Desktop uses its `claude_desktop_config.json` configuration file. The model path can be set with `EA_QEA_PATH`; a `.env` file in the working directory is useful for local or automated setups. Remembered paths are stored per machine, and `EA_MCP_CONFIG_DIR` can relocate that configuration directory.

## Tools and capabilities

- `ea_search` performs full-text matching with required terms, optional ranking terms, package scoping, match evidence, and snippets.
- `ea_search_and_any_of` requires the required terms plus at least one term from an additional narrowing list.
- `ea_get_element` returns attributes, operations, diagrams, and constraints, including preconditions, postconditions, invariants, and process constraints.
- `ea_list_elements` lists package contents with optional type filtering and offset-based paging.
- `ea_get_connectors` retrieves relationships and resolves links to the attributes or operations at each end. Generalization relationships can be filtered by direction.
- `ea_get_diagram_elements` returns diagram elements, connectors, implied connectors, feature links, and free-text note objects.
- `ea_get_scenarios` returns use case steps and their trigger, uses, result, link, state, and notes fields.
- `ea_get_package_tree`, `ea_list_diagrams`, and `ea_resolve` support package navigation, diagram lookup, and resolution of GUIDs, names, and analyst codes.
- `ea_get_schema` exposes tables, columns, indexes, and rowid aliases; `ea_get_model_info` reports information about the open export.

## Limitations and notes

The server is read-only and works with `.qea` exports rather than a live Enterprise Architect instance. Several listing tools are windowed and require paging through offsets for larger result sets. A scenario step may reference a business rule or constraint by code; retrieving that referenced element requires a separate `ea_get_element` call on the same element. Analyst references that are not exact matches may resolve through name-prefix matching, with each candidate labeled by its match type.

_Full upstream README: https://allmcps.com/mcp/enterprise-architect/readme_

