Skip to main content
Glama

UiPath MCP Server

Model Context Protocol server that gives AI assistants secure access to UiPath Orchestrator data, queues, jobs, and automation analytics.

npm version License: MIT TypeScript

Overview

UiPath MCP Server connects MCP-compatible assistants to UiPath Orchestrator without custom integration code. It exposes orchestration capabilities as tools so assistants can query queues, inspect jobs, start automations, and retrieve logs with proper authentication and auditing.

This server is designed for teams that want faster operational insights and automation control from within Claude Desktop, Cursor, or any MCP client. It supports stdio for local usage and SSE for multi-user or service-to-service deployments.

Key Features:

  • Unified access to queues, jobs, robots, assets, and audit logs

  • Secure configuration with environment variables and scoped credentials

  • SSE transport for multi-user and service integrations

  • Rich analytics, licensing, and performance insights

Related MCP server: UiPath MCP Server

Table of Contents

Getting Started

Follow these steps to clone the repo, configure credentials, build, and start using the MCP server locally.

Prerequisites

  • Node.js 18 or higher (run node -v to check)

  • Git

  • A UiPath Orchestrator instance (Cloud or On-Premises)

  • UiPath External Application credentials (see step 2 below)

Step 1: Clone and Install

git clone https://dev.azure.com/uipathcato/uipath/_git/uipath_mcp
cd uipath_mcp
npm install

Step 2: Create UiPath Credentials

You need an External Application in UiPath Orchestrator to authenticate. For the full walkthrough with screenshots, see the UiPath External Applications documentation.

