Skip to main content

MCP server for IoT Cloud

Project description

note

for now, it just a demo

commands

uv init --package iot-mcp-server cd iot-mcp-server uv add "mcp[cli]" uv add pyjwt uv add requests

uv run mcp install server.py # install to Claude Desktop uv run mcp dev server.py # debug uv run mcp run server.py # run uv run main.py # test main.py without mcp

uv run mcp install server.py --with requests --with pyjwt --env-var BASE_URL=https://iot-api.quectelcn.com --env-var ACCESS_KEY=24b9zq36CtkVFHSiBW9aMeLF --env-var ACCESS_SECRET=6AUSH6PmD22dYjMLonHuiKEp5S83GkQ83epBbDqG

sample prompt

List product from IoTCloud. 请列出我在IoTCloud上的所有产品。

Get the full product definition of the Light1 product. 找到产品Light1的productKey并据此获取它的完整定义。

Get the productKey of product Light1 and use it to list devices of the product.

sample config.json

{
  "globalShortcut": "",
  "mcpServers": {
    "iot-mcp-server": {
      "command": "C:\\Users\\gatem\\.local\\bin\\uv.EXE",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "--with",
        "pyjwt",
        "--with",
        "requests",
        "mcp",
        "run",
        "C:\\Users\\gatem\\app\\mcp-server-demowin\\server.py"
      ],
      "env": {
        "BASE_URL": "https://iot-api.quectelcn.com",
        "ACCESS_KEY": "24b9zq36CtkVFHSiBW9aMeLF",
        "ACCESS_SECRET": "6AUSH6PmD22dYjMLonHuiKEp5S83GkQ83epBbDqG"
      }
    }
  }
}
{
  "globalShortcut": "",
  "mcpServers": {
    "iot-mcp-server": {
      "command": "C:\\Users\\gatem\\.local\\bin\\uvx.EXE",
      "args": [
        "iot-mcp-server"
      ],
      "env": {
        "BASE_URL": "https://iot-api.quectelcn.com",
        "ACCESS_KEY": "24b9zq36CtkVFHSiBW9aMeLF",
        "ACCESS_SECRET": "6AUSH6PmD22dYjMLonHuiKEp5S83GkQ83epBbDqG"
      }
    }
  }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iot_mcp_server-0.3.1.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iot_mcp_server-0.3.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file iot_mcp_server-0.3.1.tar.gz.

File metadata

  • Download URL: iot_mcp_server-0.3.1.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.3

File hashes

Hashes for iot_mcp_server-0.3.1.tar.gz
Algorithm Hash digest
SHA256 76c1de6c1a1b6644fda56a1cf33dc6dcf12b31b3d8afa6b217c30ade868f67ca
MD5 92ae008f55976981f0e29d1957c462ca
BLAKE2b-256 544a7d38d73973aed922b7a09239d928bdcc6c923403c137c6175e188483479f

See more details on using hashes here.

File details

Details for the file iot_mcp_server-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for iot_mcp_server-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3cff49ea01c087f167fe30dbfc6508042f72211db57955dad82150347d38110f
MD5 7f6349994616d62210f6055835f8be2d
BLAKE2b-256 5a483f1a8235d8e166712b020a47951795a6dec1ee75a9d7d9612ae82524681c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page