ArchiMate MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ArchiMate MCP Server create a business actor named 'Customer'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.archimateXML filesArchiMate 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
Related MCP server: ArchiMate MCP Server
Installation
Prerequisites
Node.js 18+
npm
Build from Source
cd archimate-mcp-server
npm install
npm run buildUsage with Claude Code
Quick Install (npx, auto-updates)
claude mcp add archimate -- npx -y archimate-mcp-server@latestBuild 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.jsVerify it was added:
claude mcp listRemove if needed:
claude mcp remove archimateUsage 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 |
| Open a model from a coArchi repository |
| Save the current model |
| Create a new empty model |
Navigation
Tool | Description |
| List elements (optionally filtered by layer/type) |
| Get element details with relationships |
| Search elements by name pattern |
Element Creation (Layer-Specific)
Tool | Element Types |
| Stakeholder, Driver, Assessment, Goal, Outcome, Principle, Requirement, Constraint, Meaning, Value |
| Resource, Capability, ValueStream, CourseOfAction |
| BusinessActor, BusinessRole, BusinessCollaboration, BusinessInterface, BusinessProcess, BusinessFunction, BusinessInteraction, BusinessEvent, BusinessService, BusinessObject, Contract, Representation, Product |
| ApplicationComponent, ApplicationCollaboration, ApplicationInterface, ApplicationFunction, ApplicationInteraction, ApplicationProcess, ApplicationEvent, ApplicationService, DataObject |
| Node, Device, SystemSoftware, TechnologyCollaboration, TechnologyInterface, Path, CommunicationNetwork, TechnologyFunction, TechnologyProcess, TechnologyInteraction, TechnologyEvent, TechnologyService, Artifact, Equipment, Facility, DistributionNetwork, Material |
| WorkPackage, Deliverable, ImplementationEvent, Plateau, Gap |
| Grouping, Location |
Relationships
Tool | Description |
| Create a relationship (validates against ArchiMate spec) |
| List relationships |
| Get valid relationship types between element types |
Supported Relationship Types: Composition, Aggregation, Assignment, Realization, Serving, Access, Influence, Association, Triggering, Flow, Specialization
Views/Diagrams
Tool | Description |
| List all diagram views |
| Create a new view |
| Add an element to a view; connections to on-canvas peers are auto-drawn (opt out with |
| Manually add a connection — normally unnecessary since |
Modification
Tool | Description |
| Update element name/documentation |
| Delete element and its relationships |
| Delete a relationship |
Analysis
Tool | Description |
| Get element counts by layer |
| Analyze element dependencies |
Exchange Format (Import/Export)
Tool | Description |
| Import model from ArchiMate Open Exchange XML |
| Export model to ArchiMate Open Exchange XML |
Export Tools
Tool | Description |
| Generate Mermaid diagram syntax from model or view |
| Export view as SVG or PNG image |
| Export model as Markdown documentation |
| Export model as interactive HTML deck |
Audit Logging
Tool | Description |
| Enable/disable audit logging, set log path |
| Read recent audit log entries |
Available Resources
URI | Description |
| Catalog of all ArchiMate element types |
| Catalog of relationship types |
| Current model summary |
Example Usage
Once connected, you can ask Claude to:
Open the ArchiMate model at /path/to/my-model
Create a new Business Actor called "Customer" with documentation "External customer"
Create an Application Component called "Order Service"
Create a Serving relationship from "Order Service" to "Customer"
Show me all elements in the Application layer
What relationships are valid between ApplicationComponent and BusinessProcess?
Do an impact analysis on the "Order Service" component
Export the model as Markdown documentation to /path/to/docs.md
Generate a Mermaid diagram for the Business layer
Export the main view as an SVG to /path/to/diagram.svg
Create an interactive HTML deck of the architectureExport Formats
Mermaid Diagrams
Generate Mermaid flowchart syntax that can be rendered in Mermaid-compatible viewers:
flowchart TB
subgraph Business["Business Layer"]
BA1["Customer"]
BP1["Order Process"]
end
subgraph Application["Application Layer"]
AC1["Order Service"]
end
AC1 -->|Serving| BP1SVG/PNG Diagrams
Export diagram views as scalable SVG or rasterized PNG images with:
Color-coded elements by layer
ArchiMate notation
Relationship lines with appropriate arrows
Markdown Documentation
Generate comprehensive documentation including:
Model overview with statistics
Elements grouped by layer
Relationship details
Embedded Mermaid diagrams for views
HTML Deck
Create an interactive single-file HTML presentation with:
Tab navigation by layer
Element cards with relationship details
Search functionality
Light/dark theme support
Embedded SVG diagrams
Audit Logging
All model operations can be logged to an NDJSON file for auditing:
{"timestamp":"2024-01-15T10:30:00.000Z","event":"archimate_create_business_element","action":"create","elementType":"BusinessActor","elementId":"id-123","elementName":"Customer","success":true,"durationMs":5}Configure via environment variable:
export ARCHIMATE_AUDIT_LOG=/path/to/audit.ndjson # Set log path
export ARCHIMATE_AUDIT_LOG=disabled # Disable loggingRelationship Validation
The server validates relationships against the ArchiMate 3.2 specification. Invalid relationships are rejected with helpful error messages:
Error: Assignment is not a valid relationship between DataObject and BusinessActor
Suggestions: Realization, Serving, Association, FlowProject Structure
archimate-mcp-server/
├── src/
│ ├── index.ts # MCP server entry point
│ ├── model/
│ │ ├── types.ts # ArchiMate type definitions
│ │ ├── parser.ts # XML model parser
│ │ └── writer.ts # XML model writer
│ ├── relationships/
│ │ └── validation.ts # Relationship validation
│ ├── exporters/
│ │ ├── mermaid-exporter.ts # Mermaid diagram generation
│ │ ├── svg-exporter.ts # SVG/PNG diagram rendering
│ │ ├── markdown-exporter.ts # Markdown documentation
│ │ └── html-deck-exporter.ts # HTML presentation deck
│ ├── exchange/
│ │ ├── exchange-reader.ts # ArchiMate Exchange import
│ │ └── exchange-writer.ts # ArchiMate Exchange export
│ └── audit/
│ └── logger.ts # Audit logging system
├── dist/ # Compiled output
├── package.json
├── tsconfig.json
└── vitest.config.ts # Test configurationTesting
npm test # Run tests
npm run test:watch # Run tests in watch mode
npm run test:coverage # Run tests with coverageLicense
MIT
Available Tools
33 toolsarchimate_add_connection_to_viewA
Manually add a connection (line/arrow) between two diagram objects in a view. Normally unnecessary - archimate_add_to_view auto-draws connections for all relationships it finds between the new element and existing on-canvas elements. Use this tool only to: (a) restore a connection after calling archimate_add_to_view with auto_connect: false, or (b) add a connection that was not auto-drawn because one endpoint was not yet in the view. Both diagram objects must already be in the view.
Inputs: view_id (required), relationship_id (required), source_diagram_object_id (required), target_diagram_object_id (required).
archimate_add_to_viewA
Add an element to a diagram view. Connections for relationships between this element and any element already in the view are drawn automatically - you do not need to call archimate_add_connection_to_view for them. The response lists every connection that was auto-drawn in autoConnectedRelationships.
Inputs: view_id (required), element_id (required), x, y, +3 more.
archimate_configure_auditC
Configure audit logging for model operations
Inputs: enabled, log_path.
archimate_create_application_elementA
Create an Application layer element (Chapter 9). Use for application components, services, and data objects.
Inputs: element_type (required), name (required), documentation.
archimate_create_business_elementB
Create a Business layer element (Chapter 8). Use for actors, processes, services, and business objects.
Inputs: element_type (required), name (required), documentation.
archimate_create_composite_elementB
Create a composite element (Chapter 4). Use for grouping and locations.
Inputs: element_type (required), name (required), documentation.
archimate_create_implementation_elementA
Create an Implementation & Migration layer element (Chapter 12). Use for work packages, deliverables, and architecture plateaus.
Inputs: element_type (required), name (required), documentation.
archimate_create_modelA
Create a new empty ArchiMate model with standard folder structure
Inputs: name (required), path (required).
archimate_create_motivation_elementA
Create a Motivation layer element (Chapter 6). Use for stakeholders, goals, requirements, etc.
Inputs: element_type (required), name (required), documentation.
archimate_create_relationshipB
Create a relationship between two elements. Validates against ArchiMate specification.
Inputs: relationship_type (required), source_id (required), target_id (required), name, +2 more.
archimate_create_strategy_elementA
Create a Strategy layer element (Chapter 7). Use for capabilities, resources, and strategic planning.
Inputs: element_type (required), name (required), documentation.
archimate_create_technology_elementB
Create a Technology layer element (Chapter 10). Use for nodes, devices, infrastructure, and physical elements.
Inputs: element_type (required), name (required), documentation.
archimate_create_viewC
Create a new diagram view
Inputs: name (required), viewpoint.
archimate_delete_elementB
Delete an element and its associated relationships
Inputs: element_id (required).
archimate_delete_relationshipC
Delete a relationship
Inputs: relationship_id (required).
archimate_export_diagramC
Export a diagram view as SVG or PNG image
Inputs: view_id (required), output_path (required), format, width, +2 more.
archimate_export_exchangeB
Export the current model to ArchiMate Open Exchange Format XML
Inputs: path (required).
archimate_export_html_deckA
Export the model as an interactive HTML deck with tabs and search
Inputs: output_path (required), title, theme, include_search, +1 more.
archimate_export_markdownB
Export the model as Markdown documentation
Inputs: output_path (required), include_views, include_diagrams, include_relationships, +1 more.
archimate_export_mermaidA
Generate Mermaid diagram syntax from the model or a specific view
Inputs: view_id, direction, include_labels, layer_filter.
archimate_find_elementsA
Search for elements by name pattern (case-insensitive regex)
Inputs: pattern (required), layer.
archimate_get_audit_logB
Read recent entries from the audit log
Inputs: limit.
archimate_get_elementB
Get detailed information about a specific element including its relationships
Inputs: element_id (required).
archimate_get_valid_relationshipsB
Get valid relationship types between two element types (helps understand what connections are permitted)
Inputs: source_type (required), target_type.
archimate_impact_analysisB
Analyze dependencies and impact of an element
Inputs: element_id (required), direction, depth.
archimate_import_exchangeB
Import an ArchiMate model from Open Exchange Format XML file
Inputs: path (required).
archimate_layer_summaryB
Get a summary of elements by layer
Inputs: no named parameters.
archimate_list_elementsA
List elements in the model, optionally filtered by layer or type
Inputs: layer, element_type.
archimate_list_relationshipsA
List relationships, optionally filtered by element or type
Inputs: element_id, relationship_type, direction.
archimate_list_viewsB
List all diagram views in the model
Inputs: no named parameters.
archimate_open_modelB
Open an ArchiMate model from a coArchi repository directory. Returns model metadata including element counts by layer.
Inputs: path (required).
archimate_save_modelB
Save the current model to disk
Inputs: path.
archimate_update_elementC
Update an existing element
Inputs: element_id (required), name, documentation.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 33 tools
Each tool has a clearly distinct purpose. The only potential overlap is between archimate_add_to_view and archimate_add_connection_to_view, but their descriptions explicitly differentiate them, with the former auto-drawing connections and the latter for manual addition.
All tools follow the 'archimate_verb_noun' pattern in snake_case, with verbs like create, delete, list, get, export, import, etc. The naming is highly consistent and predictable.
33 tools is on the higher side but still reasonable given the breadth of ArchiMate modeling (multiple layers, relationships, views, exports, audit, impact analysis). Each tool serves a specific purpose, and the count is not excessive.
The tool set covers creation, reading, updating, and deletion for most elements and relationships, as well as views, exports, imports, and analysis. Minor gaps exist: no tool to delete a view, and no update for relationships, but these are not critical.
Maintenance
Related MCP Connectors
Manage SysML2 projects; check, evaluate, verify, query, document and diagram models.
AI Agent with Architectural Memory. Impact analysis (free), tests and code from the graph (pro).
SysML v2 systems engineering: generate, verify, simulate and export system models from text.
Floor plans as code: compile, lint and repair ArchLang (.arch) floor plans to SVG, DXF and PDF.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to create, validate, and visualize ArchiMate 3.2 enterprise architecture diagrams through natural language. Supports all 55+ element types across 7 architectural layers with Mermaid diagram generation and XML export capabilities.515 npm13MIT
- AlicenseNot gradedqualityDmaintenanceEnables generation of PlantUML ArchiMate enterprise architecture diagrams with full ArchiMate 3.2 specification support across all 7 layers, including automatic validation, multi-format export (PNG/SVG/XML), and instant diagram viewing through a built-in HTTP server.33MIT
- AlicenseNot gradedqualityDmaintenanceEnables querying and modifying ArchiMate enterprise architecture models from XML or Archi Tool files via REST API and MCP server, supporting multiple simultaneous data sources.12 npmMIT
- AlicenseNot gradedqualityDmaintenanceRetrieves architectural information from ArchiMate models, enabling AI coding assistants to access architectural context during the software development lifecycle. Supports search and retrieval of views and elements in markdown, JSON, or YAML.10MIT