Summary:

  1. Log in to your UiPath Orchestrator (e.g. https://cloud.uipath.com)

  2. Navigate to Admin > External Applications

  3. Click Add Application

  4. Set Application Type to Confidential

  5. Under Scopes, add the following:

    • OR.Execution

    • OR.Queues

    • OR.Folders

    • OR.Jobs

    • OR.Assets

    • OR.Robots

    • OR.Machines

    • OR.Monitoring

    • OR.Settings

    • OR.Audit

    • OR.License

  6. Click Add

  7. Copy the App ID (this is your Client ID) and App Secret (Client Secret)

Step 3: Configure Environment

Copy the example file and fill in your credentials:

cp .env.example .env

Edit .env:

UIPATH_URL=https://cloud.uipath.com/your-org/your-tenant
UIPATH_CLIENT_ID=your-client-id
UIPATH_CLIENT_SECRET=your-client-secret
UIPATH_TENANT_NAME=Default

If your Orchestrator requires a specific folder context, also set:

UIPATH_FOLDER_ID=123

Step 4: Build

npm run build

This compiles TypeScript into the dist/ directory.

Step 5: Verify

Run the tests to confirm everything is wired up:

npm test

Tests that require live credentials will skip automatically if .env is not configured.

Step 6: Connect to an MCP Client

Pick the client you use and follow the corresponding section.

Claude Desktop

Open the Claude Desktop configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

  • Linux: ~/.config/Claude/claude_desktop_config.json

Add this entry (replace the path with the absolute path to your clone):

{
  "mcpServers": {
    "uipath": {
      "command": "node",
      "args": ["C:/Users/you/uipath_mcp/dist/index.js"],
      "env": {
        "UIPATH_URL": "https://cloud.uipath.com/your-org/your-tenant",
        "UIPATH_CLIENT_ID": "your-client-id",
        "UIPATH_CLIENT_SECRET": "your-client-secret",
        "UIPATH_TENANT_NAME": "Default"
      }
    }
  }
}

Restart Claude Desktop. You should see the UiPath tools available.

Cursor IDE

Create or edit .cursor/mcp.json in your project root (or globally at ~/.cursor/mcp.json):

{
  "mcpServers": {
    "uipath": {
      "command": "node",
      "args": ["C:/Users/you/uipath_mcp/dist/index.js"],
      "env": {
        "UIPATH_URL": "https://cloud.uipath.com/your-org/your-tenant",
        "UIPATH_CLIENT_ID": "your-client-id",
        "UIPATH_CLIENT_SECRET": "your-client-secret",
        "UIPATH_TENANT_NAME": "Default"
      }
    }
  }
}

Restart Cursor. The UiPath tools will appear in the MCP tool list.

SSE / HTTP Mode (Multi-User)

Start the server in SSE mode:

macOS / Linux:

MCP_TRANSPORT=sse PORT=3000 npm start

Windows (PowerShell):

$env:MCP_TRANSPORT="sse"; $env:PORT="3000"; npm start

The server listens on http://localhost:3000 with these endpoints:

Endpoint

Method

Description

/health

GET

Health check

/sse

GET

SSE stream for MCP clients

/messages

POST

MCP message handler

/tools/:toolName

POST

Direct REST tool invocation

Clients must send UiPath credentials via headers:

curl -X POST http://localhost:3000/tools/uipath_get_folders \
  -H "Content-Type: application/json" \
  -H "X-UiPath-Url: https://cloud.uipath.com/your-org/your-tenant" \
  -H "X-UiPath-Client-Id: your-client-id" \
  -H "X-UiPath-Client-Secret: your-client-secret" \
  -d '{"limit": 50}'

Step 7: Try It Out

Once connected, try these prompts in your MCP client:

  • "Show me all UiPath folders"

  • "List running jobs"

  • "What queues are available?"

  • "Get the dashboard summary"

  • "Show failed jobs from the last 24 hours"

Configuration Reference

Required Environment Variables

Variable

Description

Required

Example

UIPATH_URL

UiPath Orchestrator base URL

Yes

https://cloud.uipath.com/org/tenant

UIPATH_CLIENT_ID

External Application client ID

Yes

app-1234

UIPATH_CLIENT_SECRET

External Application client secret

Yes

secret-1234

Optional Environment Variables

Variable

Description

Default

Example

UIPATH_TENANT_NAME

Tenant name

Default

Production

UIPATH_FOLDER_ID

Default folder ID

none

123

UIPATH_DISABLE_SSL_VERIFY

Disable SSL verification

0

1

MCP_TRANSPORT

Transport mode

stdio

sse

PORT

HTTP port for SSE mode

3000

8080

Available Tools

The server exposes UiPath Orchestrator functionality as MCP tools. Full details are in TOOLS.md.

Queue Tools

  • uipath_get_queue_definitions - List queue definitions

  • uipath_get_queue_items - Query queue items with filters

  • uipath_add_queue_item - Add items to queues

  • uipath_get_queue_stats - Queue statistics

Job Tools

  • uipath_get_jobs - List jobs with filters

  • uipath_get_job_details - Job details by ID

  • uipath_start_job - Start a job by process name

  • uipath_stop_job - Stop a running job

  • uipath_get_job_stats - Job statistics

Robot and Machine Tools

  • uipath_get_robots - List robots with optional folder filter

  • uipath_get_sessions - Active robot sessions

  • uipath_get_machines - Machine inventory

Asset, Log, and Audit Tools

  • uipath_get_assets - List assets in a folder

  • uipath_get_robot_asset - Get asset by robot ID and name

  • uipath_get_robot_logs - Query robot logs

  • uipath_get_audit_logs - Audit trail entries

Analytics, Scheduling, and Licensing Tools

  • uipath_get_faulted_jobs - Failed jobs with error details

  • uipath_get_process_performance - Process performance analytics

  • uipath_get_folder_overview - Folder health overview

  • uipath_get_dashboard_summary - Dashboard summary

  • uipath_get_schedules - Process schedules and triggers

  • uipath_get_consumption_license_stats - Consumption license usage

  • uipath_get_license_stats - Traditional license usage

  • uipath_get_licenses_runtime - Runtime license details

  • uipath_get_licenses_named_user - Named-user license details

  • uipath_get_count_stats - Entity counts

  • uipath_get_sessions_stats - Robot session statistics

Available Resources

Read-only resources available via URIs:

  • uipath://folders

  • uipath://robots

  • uipath://machines

  • uipath://queues

  • uipath://jobs/recent

  • uipath://releases

  • uipath://dashboard

  • uipath://sessions

  • uipath://assets

  • uipath://schedules

Usage Examples

Example 1: Inspect Queue Items

Scenario: Review failed queue items for a specific queue.

Tool Call:

{
  "tool": "uipath_get_queue_items",
  "arguments": {
    "queueName": "CustomerOrders",
    "status": "Failed",
    "limit": 25
  }
}

Result: A list of failed items with their payloads and error details.

Example 2: Start a Job

Scenario: Launch a process with input arguments.

Tool Call:

{
  "tool": "uipath_start_job",
  "arguments": {
    "processName": "InvoiceProcessor",
    "inputArguments": {
      "InvoiceId": "INV-10045"
    }
  }
}

Result: A job start response with the new job details.

Example 3: Get Robot Logs

Scenario: Review logs for a specific time window.

Tool Call:

{
  "tool": "uipath_get_robot_logs",
  "arguments": {
    "startTime": "2025-01-01T00:00:00Z",
    "endTime": "2025-01-01T02:00:00Z",
    "limit": 100
  }
}

Result: Log entries matching the time range and filters.

Development

Available Scripts

npm run dev          # Run in development mode (tsx, auto-reload)
npm run build        # Compile TypeScript to dist/
npm start            # Run compiled server (requires build first)
npm test             # Run test suite
npm run test:watch   # Re-run tests on file changes
npm run test:coverage # Tests with coverage report
npm run lint         # Run ESLint
npm run format       # Format with Prettier
npm run inspect      # Launch MCP Inspector for interactive testing

Project Structure

uipath_mcp/
  src/
    index.ts           # MCP server, tool definitions, request routing
    uipath-client.ts   # UiPath Orchestrator API client
    types.ts           # TypeScript type definitions
  tests/               # Test suite (Vitest)
  docs/                # API and tool reference docs
  examples/            # Example config files for Claude Desktop / Cursor
  dist/                # Compiled output (generated by npm run build)

Known Limitations

  • SSE mode requires clients to send UiPath credentials on each connection

  • Tool execution is synchronous; long-running UiPath jobs are not streamed

  • No built-in retry/backoff for transient UiPath API failures

  • Limited pagination control for some composite analytics endpoints

  • Resource URIs return fixed-size snapshots rather than live streams

Technical Shortcomings

  • Token acquisition happens on-demand per client without shared caching

  • No request throttling or circuit-breaking for bursty clients

  • Error payloads are normalized but do not expose structured error codes

  • SSE sessions are in-memory only and are lost on server restart

  • No OpenTelemetry tracing or metrics export built in

Troubleshooting

Failed to Obtain Access Token

Verify your External Application has the required scopes:

  • OR.Execution

  • OR.Queues

  • OR.Folders

  • OR.Jobs

  • OR.Assets

  • OR.Robots

  • OR.Machines

  • OR.Monitoring

  • OR.Settings

  • OR.Audit

  • OR.License

SSL Verification Errors

For on-premises Orchestrator, set UIPATH_DISABLE_SSL_VERIFY=1 if required.

Folder Access Errors

Set UIPATH_FOLDER_ID or pass folderId to tools to target a specific folder.

Debug Logging

export DEBUG=uipath-mcp:*
npm start

Security

  • Store credentials in environment variables

  • Do not log or commit secrets

  • Scope External Application permissions to least privilege

License

MIT License - see LICENSE for details.

Available Tools

29 tools
uipath_add_queue_itemB

Add a new item to a UiPath queue. The item will be processed by robots.

Inputs: data (required), queueName (required), folderId, priority, +1 more.

uipath_get_assetsA

List all assets in a UiPath Orchestrator folder. Assets store configuration values, credentials, and other data used by automations.

Inputs: skip, limit, folderId.

uipath_get_audit_logsA

Get audit log entries from UiPath Orchestrator. Tracks who did what and when - useful for compliance and debugging.

Inputs: skip, limit, action, endTime, +3 more.

uipath_get_consumption_license_statsA

Gets consumption licensing usage statistics (platform units). Shows used vs total for each license type over time. Requires License.View permission.

Inputs: days, tenantId.

uipath_get_count_statsB

Gets the total number of various entities registered in Orchestrator (Processes, Assets, Queues, Schedules).

Inputs: no named parameters.

uipath_get_dashboard_summaryC

Get a comprehensive dashboard summary with queue and job statistics.

Inputs: folderId.

uipath_get_faulted_jobsA

Get faulted/failed jobs with error details. Returns job errors, durations, and failure info for troubleshooting automation failures.

Inputs: limit, endTime, folderId, startTime, +1 more.

uipath_get_folder_overviewB

Get a comprehensive overview of a folder including job counts by state, queue count, release count, and robot count. Useful for understanding folder health at a glance.

Inputs: folderId (required).

uipath_get_foldersC

Get folders from UiPath Orchestrator.

Inputs: skip, limit.

uipath_get_job_detailsA

Get detailed information about a specific job by its ID.

Inputs: jobId (required), folderId.

uipath_get_jobsB

Get jobs from UiPath Orchestrator with optional filtering by state or process name. Requires folderId for most operations.

Inputs: limit, state, folderId, releaseName.

uipath_get_job_statsB

Get overall job statistics including counts by state and success rate.

Inputs: folderId.

uipath_get_licenses_named_userA

Gets named-user license details for a specific robot type. Shows user assignments, login dates, and machine associations.

Inputs: robotType (required).

uipath_get_licenses_runtimeA

Gets runtime license details for a specific robot type. Shows machine assignments, runtimes, and online status.

Inputs: robotType (required).

uipath_get_license_statsA

Gets traditional licensing usage statistics. Shows robot counts by type over time. Requires License.View permission.

Inputs: days, tenantId.

uipath_get_machinesC

Get machines from UiPath Orchestrator.

Inputs: skip, limit.

uipath_get_process_performanceA

Get performance analytics for a specific process/automation. Returns success rate, average execution duration, min/max times, and recent execution history.

Inputs: processName (required), limit, folderId.

uipath_get_queue_definitionsA

Get all queue definitions from UiPath Orchestrator. Returns list of queues with their configuration.

Inputs: folderId.

uipath_get_queue_itemsB

Get queue items from UiPath Orchestrator with optional filtering by queue, status, etc.

Inputs: limit, status, queueId, folderId, +1 more.

uipath_get_queue_statsA

Get statistics for a specific queue including item counts by status and success rate.

Inputs: queueName (required), folderId.

uipath_get_releasesB

Get available releases/processes from UiPath Orchestrator.

Inputs: folderId, processKey.

uipath_get_robot_assetA

Get an asset value for a robot by ID and asset name.

Inputs: robotId (required), assetName (required).

uipath_get_robot_logsC

Get robot logs with optional filters.

Inputs: skip, level, limit, jobKey, +3 more.

uipath_get_robotsA

Get robots from UiPath Orchestrator with optional folder filtering.

Inputs: skip, limit, folderId.

uipath_get_schedulesA

Get process schedules/triggers from UiPath Orchestrator. Shows when automations are scheduled to run, their cron expressions, and next execution times.

Inputs: skip, limit, enabled, folderId.

uipath_get_sessionsA

Get active robot sessions from UiPath Orchestrator. Shows which robots are connected and their current state (Available, Busy, Disconnected).

Inputs: skip, limit, state, folderId.

uipath_get_sessions_statsB

Gets the total number of robots aggregated by state (Available, Busy, Disconnected, Unresponsive).

Inputs: no named parameters.

uipath_start_jobB

Start a new job for a process/release in UiPath Orchestrator.

Inputs: processName (required), folderId, jobsCount, inputArguments.

uipath_stop_jobB

Stop a running job in UiPath Orchestrator.

Inputs: jobId (required), force, folderId.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 29 tools

    Disambiguation4/5

    Most tools have clear, distinct targets (queues, jobs, robots, etc.), and getters are differentiated by resource. A few statistical tools (dashboard_summary, folder_overview, count_stats) overlap in providing counts, but their descriptions clarify intended use.

    Naming Consistency5/5

    All tools follow the uipath_<verb>_<resource> pattern (e.g., uipath_get_jobs, uipath_start_job, uipath_add_queue_item). The verb is consistently get for reads, with clear action verbs for mutations. No mixed conventions or ambiguous abbreviations.

    Tool Count3/5

    At 29 tools, the set is larger than ideal and exceeds the typical 15-25 'heavy but reasonable' range. However, the domain (UiPath Orchestrator management) is broad, and many getters reflect specific entity types, so it remains borderline rather than excessive.

    Completeness4/5

    The tool set covers the main Orchestrator entities (queues, jobs, releases, robots, machines, schedules, assets, logs, audit, licenses) with read operations and a few key actions (add queue item, start/stop job). Missing update/delete operations for some resources, but core workflows are supported.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      A
      maintenance
      Enables AI assistants to interact with self-hosted Dynatrace Managed environments to retrieve observability data, security insights, and performance metrics. It allows users to query problems, logs, events, and SLOs through natural language interfaces in both local and remote modes.
      18
      790 npm
      34
      Apache 2.0