Skip to main content
Version: 2.3

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 21 consolidated tools, each supporting multiple actions via an action parameter. Tools are grouped by module.

Connectors

ToolActionsDescription
manage_connectionslist, get, create, update, test, start, stopManage data source/destination connections — CRUD, connectivity testing, and lifecycle control
monitor_connectionsstatus, state_history, health_summaryMonitor connection health, state transitions, and aggregated reliability stats
manage_functionslist, get, create, update, executeManage and execute connector functions (queries, API calls, pub/sub)
explore_protocolslist, getDiscover available connection protocols and their configuration schemas

Pipeline Engine

ToolActionsDescription
manage_pipelineslist, get, create, update, enable, disable, validateManage data pipelines — CRUD, lifecycle control, and validation
query_executionslist, getQuery pipeline execution history and details
explore_node_typeslist, getDiscover available pipeline node types and their configuration schemas
manage_modelslist, getView data models that define schemas for pipeline data

Unified Namespace (UNS)

ToolActionsDescription
manage_topicslist, search, get, createManage UNS topics with hierarchical naming
query_topic_datapublish, fetch_recent, fetch_range, broker_statusPublish and query data on UNS topics, check MQTT broker status

Dashboards

ToolActionsDescription
manage_dashboardslist, get, create, update, deleteManage UNS dashboards — CRUD with grid layout, time ranges, and variables
manage_panelslist_types, get_type, add, update, removeManage dashboard panels and discover available panel types

Dependencies

ToolActionsDescription
query_dependenciesgraph, dependents, dependencies, impact, orphans, insights, stats, nodeQuery the dependency graph — relationships, impact analysis, orphans, and insights

Authentication & Authorization

ToolActionsDescription
manage_userslist, get, statsView users and user statistics
list_identity_providersList configured SSO identity providers (OIDC, LDAP, SAML)
manage_accesslist_roles, user_roles, role_members, checkQuery roles, role assignments, and access permissions

Organization & License

ToolActionsDescription
manage_organizationslist, get, settings, maintenance_status, settings_historyView organization details, settings, and maintenance status
manage_licensestatus, features, history, check_featureView license status, enabled features, and history
ToolActionsDescription
manage_schedulerstats, trigger, list_webhooksView scheduler status, trigger pipelines, and list webhook endpoints
searchquery, find_by_id, statsSearch across all entity types (pipelines, connections, functions, topics, models, dashboards)

System Status

ToolActionsDescription
get_system_statuswebsocket, presenceGet WebSocket server status and pipeline editor presence

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 explore_node_types and explore_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 manage_pipelines (action: update).
  • Impact analysis — Before modifying or deleting a connection or function, ask the AI to run query_dependencies with action impact to understand what will be affected.