Skip to main content
Glama
Enterprise Architect MCP Server

Enterprise Architect MCP Server

by mm6502

Enterprise Architect MCP Server

npm version Node.js License: EUPL-1.2 Install in VS Code Install in VS Code Insiders

Sparx Enterprise Architect .qea 내보내기를 위한 읽기 전용 Model Context Protocol(MCP) 서버입니다. 실행 중인 EA 인스턴스 없이도 AI 에이전트가 EA 분석 모델에 접근할 수 있게 해줍니다 — 요소 검색, 패키지 탐색, 유스 케이스 시나리오 읽기, 커넥터 탐색 등이 가능합니다.

모든 MCP 클라이언트(VS Code / GitHub Copilot, Claude Desktop, Cursor, Windsurf)에서 작동합니다. .qea SQLite 내보내기를 직접 읽으며 절대 쓰지 않고, 모든 응답에는 완전성 메타데이터가 포함되어 에이전트가 잘린 답변과 완전한 답변을 구분할 수 있습니다.

키워드: MCP 서버 · Sparx Enterprise Architect · .qea · UML · 유스 케이스 시나리오 · 패키지 트리 · 커넥터 · 다이어그램 · 모델 검색 · AI 에이전트 도구

사전 요구 사항

  • Node.js 22+ (내장 node:sqlite 모듈 사용)

  • Sparx Enterprise Architect에서 내보낸 .qea 파일

Related MCP server: jgs-sysmlv2-api-mcp

설치

VS Code / GitHub Copilot

가장 빠른 방법은 이 페이지 상단의 VS Code에 설치 배지입니다. 입력할 것이 없습니다: 에이전트가 모델을 처음 쿼리할 때 서버가 .qea 경로를 묻고, 다음 번을 위해 답변을 기억합니다.

대신 터미널에서 등록하려면 — 스크립팅이나 공유 설정에 더 편리합니다 — CLI 호출 하나를 사용하세요:

code --add-mcp '{\"name\":\"enterprise-architect\",\"command\":\"npx\",\"args\":[\"-y\",\"enterprise-architect-mcp\"]}'

\" 시퀀스는 code 셸(shim)을 위한 것으로, PowerShell이 이미 인수를 넘긴 후 인수를 다시 파싱합니다 — PowerShell 자체의 백틱으로 이스케이프하거나 --%를 사용하면 따옴표가 제거된 채 도착합니다. 작은따옴표는 PowerShell이 문자열을 건드리지 못하게 합니다. bash나 zsh에서는 일반 형식이 대신 작동합니다:

code --add-mcp '{"name":"enterprise-architect","command":"npx","args":["-y","enterprise-architect-mcp"]}'

대신 수동으로 구성하려면 프로젝트의 .vscode/mcp.json에 추가하세요:

{
  "servers": {
    "enterprise-architect": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "enterprise-architect-mcp"]
    }
  }
}

그 파일에는 개인 정보가 없으므로 그대로 커밋할 수 있고, 각 개발자는 자신의 머신에서 프롬프트에 한 번만 답하면 됩니다. 아예 묻지 않기를 원한다면 경로를 미리 지정하세요 — 후행 인수, env 블록, 또는 작업 영역 루트의 gitignore된 .env 파일로:

EA_QEA_PATH=C:\EA\exports\model.qea

Claude Desktop

동일한 경로 없는 구성이 claude_desktop_config.json에 들어갑니다 (Windows의 %APPDATA%\Claude\, macOS의 ~/Library/Application Support/Claude/):

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

Claude Desktop은 작업 영역 폴더에서 서버를 실행하지 않으므로 거기의 .env는 신뢰할 수 없습니다. 클라이언트가 경로 프롬프트를 전혀 표시할 수 없으면 서버는 조용히 실패하는 대신 그렇게 말하고, env 블록에서 경로를 지정할 수 있습니다:

"env": { "EA_QEA_PATH": "C:\\EA\\exports\\model.qea" }

npm 대신 소스에서 직접 실행하려면 "args": ["-y", "github:mm6502/enterprise-architect-mcp"]를 사용하세요.

구성

서버는 시작할 때 경로가 필요하지 않습니다. 에이전트가 모델을 처음 쿼리할 때 경로를 찾고, 실제로 열리는 첫 번째 소스를 사용합니다:

  1. CLI 인수 — mcp-server-ea C:\path\to\model.qea

  2. 환경 변수 — EA_QEA_PATH (env 블록 또는 시스템 환경에 설정)

  3. .env 파일 — 작업 디렉터리의 .env 파일에 EA_QEA_PATH=...

  4. 기억된 답변 — 프롬프트에 마지막으로 말한 내용

  5. 프롬프트 — 클라이언트가 묻고, 작동하는 답변은 다음 번을 위해 기억됨

열 수 없는 경로를 지정하는 소스는 치명적이지 않고 건너뜁니다, 그래서 다음 소스가 차례를 받습니다. 그 이유는 서버 로그에 기록되고, 이후 어떤 소스가 열리면 ea_get_model_info가 ignored 아래에 나열합니다. 이는 의도적입니다 — env 블록에 남은 샘플 값이 그렇지 않으면 당신이 줄 수 있는 모든 답변보다 우선하고, 프롬프트에 답하는 것이 결코 도움이 되지 않기 때문입니다. 대가는 진짜 오타가 조용히 강등된다는 것이므로, 서버가 예상과 다른 모델을 열면 ea_get_model_info를 확인하세요.

