rs232-mcp
Enables AI assistants to interact with Cisco routers and switches over serial console connections, handling prompt detection and pagination.
README
rs232-mcp
MCP server for RS232 serial communication with Cisco network equipment.
Lets AI assistants interact with Cisco routers and switches over serial console connections. Handles prompt detection, -- More -- pagination, and connection lifecycle management.
Supported platforms: macOS, Linux, and Windows.
Install
Codex
codex mcp add rs232 -- npx github:xnetcat/rs232-mcp
Claude Code
claude mcp add rs232 -- npx github:xnetcat/rs232-mcp
To add it to a specific project instead of globally:
claude mcp add --scope project rs232 -- npx github:xnetcat/rs232-mcp
Manual configuration
For any stdio MCP client, configure the server command like this:
{
"mcpServers": {
"rs232": {
"command": "npx",
"args": ["github:xnetcat/rs232-mcp"]
}
}
}
If your Windows client does not resolve npm shims correctly, use npx.cmd as the command instead of npx.
Tools
| Tool | Description |
|---|---|
list_ports |
List available serial ports on the system |
open_port |
Open a serial connection (path, baudRate, dataBits, stopBits, parity) |
close_port |
Close an open serial connection |
send_command |
Send a command and wait for Cisco prompt. Handles -- More -- pagination automatically |
write_raw |
Write raw string data to a port (no prompt waiting) |
read_buffer |
Read buffered data from a port (non-blocking) |
get_connections |
List all open connections and their settings |
Example usage
Once configured, your AI assistant can:
> List serial ports
> Open /dev/tty.usbserial-110 at 9600 baud
> Open COM3 at 9600 baud
> Send "show version"
> Send "show running-config"
> Close the port
The send_command tool automatically:
- Sends the command with CRLF
- Waits for a Cisco prompt (
Router#,Switch>,Router(config)#, etc.) - Presses space through
-- More --prompts - Strips the echoed command from output
- Returns clean output
Default serial settings
| Parameter | Default |
|---|---|
| Baud rate | 9600 |
| Data bits | 8 |
| Stop bits | 1 |
| Parity | none |
Windows notes
- Serial ports usually appear as
COM3,COM4,COM10, and similar names. list_portsreturns the identifier to use withopen_port, so you usually do not need any path conversion.- The runtime uses the
serialportpackage directly, so Windows port handling follows the nativeCOMxbehavior provided by that library.
Development
git clone https://github.com/xnetcat/rs232-mcp.git
cd rs232-mcp
npm install
npm run build
npm test
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.