npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mc8yp

v1.0.4

Published

Cumulocity IoT MCP Server - Model Context Protocol integration for IoT device management

Downloads

148

Readme

mc8yp - Cumulocity IoT MCP Server

Version License Node Version

A Model Context Protocol (MCP) server that provides AI agents with comprehensive access to Cumulocity IoT platform data. This enables AI-powered device management, data analysis, and operational insights through standardized tooling.

Two Deployment Modes:

  • CLI Mode: Run locally with pnpm dlx mc8yp for development and testing with AI agents like Claude Desktop. Uses your system's secure keyring to store credentials.
  • Microservice Mode: Deploy as a Cumulocity microservice for production use. The MCP endpoint (/mcp) integrates with Cumulocity's agents manager, using the service user's permissions automatically.

Installation

CLI Mode (Local Development & Testing)

The CLI mode allows you to run the MCP server locally and connect it to your AI agent (e.g., Claude Desktop). It uses STDIO transport and stores Cumulocity credentials securely in your system's native keyring.

# Run directly with pnpm (recommended)
pnpm dlx mc8yp

# Or install globally
npm install -g mc8yp
mc8yp

# Or with pnpm
pnpm add -g mc8yp
mc8yp

Credential Storage: Credentials are stored using your operating system's secure credential manager:

  • macOS: Keychain
  • Windows: Credential Vault
  • Linux: Secret Service API (libsecret)

Microservice Mode (Production Deployment)

The microservice mode is designed exclusively for deployment on Cumulocity IoT. The server exposes an HTTP endpoint at /mcp that integrates with Cumulocity's agents manager, automatically using the service user's credentials and permissions.

Deployment Steps:

  1. Download the latest release package from GitHub Releases
  2. Upload the .zip file to Cumulocity via Application Management
  3. Subscribe to the application in your tenant
  4. The MCP server will be available at: https://<tenant>.cumulocity.com/service/mc8yp-server/mcp

The microservice uses Cumulocity's built-in service user authentication - no additional credential configuration needed.

Usage

CLI Mode: Managing Credentials

Before using the CLI, you need to store your Cumulocity credentials securely:

# Add credentials (prompts for tenant URL, username, password)
pnpm dlx mc8yp creds add

# List stored credentials
pnpm dlx mc8yp creds list

# Remove credentials
pnpm dlx mc8yp creds remove

The CLI stores credentials in your system's native credential manager and automatically uses them when you connect the MCP server to your AI agent. The list-credentials tool is also available within MCP sessions when running in CLI mode.

Connecting to Local Agents

For local development with Claude Desktop or similar MCP clients, add to your MCP configuration:

{
  "servers": {
    "mc8yp": {
      "type": "stdio",
      "command": "pnpm",
      "args": ["dlx", "mc8yp"]
    }
  }
}

The server will automatically use credentials stored in your system keyring.

Development

Prerequisites

  • Node.js ≥22.0.0
  • pnpm
  • Access to a Cumulocity IoT tenant

Setup

# Install dependencies
pnpm install

# Lint code
pnpm lint

# Type check
pnpm typecheck

# Build
pnpm build

Run Locally

Add the mc8yp server to your local MCP client configuration (e.g., Claude Desktop) with the following command:

{
  "servers": {
    "local_mc8yp": {
      "type": "stdio",
      "command": "pnpm",
      "args": [
        "dlx",
        "jiti",
        "/path/to/your/project/src/cli/index.ts"
      ]
    }
  }
}

This allows you to test and develop the MCP server locally using your preferred MCP client.

Available Tools & Prompts

🛠️ Tools (20 Total)

Note: In CLI mode, an additional list-credentials tool is available to view stored credentials from your system keyring. This tool is not available in microservice deployments.

Inventory Management (4 tools)

  • query-inventory - Query devices, groups, and assets using OData filters
  • get-object - Get detailed device/group/asset information by ID
  • list-children - List child objects in device hierarchy
  • get-supported-series - Discover measurement types a device supports

Measurements (2 tools)

  • get-measurements - Retrieve time-series measurement data
  • get-measurement-stats - Get min/max/avg statistics for measurements

Events (2 tools)

  • get-events - Query device events with filters
  • get-event-types - Discover available event types for a device

Alarms (2 tools)

  • get-alarms - Query alarms with filtering by severity, status, type
  • get-alarm-counts - Get alarm counts grouped by severity

Metadata & Administration (10 tools)

  • get-current-tenant - Get current tenant information
  • get-current-user - Get current user details
  • get-users - List users on the tenant
  • get-applications - List available applications
  • get-application - Get specific application details
  • get-application-versions - Get all versions of an application
  • get-audit - Query audit logs
  • get-tenant-stats - Get tenant usage statistics
  • get-tenant-summary - Get tenant usage summary
  • get-dashboards - Get dashboards for a device or group

💬 Prompts (17 Total)

Pre-built prompt templates that guide AI agents through common IoT workflows:

Date & Time (2 prompts)

  • Date/time range calculations
  • Time window guidance for queries

Inventory (4 prompts)

  • Device lookup and hierarchy navigation
  • Finding devices by criteria
  • OData query syntax help
  • Device discovery workflows

Measurements (3 prompts)

  • Measurement data analysis
  • Time range calculations
  • Data aggregation guidance

Events (2 prompts)

  • Event type discovery
  • Event history querying

Alarms (2 prompts)

  • Alarm status interpretation
  • Troubleshooting workflows

Metadata (1 prompt)

  • Tenant context understanding

Tenant & Administration (3 prompts)

  • Tenant configuration and settings
  • Audit log querying
  • Application management

License

MIT