Skip to main content
Glama
46nori

mcp-serial-bridge

by 46nori

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

接続されているすべてのシリアルポートの情報を返す。 connect の呼び出し前に必ず実行し、利用可能なポート(device名)を確認すること。 macOSでは /dev/cu.* を優先的に返す(/dev/tty.* はカーネル内部用のため除外)。

Returns: list of dict with keys: - device: OS固有の識別子 (例: COM3, /dev/cu.usbserial-10) - description: デバイス名 - hwid: ハードウェアID (VID:PID)

connectA
指定したシリアルポートに接続する。
port には list_ports で取得した device 名を指定する。
すでに接続中の場合は、内部で既存接続を閉じてから再接続する。

Args:
    port: 接続ポート名 (例: /dev/cu.usbserial-10, COM3)
    baudrate: 通信速度 (default: 19200)
    line_ending: コマンド末尾に付加する改行コード
        "

" (CR only, default) " " (CR+LF) " " (LF only)

write_and_readA

シリアルポートにコマンドを送信し、応答を受信して返す。 事前に connect を実行しておくこと。 行末には connect で設定した line_ending が自動付加される。 wait_for にプロンプト文字列(例: "> ")を指定すると、 その文字列が受信データに現れるまで待機する。 送受信データはすべてログファイルに記録される。

Args: command: 送信する文字列 wait_for: この文字列が出現するまで受信を待機する(省略可) timeout: 最大待機時間(秒)

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/46nori/mcp-serial-bridge'

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