Skip to main content
Glama
corgan2222

Milesight Gateway MCP Server

by corgan2222

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MILESIGHT_HOSTYesThe IP address or hostname of the Milesight gateway.
MILESIGHT_PORTNoThe HTTPS port of the gateway API.8080
MILESIGHT_USERYesThe username for gateway login.
MILESIGHT_ORG_IDNoThe organization ID on the gateway.1
MILESIGHT_PASSWORDYesThe password for gateway login.
MILESIGHT_VERIFY_TLSNoWhether to verify the gateway's TLS certificate (set to 'true' only with a trusted certificate).false

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_applicationsB

List LoRaWAN applications on the gateway.

Returns {totalCount, result:[...]}. Each application groups devices and binds a service profile.

get_applicationC

Get a single application by ID.

create_applicationB

Create an application. Returns {id}.

service_profile_id must be an existing service-profile UUID (list them via the gateway's service profiles).

update_applicationC

Update an existing application.

delete_applicationC

Delete an application by ID.

list_devicesA

List devices, optionally scoped to one application.

Returns {devTotalCount, deviceResult:[...]}.

get_deviceA

Get a single device by its DevEUI.

The gateway exposes no per-DevEUI GET endpoint, so this searches the device list and returns the matching record.

create_deviceA

Register a new device under an application.

dev_eui and application_id are required. For OTAA provide app_key; for ABP provide dev_addr, app_s_key and nwk_s_key.

update_deviceA

Update a device. Only the provided fields are changed (merged onto the device's current record).

The gateway's update endpoint requires all mandatory fields in every request, so the current record is fetched first and the requested changes merged in before the full body is sent.

delete_deviceC

Delete a device by its DevEUI.

list_profilesC

List device profiles. Returns {totalCount, result:[...]}.

get_profileB

Get a single device profile by ID.

create_profileC

Create a device profile.

profile is the LoRaWAN profile object, e.g.::

{
  "macVersion": "1.0.2", "regParamsRevision": "A",
  "rfRegion": "EU868", "maxEIRP": 16, "supportsJoin": true,
  "supportsClassC": false, "supportsClassB": false
}
update_profileC

Update an existing device profile.

delete_profileC

Delete a device profile by ID.

list_multicast_groupsC

List multicast groups. Returns {totalCount, result:[...]}.

get_multicast_groupB

Get a single multicast group by ID.

create_multicast_groupC

Create a multicast group.

group_type is CLASS_C or CLASS_B. frequency is in Hz.

delete_multicast_groupC

Delete a multicast group by ID.

list_multicast_group_devicesC

List devices belonging to a multicast group.

add_device_to_multicast_groupC

Add a device (by DevEUI) to a multicast group.

remove_device_from_multicast_groupC

Remove a device (by DevEUI) from a multicast group.

enqueue_device_downlinkB

Queue a downlink payload to a device.

data_base64 is the raw frame payload, Base64-encoded. f_port is the LoRaWAN application port (1-233).

get_device_downlink_queueC

Get pending downlink items queued for a device.

flush_device_downlink_queueA

Delete all pending downlink items for a device.

enqueue_multicast_downlinkC

Queue a downlink payload to a multicast group. Returns {fCnt}.

get_multicast_downlink_queueC

Get pending downlink items queued for a multicast group.

flush_multicast_downlink_queueC

Delete all pending downlink items for a multicast group.

list_gatewaysC

List LoRaWAN gateways. Returns {totalCount, localNS, result:[...]}.

list_packetsC

List recent LoRaWAN packets (frame log). Returns {packets:[...]}.

delete_packetsC

Clear the packet/frame log.

list_payload_codecsA

List available payload codecs (short form). Returns {totalCount, result:[{id, name}]}.

get_network_server_settingsB

Get the embedded network server settings.

get_packet_forwarder_network_serversA

Get configured packet-forwarder network servers.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/corgan2222/milesight-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server