Skip to main content
Glama
davidalo

serial-mcp

by davidalo

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

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
list_portsA

List all available serial ports on the system.

Returns information about each port including device path, description, manufacturer, and hardware IDs.

open_portA

Open a serial port with the specified configuration.

Returns a port_id that must be used for all subsequent operations on this port.

close_portB

Close an open serial port.

The port_id is the identifier returned when the port was opened.

write_dataB

Write data to an open serial port.

Data can be a regular string (encoded with the specified encoding) or a hex string if hex_mode is True.

read_bytesB

Read a specific number of bytes from the serial port.

Reads up to num_bytes, returning early if timeout is reached.

read_untilA

Read from serial port until a terminator string is received.

Useful for reading line-based protocols (terminator='\n').

read_for_durationB

Read all data from serial port for a specified duration.

Continuously reads data for the specified time period, collecting all received bytes.

send_breakA

Send a BREAK signal on the serial port.

A BREAK is a special signal where the TX line is held low for a specified duration, used for various protocols.

get_port_statusA

Get the current status of a managed serial port.

Returns configuration, buffer status, and control line states.

list_open_portsB

List all currently open/managed serial ports.

Returns information about each port that has been opened through this MCP server.

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/davidalo/serial-mcp'

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