Enterprise Architect MCP Server
Enterprise Architect MCP Server
Ein schreibgeschützter Model Context Protocol (MCP)-Server für Sparx Enterprise Architect .qea-Exporte. Gibt KI-Agenten Zugriff auf EA-Analysemodelle – Elemente suchen, Pakete navigieren, Anwendungsfallszenarien lesen und Verbinder durchlaufen – ohne eine laufende EA-Instanz.
Funktioniert mit jedem MCP-Client (VS Code / GitHub Copilot, Claude Desktop, Cursor, Windsurf). Liest den .qea-SQLite-Export direkt, schreibt nie hinein, und jede Antwort trägt Vollständigkeitsmetadaten, damit ein Agent eine abgeschnittene Antwort von einer vollständigen unterscheiden kann.
Keywords: MCP server · Sparx Enterprise Architect · .qea · UML · use case scenarios · package tree · connectors · diagrams · model search · AI agent tooling
Voraussetzungen
Node.js 22+ (verwendet das eingebaute
node:sqlite-Modul)Eine
.qea-Datei, die aus Sparx Enterprise Architect exportiert wurde
Related MCP server: jgs-sysmlv2-api-mcp
Installation
VS Code / GitHub Copilot
Der schnellste Weg ist das Install in VS Code-Abzeichen oben auf dieser Seite. Es gibt nichts auszufüllen: Der Server fragt nach Ihrem .qea-Pfad, wenn ein Agent das Modell zum ersten Mal abfragt, und merkt sich die Antwort für das nächste Mal.
Um es stattdessen über ein Terminal zu registrieren, was für Skripte oder eine gemeinsame Einrichtung praktischer ist, verwenden Sie einen CLI-Aufruf:
code --add-mcp '{\"name\":\"enterprise-architect\",\"command\":\"npx\",\"args\":[\"-y\",\"enterprise-architect-mcp\"]}'Die \"-Sequenzen sind für den code-Shim, der das Argument neu parst, nachdem PowerShell es bereits übergeben hat – das Escapen mit PowerShells eigenem Backtick oder die Verwendung von --% kommt immer noch mit entfernten Anführungszeichen an. Die einfachen Anführungszeichen verhindern, dass PowerShell die Zeichenfolge verändert. Unter bash oder zsh funktioniert die einfache Form stattdessen:
code --add-mcp '{"name":"enterprise-architect","command":"npx","args":["-y","enterprise-architect-mcp"]}'Um es stattdessen von Hand zu konfigurieren, fügen Sie Folgendes zu .vscode/mcp.json Ihres Projekts hinzu:
{
"servers": {
"enterprise-architect": {
"type": "stdio",
"command": "npx",
"args": ["-y", "enterprise-architect-mcp"]
}
}
}In dieser Datei stehen keine persönlichen Daten, sodass sie unverändert eingecheckt werden kann und jeder Entwickler die Eingabeaufforderung einmal auf seinem eigenen Rechner beantwortet. Wenn Sie lieber gar nicht gefragt werden möchten, geben Sie den Pfad von vornherein an – als nachgestelltes Argument, in einem env-Block oder in einer gitignored .env-Datei im Stammverzeichnis Ihres Workspace:
EA_QEA_PATH=C:\EA\exports\model.qeaClaude Desktop
Die gleiche pfadlose Konfiguration kommt in claude_desktop_config.json (%APPDATA%\Claude\ unter Windows, ~/Library/Application Support/Claude/ unter macOS):
{
"mcpServers": {
"enterprise-architect": {
"command": "npx",
"args": ["-y", "enterprise-architect-mcp"]
}
}
}Claude Desktop führt den Server nicht aus einem Workspace-Ordner aus, daher ist eine .env dort nicht zuverlässig. Wenn der Client die Pfadabfrage überhaupt nicht anzeigen kann, teilt der Server dies mit, anstatt still zu scheitern, und Sie können den Pfad in einem env-Block angeben:
"env": { "EA_QEA_PATH": "C:\\EA\\exports\\model.qea" }Um direkt aus dem Quellcode statt aus npm zu laufen, verwenden Sie "args": ["-y", "github:mm6502/enterprise-architect-mcp"].
Konfiguration
Der Server benötigt keinen Pfad zum Starten. Er sucht nach einem, wenn ein Agent das Modell zum ersten Mal abfragt, und nimmt die erste Quelle, die tatsächlich geöffnet werden kann:
CLI-Argument —
mcp-server-ea C:\path\to\model.qeaUmgebungsvariable —
EA_QEA_PATH(gesetzt in einemenv-Block oder in der Systemumgebung).env-Datei —EA_QEA_PATH=...in einer.env-Datei im ArbeitsverzeichnisEine gemerkte Antwort — was auch immer Sie zuletzt der Eingabeaufforderung mitgeteilt haben
Die Eingabeaufforderung — der Client fragt, und eine funktionierende Antwort wird für das nächste Mal gemerkt
Eine Quelle, die einen Pfad nennt, der nicht geöffnet werden kann, wird übersprungen statt als fatal behandelt, sodass die nächste Quelle an der Reihe ist. Der Grund geht in das Serverprotokoll, und sobald eine spätere Quelle geöffnet wird, listet ea_get_model_info sie unter ignored auf. Das ist beabsichtigt – ein Beispielwert in einem env-Block würde sonst jede Antwort, die Sie geben könnten, übertrumpfen, und das Beantworten der Eingabeaufforderung würde nie helfen. Der Preis ist, dass ein echter Tippfehler stillschweigend herabgestuft wird. Überprüfen Sie also ea_get_model_info, wenn der Server ein anderes Modell öffnet als erwartet.
Das Überspringen lohnt sich nur, wenn eine Antwort den Platz der übersprungenen Quelle einnehmen kann, daher bleiben zwei Fälle fatal: ein Pfad, den Sie in der Befehlszeile übergeben haben (das ist die explizite Anweisung dieses Laufs, keine veraltete Standardeinstellung), und jede defekte Quelle in einem Client, der keine Eingabeaufforderung anzeigen kann – ein Durchfallen würde dort stillschweigend ein anderes Modell öffnen, anstatt es Ihnen mitzuteilen.
Antworten werden pro Rechner gespeichert, in %APPDATA%\enterprise-architect-mcp\ unter Windows, ~/Library/Application Support/enterprise-architect-mcp/ unter macOS und $XDG_CONFIG_HOME (oder ~/.config) anderswo; setzen Sie EA_MCP_CONFIG_DIR, um diese Datei woanders zu speichern. Ein Pfad, der nicht geöffnet werden kann, wird nie gespeichert. Daher reicht es, erneut zu fragen, um eine falsch getippte Antwort zu korrigieren.
Wenn der Pfad auf ein Verzeichnis zeigt, wählt der Server automatisch die neueste .qea-Datei nach Änderungszeit aus. Wenn Sie auf Ihren Exportordner zeigen, werden neue Exporte ohne Neukonfiguration übernommen.
Den Pfad im Voraus angeben
Wenn Sie die Eingabeaufforderung lieber nie sehen möchten – ein CI-Job, ein gemeinsames Image oder einfach eine Präferenz – legen Sie den Pfad in eine gitignored .env-Datei im Arbeitsverzeichnis. Kopieren Sie die Vorlage:
Copy-Item .env.example .envSetzen Sie dann Ihren lokalen Pfad in .env:
EA_QEA_PATH=C:\EA\exports\model.qeaEin Verzeichnis funktioniert auch – die neueste .qea-Datei darin wird verwendet:
EA_QEA_PATH=C:\EA\exports\Die .env-Datei ist gitignored – jeder Entwickler setzt seinen eigenen Pfad, ohne die gemeinsame Konfiguration zu beeinflussen. Sie wird auch nie eingecheckt, weshalb sie der einzige Weg ist, den jeder neue Benutzer von Hand einrichten muss; das einmalige Beantworten der Eingabeaufforderung macht das überflüssig.
Verfügbare Werkzeuge
Tool | Beschreibung |
| Volltextsuche über Elemente, Attribute, Operationen und Einschränkungen. Groß-/Kleinschreibung wird über das slowakische Alphabet hinweg ignoriert, dekodiert entity-kodierten Text. |
| Vollständige Elementdetails – Attribute, Operationen, Diagramme, auf denen es erscheint, Einschränkungen (pre/post/invariant/process). Kennzeichnet, ob die Attribut-Multiplizität kontrastiv ist. |
| Listet Elemente in einem Paket auf, optional nach Typ gefiltert. Meldet die Gesamtzahl mit Paginierung. |
| Beziehungen für ein Element – einschließlich Feature-Link-Auflösung (an welches Attribut/welche Operation jedes Ende angehängt ist). |
| Elemente und Verbinder in einem Diagramm, einschließlich impliziter Verbinder und Feature-Links. |
| Anwendungsfallszenario-Schritte mit allen Attributen (trigger, uses, result, link, state) und Szenario-Notizen. |
| Navigieren Sie in der Pakethierarchie mit rekursiver Tiefe. |
| Diagramme nach Name und Paket durchsuchen. |
| Löst Analystenreferenzen (GUID in geschweiften Klammern oder einfacher Name) zu Modellkandidaten mit vollständigem Paketpfad auf. Fällt auf Namenspräfix-Abgleich für Analystencodes zurück; jeder Kandidat trägt einen |
| Untersucht das Datenbankschema des Modells – Tabellen, Spalten, Indizes, rowid-Alias. |
| Identität des geöffneten Exports – Dateiname, Größe, Änderungsdatum, Serverversion und aus welcher Konfigurationsquelle der Pfad stammt. |
Antwortvertrag
Jedes Werkzeug gibt strukturiertes JSON zurück mit:
_meta.sourceTables— welche Datenbanktabellen konsultiert wurdentotalMatched/returned/truncated— Vollständigkeitsmetadaten für jede Sammlungcontinuation— genauer Aufruf, um die vollständige Menge abzurufen, wenn abgeschnittenisError: true+{ error: "not_found" }für nicht existierende Subjekte (unterscheidet sich von leeren Ergebnissen)
Zwei Felder verhindern, dass eine ungenaue Antwort als bestätigt gelesen wird:
ea_resolve—matchist immer vorhanden; nurprefixist ein ungenauer Trefferea_get_element—_meta.attributes.multiplicityIsUniform: truebedeutet, dass die Attribute des Elements keinen Multiplizitätskontrast zeigen, also1..1kein Beleg für Erforderlichkeit ist
Beispielaufforderungen
Sobald verbunden, versuchen Sie Aufforderungen wie:
"Suche nach Elementen, die mit 'legal entity' zusammenhängen"
"Zeig mir die Paketstruktur unter dem Root"
"Was sind die Anwendungsfallszenarien für UC_SUBMIT_APPLICATION?"
"Welche Elemente und Verbinder sind auf Diagramm 0103 Application Processing?"
"Löse die Referenz {3F2A7C10-5B4D-4e8a-9C1F-27D6E8B0A4F3} auf"
"Welche Spalten hat t_connector?"
"Auf welchen Diagrammen erscheint Element a7680?"
Lizenz
Copyright (c) 2026 Michal Mracka
Lizenziert unter der EUPL – siehe LICENSE für den vollständigen Text.
Available Tools
12 toolsea_get_connectorsARead-only
Get all relationships (connectors) for a given element. connectors lists what the element is connected to and how (Realisation, Dependency, Association, etc.), each entry naming its source and dest ends. For Generalization connectors, source is always the specific (child) type and dest the general (parent) type — each end also carries a role making this explicit without needing to reason about direction. Filter by connectorType and direction to list an element's direct children (incoming Generalization) or direct parent(s) (outgoing Generalization) without a diagram. Feature links show which specific attribute or operation each end attaches to.
Inputs: elementId (required), direction, connectorType.
ea_get_diagram_elementsARead-only
Get all elements and connectors placed on a specific diagram: the diagram itself, plus elements and connectors. elements already includes free-text Note diagram objects, which often carry a legend or abbreviation definitions an agent would otherwise miss. Connectors include feature-link resolution showing which attribute or operation each end attaches to. The connector list is the union of explicit t_diagramlinks rows and implied connectors (both ends on the diagram).
Inputs: diagramId (required).
ea_get_elementARead-only
Get full details of an Enterprise Architect element by its ID, including its Note, attributes, operations, the diagrams it appears on, and its constraints. Attribute multiplicity supports a requiredness inference only when the element uses multiplicities contrastively; read _meta.attributes.multiplicityIsUniform before making that inference — when it is true the element's attributes carry no multiplicity contrast, so a value like 1..1 is not evidence of requiredness. Attributes and operations are capped inline: attributesTruncated/operationsTruncated say whether the returned list is partial, and attributesTotal/operationsTotal give the full counts, so never infer a count from the inline list alone.
Inputs: elementId (required).
ea_get_model_infoARead-only
Report which .qea export file the server has open: fileName is the citable identity, alongside fileSizeBytes, lastModified, and the serverVersion that produced the answer. The full local path is also returned as resolvedPath, with resolvedPathNote explaining why it is environment detail rather than something to cite. configuration says where that path came from — source in words, sourceId as one of argument/environment/dotenv/remembered/prompt, and the configured value behind it — plus any skipped settings, each with the reason it could not be opened, and shadowed ones a higher-priority source outranked; configurationNote says how much of that is safe to repeat.
Inputs: no named parameters.
ea_get_package_treeARead-only
Navigate the package hierarchy. Without parameters, returns top-level packages. With a packageId, returns that package's children up to the specified depth. Each node carries id, name, parentId, and elementCount.
Inputs: depth, packageId.
ea_get_scenariosARead-only
Get use case scenario flows for an element. scenarios holds the parsed flows; each has name, type, notes, and steps, and each step carries stepNumber plus its attributes (trigger, uses, result, state, link). Steps are numbered within each scenario. Scenarios ordered by type: Basic Path first, then Alternate, then Exception. A step's uses may name a business rule or constraint by code; that code is not independently searchable or resolvable — look it up among this same elementId's own constraints via ea_get_element, not by a separate lookup.
Inputs: elementId (required).
ea_get_schemaARead-only
List the model's database tables in tables, or pass a tableName to get that table's columns and indexes instead. That form echoes the table name and adds rowidAlias — the INTEGER PRIMARY KEY aliasing SQLite's rowid, so the fastest lookup path, or null when the table has none — with rowidNote saying which case applies. Use this to discover what data the model holds beyond what the typed ea_* tools return. See ea_get_model_info for the export's identity.
Inputs: tableName.
ea_list_diagramsARead-only
List diagrams in the model, optionally filtered by package, diagram type, and/or name substring. Each entry in results carries diagramId, name, type, packagePath, and eaGuid. Diagrams are ordered by the model's internal identity — stable but artificial, neither alphabetical nor the analyst's tree order — so adjacency carries no meaning. Walk a large result set with offset rather than a larger limit; while rows remain, continuation names the next call. When far more diagrams match than one window can hold, breakdown reports how many each type holds, so the next call can narrow by diagramType instead of paging.
Inputs: limit, offset, packageId, diagramType, +1 more.
ea_list_elementsARead-only
List elements within a package, optionally filtered by object type. elements is a lightweight list (ID, type, name, alias, stereotype), grouped by element type and then ordered by the model's internal identity. That order is stable but artificial — neither alphabetical nor the analyst's tree order — so adjacency carries no meaning. Walk a large package with offset rather than a larger limit; while rows remain, continuation names the next call. When far more elements match than one window can hold, breakdown reports how many each type holds, so the next call can narrow by objectType instead of paging.
Inputs: packageId (required), limit, offset, objectType.
ea_resolveARead-only
Resolve an analyst reference (braced GUID or plain name) to model candidates: the input is echoed as reference and the hits are in candidates. A braced GUID is matched exactly. A plain name is matched against the full name first; only if nothing matches exactly is the reference retried as a name prefix, which resolves analyst codes like UC_ABC_2079 or OA_ABC_2280 to elements named 'CODE: description'. An exact hit is returned alone and is never diluted by prefix hits. Each candidate reports its type (element, diagram, package), id, name, fullPackagePath, eaGuid, and a match field that is always present with value "guid", "exact", or "prefix" — a "prefix" candidate is an inexact match and must not be treated as a confirmed identity. Use the optional kind filter to narrow results.
Inputs: reference (required), kind.
ea_searchARead-only
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. requiredTerms is 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; each term is matched as a contiguous substring exactly as a single term is, so a term carrying whitespace is a phrase and is never split. A one-entry list behaves exactly as a single search term always has. boostAnyOf is an optional list of further terms: a result also matching at least one of them ranks ahead of one that does not, but nothing is ever excluded on that basis — for narrowing to only elements matching an alternative too, use ea_search_and_any_of instead. When no element matches, termMatches reports, per supplied term, whether that term matched anywhere in the corpus at all — so a caller can tell which term emptied the result rather than re-guessing the whole call. Matching elements are returned in results, strongest match first, each with a decoded note preview and a truncation flag; equally strong matches fall back to the model's internal identity, a stable but artificial order. Each result also carries matches, the evidence for why it was returned: the field that matched, the id and name of the attribute, operation or constraint it came from, and a snippet of the author's own text around the match. Evidence is strongest-first and capped, and _meta.matches on the result reports how many matches were found and how many were withheld. The note preview centres on the match when the element's own note is what matched. packageScope restricts results to a package (given as its id or its name) and its descendants. Walk a large result set with offset rather than a larger limit; while rows remain, continuation names the next call. When far more elements match than one window can hold, breakdown reports how they distribute — by objectType, stereotype, or, unless already scoped, by packageScope (reported as the matching package's id, which the next call can pass straight back) — so the next call can narrow instead of paging.
Inputs: requiredTerms (required), limit, offset, boostAnyOf, +3 more.
ea_search_and_any_ofARead-only
Search Enterprise Architect model elements the same way ea_search does, plus andAnyOf: a required-and-alternative filter. requiredTerms still works exactly as it does on ea_search (conjunction, contiguous substring, terms need not share a field). andAnyOf is an optional list of further terms; when supplied, a result must contain requiredTerms AND at least one andAnyOf term, so it can only ever narrow — it never returns a result requiredTerms alone would not. An empty andAnyOf array applies no filter. For promoting rather than narrowing, use ea_search instead, which offers the same alternatives idea as a rank boost. When no element matches the required terms at all, termMatches reports, per supplied term, whether it matched anywhere in the corpus. Matching elements are returned in results, strongest first, each with a decoded note preview, a truncation flag, and matches — the evidence for why it was returned, capped and strongest-first, with _meta.matches reporting how many were found and withheld. packageScope restricts results to a package and its descendants. Walk a large result set with offset; while rows remain, continuation names the next call. When far more elements match than one window can hold, breakdown reports how they distribute by objectType, stereotype, or packageScope.
Inputs: requiredTerms (required), limit, offset, andAnyOf, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
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.
Maintenance
Related MCP Connectors
- ORANO MCP ServerDeprecatedio.github.infotik
Read-only MCP server exposing a user ORANO library to their own AI agent.
Free, source-checked directory of AI agent tools, MCP servers and skills, with read-only search.
Read-only MCP server for The Quiet Protocol's engines, benchmarks, proof, and business data.
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
Related MCP Servers
- AlicenseBqualityDmaintenanceA read-only MCP server connecting AI assistants to Azure DevOps Server (on-premises) for browsing projects, repos, builds, work items, releases, pipelines, and test results.391MIT
- FlicenseNot gradedqualityBmaintenanceAn MCP server that gives an AI agent read and write access to a live SysML v2 model through the vendor-neutral OMG SysML v2 REST API.3-
- FlicenseAqualityDmaintenanceA read-only MCP server that enables AI clients to search a knowledge base and retrieve complete source documents via narrow search and fetch tools.2-
- FlicenseAqualityBmaintenanceA read-only MCP server that gives AI coding agents structured access to a project's source code, architecture, documentation, and Git context through 16 tools for searching, reading, and comparing evidence without modifying files.16-