Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_SERIAL_MAX_TIMEOUTNoMaximum allowed timeout in seconds for tool calls (default 120).120
MCP_SERIAL_ALLOWED_PORTSNoComma-separated globs of allowed serial port paths (e.g. /dev/cu.usb*,COM3). Restricts which ports the agent may touch.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

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

Tools

Functions exposed to the LLM to take actions

NameDescription
list_portsC

List the serial ports currently present on this machine.

Use the description, manufacturer and vid/pid fields to identify the board (e.g. 0x10C4:0xEA60 = CP210x on many ESP32 dev kits, 0x2341 = Arduino, 0x1A86 = CH340). On macOS prefer the /dev/cu.* entry over /dev/tty.*.

open_portA

Open a serial port and start buffering everything it sends.

Idempotent: opening an already-open port with the same settings just returns its status; different settings close and reopen it. The port stays open until close_port.

close_portA

Close a port opened with open_port and release it for other programs.

port_statusB

Show open ports with byte counters, buffered (unread) bytes and disconnect errors.

writeA

Send raw bytes without waiting for a reply (use query for request/response).

readC

Read and consume buffered data from the device (logs, sensor output, late replies).

read_untilA

Wait until a pattern appears (e.g. 'OK', 'ready>', 'Temperature:') and return everything up to and including it. On timeout returns whatever arrived, with matched=false.

queryA

Send a command and return its reply in one call. Best for request/response devices (AT modems, CLI firmware, 'PING' -> 'PONG' sketches).

tailA

Peek at the last lines received on a port WITHOUT consuming the read buffer. Good for checking what a device has been printing while you were doing other things.

clear_bufferA

Discard all buffered unread data on a port (line history for tail is kept).

reset_deviceA

Reboot the board by pulsing DTR/RTS and return what it prints while booting. Only works on boards that wire those lines to reset (most USB dev boards do).

set_control_linesA

Set the DTR / RTS modem control lines manually (bootloader entry, custom reset circuits).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
ports_resourceJSON list of serial ports present on this machine.

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

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