Overview
Features
tcp_connect
Opens a TCP connection to a host:port and returns a connection_id for subsequent operations; supports pre-registered connection_ids for triggers.
tcp_send
Sends data over an established connection with encoding options (utf-8, hex, base64); supports hex-encoded binary data and optional terminator bytes (e.g., 0D0A).
tcp_read_buffer
Reads data from the connection's receive buffer; data may not be immediately available; buffer stores all data until cleared; supports index/count and output formats (utf-8, hex, base64).
tcp_disconnect
Closes the connection and frees resources; all associated triggers are removed.
tcp_set_trigger
Sets automatic responses for pattern matches using regex; supports pre-registration and capture groups; triggers fire automatically on matches (handshake automation).
tcp_connect_and_send
Performs connect + send in one atomic operation; useful for time-sensitive protocols and immediate handshakes; returns a connection_id.
tcp_list_connections
Lists all active connections with statistics for monitoring and management.
tcp_connection_info
Provides detailed information about a specific connection.
Who Is This For?
- AI models:Interact with raw TCP services via MCP to exchange data and test protocols.
- Network engineers:Debug, prototype, and monitor raw TCP-based communications and device protocols.
- IoT developers:Interface with embedded devices over TCP sockets for control and data collection.
- Security researchers:Perform protocol analysis and security testing using triggers and raw sockets.




