A Python SDK that enables hosting local MCP servers on UiPath Platform.
Check out our samples directory to explore various MCP server implementations. You can also learn how to pack and host binary servers written in languages like Go within UiPath.
pip install uipath-mcpusing uv:
uv add uipath-mcpCreate the mcp.json file:
{
"servers": {
"my-python-server": {
"type": "stdio",
"command": "python",
"args": ["server.py"]
},
}
}The SDK also provides a command-line interface for creating, packaging, and deploying Python-based MCP servers:
uipath authThis command opens a browser for authentication and creates/updates your .env file with the proper credentials.
uipath init [SERVER]Creates a uipath.json configuration file for your project. If [SERVER] is not provided, it will create an entrypoint for each MCP server defined in the mcp.json file.
uipath run [SERVER]Starts the local MCP Server
uipath packPackages your MCP Server into a .nupkg file that can be deployed to UiPath.
Note: Your pyproject.toml must include:
- A description field (avoid characters: &, <, >, ", ', ;)
- Author information
Example:
description = "Your package description"
authors = [{name = "Your Name", email = "your.email@example.com"}]uipath publishPublishes the most recently created package to your UiPath Orchestrator.
To properly use the CLI for packaging and publishing, your project should include:
- A
pyproject.tomlfile with project metadata - A
mcp.jsonfile with servers metadata - A
uipath.jsonfile (generated byuipath init) - Any Python files needed for your automation
Please read our contribution guidelines before submitting a pull request.