Skip to main content
Version: 2.2

MCP Integration

Beta Feature

MCP Integration is currently in beta. The available tools and configuration format may change in future releases.

Overview

MaestroHub exposes a Model Context Protocol (MCP) server that lets AI coding assistants interact directly with your industrial automation platform. Once connected, an AI assistant can query connections, build pipelines, publish data to the Unified Namespace, create dashboards, and more — all through natural language.

This enables use cases such as:

  • Rapid prototyping — describe a pipeline in plain English and have the AI build it
  • Data exploration — ask questions about your UNS topics, connections, and pipeline executions
  • Dashboard creation — generate monitoring dashboards from conversational descriptions
  • Troubleshooting — inspect connection statuses, execution logs, and dependency graphs with AI assistance

Prerequisites

  • OAuth2 module enabled — The MCP server authenticates via Personal Access Tokens (PATs), which require the OAuth2 module
  • A Personal Access Token — Generated from your profile page (see below)

Step 1: Generate a Personal Access Token

Create a PAT from your profile's Security tab. Give it a descriptive name (e.g., "MCP - Claude Code"), select an expiration period (1 year recommended for development use), and grant the permissions needed for your workflow.

For detailed instructions, see Personal Access Tokens.

Step 2: Obtain the Organization ID

Most MCP configurations require an Organization ID to scope API requests to the correct organization.

For how to find and copy your Organization ID, see Organization Context.

Step 3: Configure Your Editor

Choose your editor from the guides below to set up MCP integration:

Each guide provides the exact configuration file format and location for the editor.

For real-world prompt examples with actual outputs, see the Example Prompts page. For a full end-to-end walkthrough, see Walkthrough: Antigravity + Gemini.

Available Tools

The MCP server exposes the following tools, grouped by module.

Authentication & Authorization

ToolDescription
auth_get_userGet a user by ID or email
auth_get_user_statsGet aggregate user statistics
auth_list_usersList users with optional filtering
auth_list_identity_providersList configured SSO identity providers
authz_check_accessCheck if a user has permission for an action
authz_get_user_rolesGet role assignments for a user
authz_get_users_with_roleGet users with a specific role
authz_list_rolesList all roles with permissions

Connectors

ToolDescription
connectors_list_connectionsList all connections with optional search
connectors_get_connectionGet connection details by ID
connectors_connection_statusGet runtime status and metrics
connectors_test_connectionTest connectivity for a connection
connectors_start_connectionStart a connection runtime
connectors_stop_connectionStop a connection runtime
connectors_list_functionsList functions for a connection
connectors_get_functionGet function details by ID
connectors_execute_functionExecute a connector function
connectors_list_protocolsList all supported protocols

Pipeline Engine

ToolDescription
engine_list_pipelinesList pipelines with search and filtering
engine_get_pipelineGet pipeline details including node graph
engine_create_pipelineCreate a new pipeline with nodes and edges
engine_update_pipelineUpdate an existing pipeline
engine_validate_pipelineValidate pipeline configuration
engine_enable_pipelineEnable a pipeline
engine_disable_pipelineDisable a pipeline
engine_list_executionsList recent executions for a pipeline
engine_get_executionGet execution details
engine_list_node_typesList available node types
engine_list_modelsList data models
engine_get_modelGet a data model by ID

Unified Namespace (UNS)

ToolDescription
uns_list_topicsList all UNS topics
uns_search_topicsSearch topics by name
uns_get_topicGet topic details and schema
uns_create_topicCreate a new topic
uns_publish_dataPublish data to a topic
uns_fetch_recentFetch most recent data from a topic
uns_fetch_rangeFetch data within a time range
uns_broker_statusGet MQTT broker status

Dashboards

ToolDescription
uns_list_dashboardsList dashboards with optional search
uns_get_dashboardGet dashboard details and panels
uns_create_dashboardCreate a dashboard with panels
uns_update_dashboardUpdate dashboard properties
uns_delete_dashboardDelete a dashboard
uns_add_panelAdd a panel to a dashboard
uns_update_panelUpdate a panel
uns_remove_panelRemove a panel
uns_list_panel_typesList available panel types

Dependencies

ToolDescription
deps_get_insightsGet dependency graph insights
deps_query_graphQuery the full dependency graph
deps_query_dependenciesFind what an entity depends on
deps_query_dependentsFind what depends on an entity
deps_query_impactImpact analysis for changes
deps_query_orphansFind unused entities

Scheduler

ToolDescription
scheduler_get_statsGet scheduler statistics
scheduler_list_webhooksList registered webhook paths
scheduler_trigger_manuallyManually trigger a pipeline
ToolDescription
search_querySearch across all entity types
search_find_by_idFind an entity by ID
search_get_statsGet search index statistics

Organization & License

ToolDescription
org_get_organizationGet organization details
org_list_organizationsList organizations
org_get_settingsGet organization settings
org_get_maintenance_statusCheck maintenance mode
license_get_statusGet license status
license_get_featuresList enabled features
license_check_featureCheck a specific feature flag

WebSocket

ToolDescription
ws_get_statusGet WebSocket server status
ws_get_presenceGet users present on a pipeline editor

Tips & Best Practices

  • HTTP vs HTTPS — The examples in these guides use https://. If your MaestroHub instance is deployed locally without TLS (e.g., http://localhost:8080), replace https:// with http:// in the MCP server URL.
  • Token management — Rotate tokens periodically and use a 1-year expiration for development.
  • Organization context — The X-Organization-ID header determines which organization's data the AI can access. Make sure it matches your target environment.
  • Tool discovery — Ask the AI "What MCP tools are available?" to get a full list of capabilities. The AI can also call engine_list_node_types and connectors_list_protocols to discover what pipeline nodes and connector types are supported.
  • Iterative building — Start with simple pipelines and add complexity incrementally. The AI can update existing pipelines with engine_update_pipeline.
  • Impact analysis — Before modifying or deleting a connection or function, ask the AI to run deps_query_impact to understand what will be affected.