
Cumulocity MCP Server
A Python-based server that provides Cumulocity IoT platform functionality through the MCP (Model Control Protocol) interface.
What is MCP Cumulocity Server?
MCP Cumulocity Server is a Python-based server that provides functionality for the Cumulocity IoT platform through the Model Control Protocol (MCP) interface, enabling seamless interaction with device management, measurements, and alarm systems.
How to use MCP Cumulocity Server?
To use the MCP Cumulocity Server, you can install it via pip or use the recommended uv
tool. After installation, run the server and configure it to interact with your Cumulocity IoT platform using Claude Desktop.
Key features of MCP Cumulocity Server?
- Device management capabilities including listing and filtering devices.
- Access to device measurements with time filtering.
- Monitoring of active alarms in the system.
Use cases of MCP Cumulocity Server?
- Managing IoT devices effectively within the Cumulocity platform.
- Retrieving real-time measurements from connected devices.
- Monitoring and responding to system alarms for proactive management.
FAQ from MCP Cumulocity Server?
- Can I use MCP Cumulocity Server with any Cumulocity instance?
Yes! You can configure it to work with your specific Cumulocity instance by providing the necessary credentials and URLs.
- Is there a recommended way to install MCP Cumulocity Server?
Yes! It is recommended to use the
uv
tool for installation, but it can also be installed via pip.
- How do I monitor active alarms?
You can retrieve active alarms by using the provided API endpoints to filter by severity and other parameters.
Cumulocity MCP Server
A Python-based server that provides Cumulocity IoT platform functionality through the MCP (Model Control Protocol) interface. This server enables seamless interaction with Cumulocity's device management, measurements, and alarm systems.
Available Tools
Device Management
-
Get Devices
- List and filter devices
- Parameters:
type
: Filter by device typename
: Filter by device namepage_size
: Results per page (max 2000)current_page
: Page number
-
Get Device by ID
- Retrieve detailed information for a specific device
- Parameter:
device_id
: Device identifier
-
Get Child Devices
- View child devices of a specific device
- Parameter:
device_id
: Parent device identifier
-
Get Device Fragments
- Access device fragments and their values
- Parameter:
device_id
: Device identifier
Measurements
Get Device Measurements
- Retrieve device measurements with time filtering
- Parameters:
device_id
: Device identifierdate_from
: Start date (ISO 8601 format)date_to
: End date (ISO 8601 format)page_size
: Number of measurements to retrieve
Alarms
Get Active Alarms
- Monitor active alarms in the system
- Parameters:
severity
: Filter by severity levelpage_size
: Number of results to retrieve
Installation
Using uv (recommended)
When using uv
no specific installation is needed. We will
use uvx
to directly run mcp-server-c8y.
Using PIP
Alternatively you can install mcp-server-c8y
via pip:
pip install mcp-server-c8y
After installation, you can run it as a script using:
python -m mcp_server_c8y
Usage with Claude Desktop
This MCP Server can be used with Claude Desktop to enable Claude to interact with your Cumulocity IoT platform. Follow these steps to set it up:
-
Download and install Claude Desktop
-
Configure Claude Desktop to use this MCP Server:
- Open Claude Desktop
- Click on the Claude menu and select "Settings..."
- Navigate to "Developer" in the left-hand bar
- Click "Edit Config"
-
Add the following configuration to your
claude_desktop_config.json
:
Using uvx
"mcpServers": {
"c8y": {
"command": "uvx",
"args": ["mcp-server-c8y"],
"env": {
"C8Y_BASE_URL": "https://your-cumulocity-instance.com",
"C8Y_TENANT_ID": "your-tenant-id",
"C8Y_USERNAME": "your-username",
"C8Y_PASSWORD": "your-password"
}
}
}
Using pip installation
"mcpServers": {
"c8y": {
"command": "python",
"args": ["-m", "mcp_server_c8y"],
"env": {
"C8Y_BASE_URL": "https://your-cumulocity-instance.com",
"C8Y_TENANT_ID": "your-tenant-id",
"C8Y_USERNAME": "your-username",
"C8Y_PASSWORD": "your-password"
}
}
}
Replace the following placeholders with your actual values:
https://your-cumulocity-instance.com
: Your Cumulocity instance URLyour-tenant-id
: Your Cumulocity tenant IDyour-username
: Your Cumulocity usernameyour-password
: Your Cumulocity password
-
Restart Claude Desktop
-
You should now see a hammer icon in the bottom right corner of the input box. Click it to see the available Cumulocity tools.
For more detailed information about using MCP Servers with Claude Desktop, visit the official MCP documentation.
Options
--session, -s
: Specify a Cumulocity session-v, --verbose
: Increase verbosity (can be used multiple times)
Contributing
We welcome contributions from everyone! Here's how you can contribute to this project:
- Fork the repository
- Create a new branch for your feature or bugfix
- Make your changes following these best practices:
- Write clear, descriptive commit messages
- Follow the existing code style and conventions
- Add tests for new features
- Update documentation as needed
- Ensure all tests pass
- Submit a pull request