Enterprise Architect 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., "@Enterprise Architect MCP ServerCreate a use case diagram for authentication"
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.
Enterprise Architect MCP Server
Python MCP server for interacting with Sparx Systems Enterprise Architect via COM interface. Provides tools for creating and managing UML diagrams.
Features
Create sequence diagrams with lifelines and messages
Generate class diagrams with classes, attributes and methods
Build use case diagrams with actors and use cases
Construct activity diagrams with activities and decisions
Related MCP server: StarUML MCP Server
Installation
Install Python 3.8+
Clone this repository
Install dependencies:
pip install -r requirements.txt
Configuration
The server requires Enterprise Architect to be installed on the system. No additional configuration is needed beyond the Python dependencies.
Usage
Start the MCP server (either method works):
As a module:
python -m serverOr directly:
python path/to/ea_mcp/server.pyThe server will expose these tools:
create_sequence_diagram
Creates a sequence diagram with specified elements.
Parameters:
package_guid: GUID of parent packagename: Diagram nameelements: Array of elements (name, type, stereotype)
Example:
{
"package_guid": "1234-5678-90AB-CDEF",
"name": "User Login Sequence",
"elements": [
{"name": "User", "type": "Actor"},
{"name": "System", "type": "Boundary"}
]
}create_class_diagram
Creates a class diagram with specified classes.
Parameters:
package_guid: GUID of parent packagename: Diagram nameclasses: Array of classes (name, attributes, methods)
Example:
{
"package_guid": "1234-5678-90AB-CDEF",
"name": "Domain Model",
"classes": [
{
"name": "User",
"attributes": ["username", "password"],
"methods": ["login()", "logout()"]
}
]
}create_use_case_diagram
Creates a use case diagram.
Parameters:
package_guid: GUID of parent packagename: Diagram nameactors: Array of actor namesuse_cases: Array of use case names
Example:
{
"package_guid": "1234-5678-90AB-CDEF",
"name": "Authentication",
"actors": ["User", "Admin"],
"use_cases": ["Login", "Logout", "Reset Password"]
}create_activity_diagram
Creates an activity diagram.
Parameters:
package_guid: GUID of parent packagename: Diagram nameactivities: Array of activity namesdecisions: Array of decision names
Example:
{
"package_guid": "1234-5678-90AB-CDEF",
"name": "Login Flow",
"activities": ["Enter Credentials", "Validate", "Grant Access"],
"decisions": ["Valid Credentials?"]
}Lifeline Creation Tools
These tools add specific types of lifelines to an existing sequence diagram.
Parameters for all lifeline tools:
diagram_guid: GUID of the parent sequence diagram.name: Name of the lifeline element.
Available Tools:
create_actor_lifelinecreate_boundary_lifelinecreate_control_lifelinecreate_entity_lifelinecreate_database_lifelinecreate_use_case_lifeline
Example for create_boundary_lifeline:
{
"diagram_guid": "ABCD-EFGH-IJKL-MNOP",
"name": "Login UI"
}Development
To contribute or modify the server:
Set up development environment:
pip install -e .Run tests:
pytest tests/The server follows the MCP protocol specification. Refer to the MCP documentation for details.
This server cannot be deployed
Maintenance
Related MCP Connectors
Generate cloud architecture diagrams, flowcharts, and sequence diagrams.
Create workflow, sequence, architecture, and mind map diagrams via AI assistants.
Generate dynamic Mermaid diagrams and charts with AI assistance. Customize styles and export diagr…
Render, validate, encode/decode PlantUML diagram-as-code; 22 diagram types. Free, no auth.
Related MCP Servers
AlicenseAqualityCmaintenanceEnables creating diagrams or generating code from diagrams in StarUML via prompts.440 npm21MIT- FlicenseNot gradedqualityDmaintenanceEnables AI to remotely control StarUML for generating UML diagrams (use case, class, sequence, ER, etc.) via MCP protocol or REST API.-
- AlicenseAqualityAmaintenanceGenerates UML and other diagrams (30+ types) via the Model Context Protocol, supporting multiple output formats and deployment options.4104MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to programmatically create and manage SysML diagrams in StarUML.-