An MCP server in Go for managing ArchiMate models in Archi via the jArchi plugin.
Provides 23 MCP tools for creating and editing ArchiMate elements, relationships, views, and properties.
Claude ←(stdio/MCP)→ archimate-mcp (Go) ←(HTTP)→ ArchiMCPServer.ajs (jArchi) ←→ Archi
Archi has no HTTP API. The jArchi script runs an HTTP server (com.sun.net.httpserver.HttpServer) on port 9898 inside Archi, and the Go MCP server communicates with it over HTTP.
make installThe binary archimate-mcp will be installed.
- Open Archi, create or open a model
- Go to Scripts → Scripts Manager (or Window → Scripts Manager)
- Copy
jarchi/ArchiMCPServer.ajsto the jArchi scripts folder - Select the script and click Run
- The console should show:
ArchiMate MCP HTTP Server started on port 9898 Model: <model name>
Verify:
curl http://localhost:9898/api/modelclaude mcp add archimate -- archimate-mcp --archi-url http://localhost:9898Add to claude_desktop_config.json:
{
"mcpServers": {
"archimate": {
"command": "$GOPATH/bin/archimate-mcp",
"args": ["--archi-url", "http://localhost:9898"]
}
}
}Add to ~/.codex/config.json:
{
"mcpServers": {
"archimate": {
"command": "$GOPATH/bin/archimate-mcp",
"args": ["--archi-url", "http://localhost:9898"]
}
}
}| Flag | Env | Default | Description |
|---|---|---|---|
--archi-url, -u |
ARCHI_URL |
http://localhost:9898 |
jArchi HTTP server URL |
--debug, -d |
ARCHI_DEBUG |
false |
Enable debug logging |
--timeout |
ARCHI_TIMEOUT |
30s |
HTTP request timeout |
| Tool | Description |
|---|---|
archi_element_list |
List elements (filter by type, name) |
archi_element_get |
Get element by ID |
archi_element_create |
Create element (type, name, documentation) |
archi_element_update |
Update name/documentation |
archi_element_delete |
Delete element |
Element types (kebab-case): business-actor, business-role, business-process, business-object, business-service, application-component, application-service, technology-node, technology-service, etc.
| Tool | Description |
|---|---|
archi_relationship_list |
List relationships (filter by type, source_id, target_id) |
archi_relationship_get |
Get relationship by ID |
archi_relationship_create |
Create relationship (type, source_id, target_id) |
archi_relationship_update |
Update name/documentation |
archi_relationship_delete |
Delete relationship |
Relationship types: serving-relationship, composition-relationship, aggregation-relationship, assignment-relationship, realization-relationship, flow-relationship, triggering-relationship, association-relationship, access-relationship.
| Tool | Description |
|---|---|
archi_view_list |
List all views |
archi_view_get |
Get view by ID |
archi_view_create |
Create view |
archi_view_update |
Update view |
archi_view_delete |
Delete view |
| Tool | Description |
|---|---|
archi_view_object_list |
List objects on a view |
archi_view_object_add |
Add element to view (x, y, width, height) |
archi_view_object_update |
Update position/size |
archi_view_object_remove |
Remove element from view |
| Tool | Description |
|---|---|
archi_model_info |
Model metadata (id, name, purpose) |
archi_model_save |
Save model |
| Tool | Description |
|---|---|
archi_property_list |
List properties of element/relationship |
archi_property_set |
Set property |
Before starting the MCP server, make sure jArchi is working:
- Create a test script in Archi:
console.log("jArchi works! Model: " + model.name);
- Run it — you should see the message in the console.
- Test element creation:
var e = model.createElement("business-actor", "Test Actor"); console.log("Created: " + e.id);
├── main.go # Entry point, CLI
├── client/
│ ├── client.go # HTTP client for jArchi
│ └── types.go # Data types
├── tools/
│ ├── registry.go # Tool registry
│ ├── common.go # Common types
│ ├── errors.go # Error handling
│ ├── element.go # Element tools
│ ├── relationship.go # Relationship tools
│ ├── view.go # View tools
│ ├── view_object.go # View object tools
│ ├── model.go # Model tools
│ └── property.go # Property tools
└── jarchi/
└── ArchiMCPServer.ajs # jArchi HTTP server