- Explore MCP Servers
- cumulocity-mcp-server
Cumulocity
What is Cumulocity
The cumulocity-mcp-server is a Python-based server that facilitates interaction with the Cumulocity IoT platform through the Model Control Protocol (MCP) interface, enabling device management, measurements, and alarm systems.
Use cases
Use cases include managing a fleet of IoT devices, retrieving real-time measurements for analytics, monitoring alarm systems for proactive maintenance, and integrating with other applications for enhanced functionality.
How to use
To use the cumulocity-mcp-server, you can install it via pip with the command ‘pip install mcp-server-c8y’. After installation, run it using ‘python -m mcp_server_c8y’. It can also be used with Claude Desktop for enhanced interaction with the Cumulocity IoT platform.
Key features
Key features include device management (listing, filtering, and retrieving devices), measurement retrieval with time filtering, and monitoring active alarms with severity filtering.
Where to use
The cumulocity-mcp-server is suitable for industries that utilize IoT devices, such as smart home automation, industrial automation, healthcare monitoring, and environmental monitoring.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Cumulocity
The cumulocity-mcp-server is a Python-based server that facilitates interaction with the Cumulocity IoT platform through the Model Control Protocol (MCP) interface, enabling device management, measurements, and alarm systems.
Use cases
Use cases include managing a fleet of IoT devices, retrieving real-time measurements for analytics, monitoring alarm systems for proactive maintenance, and integrating with other applications for enhanced functionality.
How to use
To use the cumulocity-mcp-server, you can install it via pip with the command ‘pip install mcp-server-c8y’. After installation, run it using ‘python -m mcp_server_c8y’. It can also be used with Claude Desktop for enhanced interaction with the Cumulocity IoT platform.
Key features
Key features include device management (listing, filtering, and retrieving devices), measurement retrieval with time filtering, and monitoring active alarms with severity filtering.
Where to use
The cumulocity-mcp-server is suitable for industries that utilize IoT devices, such as smart home automation, industrial automation, healthcare monitoring, and environmental monitoring.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
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 & Deployment
Local Installation
Using uv (recommended)
When using uv no specific installation is needed for this package. 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
Deployment on Cumulocity Tenant
You can deploy this server as a Cumulocity microservice for direct integration with your tenant. This is done by uploading a special deployment package (mcp-server-c8y.zip) to your Cumulocity tenant.
Building the Microservice Deployment Package
- Ensure you have Docker and zip installed on your system.
- Run the provided build script to create the deployment package:
./scripts/buildcontainer.sh
This will:
- Build the Docker image for the microservice
- Save the image as
image.tarin thedocker/directory - Package
image.tarandcumulocity.jsonintodocker/mcp-server-c8y.zip
Deploying to Cumulocity
- Log in to your Cumulocity tenant as a user with microservice deployment permissions.
- Navigate to Administration > Ecosystem > Microservices.
- Click Add microservice and upload the
mcp-server-c8y.zipfile from thedocker/directory. - Wait for the microservice to be deployed and started. You should see its status as “Available” once ready.
- The microservice will be accessible under your tenant’s service URL, typically:
https://<your-tenant>.cumulocity.com/service/mcp-server-c8y/mcp/
For more details on Cumulocity microservice deployment, see the official documentation.
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
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.
Cursor MCP Server Settings Example
If you are using Cursor and have deployed your MCP Server to a Cumulocity tenant, you can configure your MCP server connection with a .cursor/mcp.json file. Example (with sensitive data anonymized):
{
"mcpServers": {
"Cumulocity": {
"url": "https://your-cumulocity-instance.com/service/mcp-server-c8y/mcp/",
"headers": {
"Authorization": "Basic <YOUR_BASE64_AUTH_TOKEN>"
}
}
}
}
https://your-cumulocity-instance.com: Your Cumulocity instance URL- Replace
<YOUR_BASE64_AUTH_TOKEN>with your actual Base64-encoded credentials. Never commit real credentials to version control.
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
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










