TH

thijs-hakkenberg/archimate-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

27 stars 9 forks 质量 71 趋势 0MIT

Archimate 的 MCP 服务器

概览

一个MCP(模型上下文协议)服务器,使LLM能够处理存储在coArchi2仓库中的ArchiMate模型。服务器设计遵循ArchiMate 3.2规范结构,使LLM能够直观地选择合适的层、元素和关系。 - : 动机层、战略层、业务层、应用层、技术层以及实施与迁移层的所有元素类型 - : 根据规范强制执行有效的 ArchiMate 关系 - : 层级专用工具通过枚举元素类型指导正确使用 - : 读取和写入模型。

概述(AI 翻译)

一个MCP(模型上下文协议)服务器,使LLM能够处理存储在coArchi2仓库中的ArchiMate模型。服务器设计遵循ArchiMate 3.2规范结构,使LLM能够直观地选择合适的层、元素和关系。

特色

  • 完整 ArchiMate 3.2 支持:涵盖动机层、战略层、业务层、应用层、技术层以及实施与迁移层的所有元素类型
  • 关系验证:根据规范强制执行有效的ArchiMate关系
  • LLM 友好设计:层级专用工具通过枚举元素类型指导正确使用
  • coArchi2 兼容:读取和写入 model.archimate XML 文件
  • ArchiMate 交换格式:使用标准 ArchiMate 开放交换格式导入/导出
  • 多种导出格式:SVG、PNG、美人鱼图、Markdown文档和交互式HTML卡组
  • 审计日志:使用NDJSON审计日志跟踪所有模型操作
  • 影响分析:分析架构变更的依赖关系和影响

安装

先决条件

  • Node.js 18+
  • NPM

从源头构建

使用 Claude Code

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

ArchiMate MCP Server

An MCP (Model Context Protocol) server that enables LLMs to work with ArchiMate models stored in coArchi2 repositories. The server design follows the ArchiMate 3.2 specification structure, making it intuitive for LLMs to select appropriate layers, elements, and relationships.

Features

  • Full ArchiMate 3.2 Support: All element types across Motivation, Strategy, Business, Application, Technology, and Implementation & Migration layers
  • Relationship Validation: Enforces valid ArchiMate relationships per the specification
  • LLM-Friendly Design: Layer-specific tools with enumerated element types guide correct usage
  • coArchi2 Compatible: Reads and writes model.archimate XML files
  • ArchiMate Exchange Format: Import/export using the standard ArchiMate Open Exchange Format
  • Multiple Export Formats: SVG, PNG, Mermaid diagrams, Markdown documentation, and interactive HTML decks
  • Audit Logging: Track all model operations with NDJSON audit logs
  • Impact Analysis: Analyze dependencies and impacts of architecture changes

Installation

Prerequisites

  • Node.js 18+
  • npm

Build from Source

cd archimate-mcp-server
npm install
npm run build

Usage with Claude Code

Quick Install (npx, auto-updates)

claude mcp add archimate -- npx -y archimate-mcp-server@latest

Build from Source

Clone and build, then add to Claude Code:

git clone https://github.com/thijs-hakkenberg/archimate-mcp.git
cd archimate-mcp
npm install
npm run build
claude mcp add archimate -- node $(pwd)/dist/index.js

Verify it was added:

claude mcp list

Remove if needed:

claude mcp remove archimate

Usage with Claude Desktop

Add to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "archimate": {
      "command": "node",
      "args": ["/path/to/archimate-mcp-server/dist/index.js"]
    }
  }
}

Available Tools (33 total)

Model Management

Tool Description
archimate_open_model Open a model from a coArchi repository
archimate_save_model Save the current model
archimate_create_model Create a new empty model
Tool Description
archimate_list_elements List elements (optionally filtered by layer/type)
archimate_get_element Get element details with relationships
archimate_find_elements Search elements by name pattern

Element Creation (Layer-Specific)

Tool Element Types
archimate_create_motivation_element Stakeholder, Driver, Assessment, Goal, Outcome, Principle, Requirement, Constraint, Meaning, Value
archimate_create_strategy_element Resource, Capability, ValueStream, CourseOfAction
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "archimate": { "command": "node", "args": ["/path/to/archimate-mcp-server/dist/index.js"] } } }