XMI MCP Server
Enables querying and exploration of SysML models stored in XMI (XML) format, providing tools to navigate package hierarchies, find classes and blocks, inspect enumeration values, and perform full-text searches across model documentation.
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., "@XMI MCP Server show the inheritance hierarchy and properties for the Asset class"
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.
XMI MCP Server
An MCP (Model Context Protocol) server for querying SysML XMI exports. This server parses the MTConnect SysML model and provides tools for exploring packages, classes, enumerations, and documentation.
Installation
npm install
npm run buildRelated MCP server: mcp-registry
Loading into Claude Code on Windows
Option 1: Add to User Settings (Recommended)
Open your Claude Code settings file at:
%APPDATA%\Claude\claude_desktop_config.jsonOr create it if it doesn't exist.
Add the MCP server configuration:
{ "mcpServers": { "xmimcp": { "command": "node", "args": ["C:\\source\\vibes\\xmimcp\\dist\\index.js"] } } }Restart Claude Code for the changes to take effect.
Option 2: Using a Custom XMI File Path
If your XMI file is in a different location, set the XMI_FILE_PATH environment variable:
{
"mcpServers": {
"xmimcp": {
"command": "node",
"args": ["C:\\source\\vibes\\xmimcp\\dist\\index.js"],
"env": {
"XMI_FILE_PATH": "C:\\path\\to\\your\\model.xml"
}
}
}
}Option 3: Project-Specific Configuration
Create a .mcp.json file in your project root:
{
"mcpServers": {
"xmimcp": {
"command": "node",
"args": ["C:\\source\\vibes\\xmimcp\\dist\\index.js"]
}
}
}Verifying the Server is Loaded
After restarting Claude Code, you can verify the server is loaded by asking Claude to use one of the tools, such as:
"Get model statistics from the XMI server"
"List all packages in the SysML model"
Tool Reference
Package Tools
list_packages
List all packages in the SysML model with optional filtering.
Parameters:
Parameter | Type | Description |
| string | Filter to children of this package (by name or xmi:id) |
| boolean | Include nested packages recursively (default: false) |
| string | Regex pattern to filter package names |
Example:
List all packages that contain "Asset" in their nameget_package
Get detailed information about a specific package including its children.
Parameters:
Parameter | Type | Required | Description |
| string | Yes | Package name or xmi:id |
Returns: Package details including child packages, classes, and enumerations.
Example:
Get details of the "Asset Information Model" packageClass/Block Tools
find_classes
Find classes/blocks by name, pattern, or package.
Parameters:
Parameter | Type | Description |
| string | Exact class name to find |
| string | Regex pattern for class names |
| string | Limit search to this package (name or id) |
| boolean | Search in nested packages (default: true) |
| boolean | Include abstract classes (default: true) |
Example:
Find all classes with "Tool" in their name
Find classes in the "Cutting Tool" packageget_class_details
Get full details of a class including properties, inheritance, and documentation.
Parameters:
Parameter | Type | Required | Description |
| string | Yes | Class name or xmi:id |
| boolean | No | Include inherited properties from parent classes (default: false) |
Returns: Complete class information including:
Properties with types and multiplicity
Parent classes (generalizations)
Stereotypes (e.g., SysML Block)
Documentation
Example:
Get details of the "CuttingTool" class with inherited propertiesget_inheritance_hierarchy
Get the inheritance chain for a class showing ancestors and/or descendants.
Parameters:
Parameter | Type | Required | Description |
| string | Yes | Class name or xmi:id |
| string | No | One of: "ancestors", "descendants", "both" (default: "both") |
Example:
Show the inheritance hierarchy for the "Asset" classEnumeration Tools
list_enumerations
List all enumerations with optional filtering.
Parameters:
Parameter | Type | Description |
| string | Filter to a specific package |
| string | Regex pattern for enumeration names |
Example:
List all enumerations containing "Type" in their nameget_enumeration
Get details of an enumeration including all literal values and their documentation.
Parameters:
Parameter | Type | Required | Description |
| string | Yes | Enumeration name or xmi:id |
Returns: Enumeration details with all literals and their documentation.
Example:
Get all values of the "DataItemSubTypeEnum" enumerationSearch Tools
search_documentation
Full-text search across all documentation and comments in the model.
Parameters:
Parameter | Type | Required | Description |
| string | Yes | Search terms (space-separated, all must match) |
| array | No | Limit to: "class", "enumeration", "package", "datatype" |
| number | No | Maximum results (default: 50) |
Example:
Search documentation for "cutting tool life"
Search for "spindle" in class documentation onlysearch_by_name
Search for any element by name across the entire model.
Parameters:
Parameter | Type | Required | Description |
| string | Yes | Name or partial name to search for |
| boolean | No | Require exact name match (default: false) |
| array | No | Limit to: "class", "enumeration", "package", "datatype" |
Example:
Search for elements named "Asset"
Find all elements containing "Observation"Reference Tools
resolve_reference
Resolve an xmi:id reference to get element details. Useful for following cross-references in the model.
Parameters:
Parameter | Type | Required | Description |
| string | Yes | The xmi:id to resolve |
Example:
Resolve reference "_19_0_3_68e0225_1620206731259_178927_703"Utility Tools
get_model_statistics
Get statistics about the loaded SysML model.
Parameters: None
Returns:
{
"packageCount": 120,
"classCount": 1179,
"enumerationCount": 106,
"dataTypeCount": 30,
"propertyCount": 1924,
"associationCount": 231
}Troubleshooting
Server not loading
Ensure Node.js is installed and in your PATH
Verify the paths in the configuration use double backslashes (
\\) on WindowsCheck that
npm run buildcompleted successfully
XMI file not found
Verify the XMI file exists at the expected path
Use the
XMI_FILE_PATHenvironment variable to specify a custom location
Tools not appearing
Restart Claude Code after updating the configuration
Check the Claude Code logs for any error messages
Development
# Install dependencies
npm install
# Build
npm run build
# Run directly (for testing)
npm startLicense
MIT
Available Tools
11 toolsfind_classesC
Find classes/blocks by name, pattern, or package
Inputs: name, namePattern, package, recursive, +1 more.
get_class_detailsB
Get full details of a class including properties and inheritance
Inputs: identifier (required), includeInherited.
get_enumerationB
Get details of an enumeration including all literals
Inputs: identifier (required).
get_inheritance_hierarchyB
Get the inheritance chain for a class (parents and children)
Inputs: identifier (required), direction.
get_model_statisticsB
Get statistics about the loaded SysML model
Inputs: no named parameters.
get_packageB
Get detailed information about a specific package
Inputs: identifier (required).
list_enumerationsC
List all enumerations with optional filtering
Inputs: package, namePattern.
list_packagesC
List all packages in the SysML model with optional filtering
Inputs: parentPackage, recursive, namePattern.
resolve_referenceC
Resolve an xmi:id reference to get element details
Inputs: xmiId (required).
search_by_nameB
Search for any element by name across the entire model
Inputs: query (required), exactMatch, elementTypes.
search_documentationB
Full-text search across all documentation/comments
Inputs: query (required), elementTypes, limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Each tool has a clearly distinct purpose targeting specific SysML model elements or operations. For example, find_classes searches for classes by criteria, get_class_details retrieves detailed class information, and search_by_name performs broader element searches, with no significant overlap in functionality.
All tool names follow a consistent verb_noun pattern using snake_case, such as find_classes, get_class_details, and list_packages. This uniformity makes the tool set predictable and easy to understand for an agent.
With 11 tools, the count is well-scoped for exploring and querying a SysML model. Each tool serves a specific purpose, such as retrieving details, listing elements, or searching, without redundancy, making the set comprehensive yet manageable.
The tool set covers key operations for SysML model exploration, including retrieval, listing, searching, and statistical analysis. Minor gaps might exist, such as tools for modifying or validating the model, but the provided tools support most agent workflows effectively without dead ends.
Maintenance
Related MCP Connectors
MCP server for querying Forkast documentation
MCP server for AI access to Swagger by SmartBear.
Search and browse every MCP server in the Model Context Protocol registry.
Repository knowledge graph MCP server for codebase understanding and debugging.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA generic MCP server that exposes local repository checkouts, allowing users to search and read code and documentation through natural language. It supports multiple instances, enabling seamless interaction with various codebases via configurable tool prefixes and URI schemes.MIT
- AlicenseAqualityDmaintenanceAn MCP server designed for interacting with the Model Context Protocol Registry API to discover and retrieve information about available MCP servers. It provides tools to search, list, and view detailed configurations and version history for servers within the registry.4MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that provides semantic search, graph query, and keyword search tools for interacting with DocSmith's knowledge graph and documentation.1MIT
- FlicenseNot gradedqualityBmaintenanceAn MCP server that gives an AI agent read and write access to a live SysML v2 model through the vendor-neutral OMG SysML v2 REST API.3-