건너뛰기는 건너뛴 소스의 자리를 답변이 대신할 수 있을 때만 가치가 있으므로 두 경우는 치명적으로 유지됩니다: 명령줄에서 전달한 경로(이것은 이번 실행의 명시적 지시이지 오래된 기본값이 아님), 그리고 프롬프트를 표시할 수 없는 클라이언트의 손상된 소스 — 거기서 넘어가면 다른 모델을 조용히 열게 되어 당신에게 알리지 않기 때문입니다.

답변은 머신별로 기억됩니다: Windows의 %APPDATA%\enterprise-architect-mcp\, macOS의 ~/Library/Application Support/enterprise-architect-mcp/, 그 외의 $XDG_CONFIG_HOME(또는 ~/.config); EA_MCP_CONFIG_DIR을 설정하면 그 파일을 다른 곳에 보관할 수 있습니다. 열리지 않는 경로는 절대 기억되지 않으므로, 다시 묻는 것만으로 잘못 입력한 답변을 수정할 수 있습니다.

경로가 디렉터리를 가리키면 서버는 수정 시간 기준으로 가장 최신 .qea 파일을 자동으로 선택합니다. 내보내기 폴더를 가리키면 새 내보내기가 재구성 없이 자동으로 선택됩니다.

경로를 미리 지정하기

프롬프트를 절대 보고 싶지 않다면 — CI 작업, 공유 이미지, 또는 단순히 선호 — 작업 디렉터리의 gitignore된 .env에 경로를 넣으세요. 템플릿을 복사하세요:

Copy-Item .env.example .env

그런 다음 .env에 로컬 경로를 설정하세요:

EA_QEA_PATH=C:\EA\exports\model.qea

디렉터리도 작동합니다 — 그 안의 가장 최신 .qea 파일이 사용됩니다:

EA_QEA_PATH=C:\EA\exports\

.env 파일은 gitignore됩니다 — 각 개발자는 공유 구성을 건드리지 않고 자신의 경로를 설정합니다. 또한 절대 커밋되지 않으므로, 모든 새 사용자가 수동으로 설정해야 하는 유일한 경로입니다; 프롬프트에 한 번 답하는 것이 그 불필요함을 만듭니다.

사용 가능한 도구

도구

설명

ea_search

요소, 속성, 작업, 제약 조건 전반의 전체 텍스트 검색. 슬로바키아어 알파벳 전체에서 대소문자를 구분하지 않으며, 엔티티 인코딩된 텍스트를 디코딩합니다.

ea_get_element

전체 요소 세부 정보 — 속성, 작업, 나타나는 다이어그램, 제약 조건(사전/사후/불변/프로세스). 속성 다중성이 대조적인지 여부를 플래그로 표시합니다.

ea_list_elements

패키지의 요소 목록, 유형별 선택적 필터링. 페이지네이션과 함께 총 개수를 보고합니다.

ea_get_connectors

요소의 관계 — 기능 링크 해석(각 끝이 어떤 속성/작업에 연결되는지) 포함.

ea_get_diagram_elements

다이어그램의 요소와 커넥터, 암시적 커넥터와 기능 링크 포함.

ea_get_scenarios

유스 케이스 시나리오 단계와 모든 속성(트리거, 사용, 결과, 링크, 상태) 및 시나리오 메모.

ea_get_package_tree

재귀적 깊이로 패키지 계층 구조 탐색.

ea_list_diagrams

이름과 패키지로 다이어그램 검색.

ea_resolve

분석가 참조(중괄호 GUID 또는 일반 이름)를 전체 패키지 경로가 있는 모델 후보로 해석. 분석가 코드에 대한 이름-접두사 일치로 폴백; 모든 후보는 guid, exact, 또는 prefix의 match를 가집니다.

ea_get_schema

모델의 데이터베이스 스키마 검사 — 테이블, 열, 인덱스, rowid 별칭.

ea_get_model_info

열린 내보내기의 식별 — 파일 이름, 크기, 수정 날짜, 서버 버전, 경로가 온 구성 소스.

응답 계약

모든 도구는 구조화된 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은 필수성의 증거가 아닙니다

예시 프롬프트

연결되면 다음과 같은 프롬프트를 시도해 보세요:

  • "'legal entity'와 관련된 요소 검색"

  • "루트 아래의 패키지 구조 보여줘"

  • "UC_SUBMIT_APPLICATION의 유스 케이스 시나리오는 무엇인가요?"

  • "다이어그램 0103 Application Processing에 어떤 요소와 커넥터가 있나요?"

  • "참조 {3F2A7C10-5B4D-4e8a-9C1F-27D6E8B0A4F3} 해석"

  • "t_connector에는 어떤 열이 있나요?"

  • "요소 a7680은 어떤 다이어그램에 나타나나요?"

라이선스

Copyright (c) 2026 Michal Mracka

EUPL에 따라 라이선스 — 전체 텍스트는 LICENSE 참조.

Available Tools

12 tools
ea_get_connectorsA
Read-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_elementsA
Read-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_elementA
Read-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_infoA
Read-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_treeA
Read-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_scenariosA
Read-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_schemaA
Read-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_diagramsA
Read-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_elementsA
Read-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_resolveA
Read-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_search_and_any_ofA
Read-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

    A4/5.0

    Scored across 12 tools

    Disambiguation3/5

    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.

    Naming Consistency4/5

    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.

    Tool Count4/5

    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.

    Completeness4/5

    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

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers