LeanIX MTM MCP Server
Integrate the LeanIX Multi-Tenant Management (MTM) API into agentic workflows via MCP.
Tools
This MCP server provides 29 read-only tools for accessing LeanIX MTM data:
Account Management
get_accounts- List or search all accounts with paginationget_account- Retrieve a single account by UUID
Workspace Management
get_workspaces- List workspaces with filtering (features, labels) and paginationget_workspace- Retrieve a single workspace by UUID
User Management
get_users- List or search all users with paginationget_user- Retrieve a single user by UUID
Permission Management
get_permissions- List user permissions with extensive filtering and paginationget_permission- Retrieve a single permission by UUID
Contract Management
get_contracts- List all contracts with search and paginationget_contract- Retrieve a single contract by UUID
Instance Management
get_instances- List all instances with filtering and paginationget_instance- Retrieve a single instance by UUID
Event Management
get_account_events- Retrieve all events for a specific account with date filtering and paginationget_workspace_events- Retrieve all events for a specific workspace with date filtering, event type filter, and paginationget_contract_events- Retrieve all events for a specific contract with date filtering and paginationget_user_events- Retrieve all events for a specific user with date filtering and paginationget_instance_events- Retrieve all events for a specific instance with date filtering and paginationget_identity_provider_events- Retrieve all events for a specific identity provider with date filtering and paginationget_event- Retrieve a single event by UUID
Technical User Management
get_technical_users- List or search all technical users with paginationget_technical_user- Retrieve a single technical user by UUID
Domain Management
get_domains- List all domains with filtering (FQDN, instance) and paginationget_domain- Retrieve a single domain by UUID
Identity Provider Management
get_identity_providers- List all identity providers with filtering and paginationget_identity_provider- Retrieve a single identity provider by UUID
Custom Feature Management
get_custom_features- List all custom features filtered by contract or workspaceget_custom_feature- Retrieve a single custom feature by UUID
Label Management
get_labels- Get all labels (optionally filtered by name)get_labels_by_workspace- Get all labels attached to a specific workspace
Setup
API Token
Create a LeanIX API token for authentication.
Required environment variables (can be set in your shell or a .env file):
LEANIX_TOKEN- Your LeanIX API tokenLEANIX_INSTANCE- Your LeanIX instance (e.g., 'app', 'demo-eu-1', defaults to 'app')
Example .env:
Usage with Claude Desktop
To use this with Claude Desktop, add the following to your claude_desktop_config.json:
Run locally
Build:
Use the mcp inspector:
Features
✅ Read-only operations (no data modifications)
✅ Comprehensive pagination support
✅ Extensive filtering options
✅ OAuth 2.0 authentication with automatic token refresh
✅ Proper error handling
✅ TypeScript support
License
This MCP server is licensed under the MIT License. See LICENSE for details.