Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MODBUS_HOSTNoHost of the Modbus TCP device to monitor.127.0.0.1
MODBUS_PORTNoPort of the Modbus TCP device.5020
FORGELINE_HOSTNoBind host for HTTP transports.127.0.0.1
FORGELINE_PORTNoBind port for HTTP transports.8000
MODBUS_TIMEOUTNoPer-request timeout in seconds.3.0
MODBUS_UNIT_IDNoModbus unit / slave id.1
SIMULATOR_HOSTNoBind host for the bundled simulator.0.0.0.0
SIMULATOR_PORTNoBind port for the bundled simulator.5020
FORGELINE_TRANSPORTNoMCP transport: stdio, sse, or streamable-http.stdio

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_device_infoA

Get identity and connection details for the monitored Modbus device.

Returns the device's vendor, product code, revision and related fields (when the device supports Modbus device identification), plus the host, port and unit id Forgeline is connected to. Read-only.

read_holding_registersB

Read holding registers (FC 0x03) from the monitored Modbus device.

Holding registers are 16-bit read/write values (Forgeline reads them only). Returns the start address, count, unit id, and a list of address -> value pairs. Read-only.

read_input_registersA

Read input registers (FC 0x04) from the monitored Modbus device.

Input registers are 16-bit read-only measurements. Returns the start address, count, unit id, and a list of address -> value pairs.

read_coilsA

Read coils (FC 0x01) from the monitored Modbus device.

Coils are single-bit on/off values. Returns the start address, count, unit id, and a list of address -> boolean value pairs. Read-only.

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/codenikhildr/Forgeline'

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