websocat-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@websocat-mcpconnect to ws://echo.websocket.org and send 'hello'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
websocat-mcp
An MCP (Model Context Protocol) server for WebSocket operations, providing tools to connect, send, receive, and manage WebSocket connections.
Installation
From GitHub
git clone https://github.com/shivam-jainn/websocat-mcp.git
cd websocat-mcp
bun install
bun run buildFrom npm (when published)
npm install -g websocat-mcpOr locally:
npm install websocat-mcpRelated MCP server: MCP Server Demo
Build
bun run buildUsage
This MCP server provides the following tools:
websocket_connect
Connect to a WebSocket server.
Parameters:
url(required): WebSocket URL (e.g.,ws://localhost:8080orwss://example.com)connectionId(optional): Unique identifier for this connection (auto-generated if not provided)
Example:
{
"url": "ws://localhost:8080",
"connectionId": "my-connection"
}websocket_send
Send a message through a WebSocket connection.
Parameters:
connectionId(required): Connection ID to send the message throughmessage(required): Message to send
Example:
{
"connectionId": "my-connection",
"message": "Hello, WebSocket!"
}websocket_receive
Receive messages from a WebSocket connection (waits for messages).
Parameters:
connectionId(required): Connection ID to receive messages fromtimeout(optional): Timeout in milliseconds (default: 5000)maxMessages(optional): Maximum number of messages to receive (default: 1)
Example:
{
"connectionId": "my-connection",
"timeout": 10000,
"maxMessages": 5
}websocket_close
Close a WebSocket connection.
Parameters:
connectionId(required): Connection ID to closecode(optional): Close code (default: 1000)reason(optional): Close reason
Example:
{
"connectionId": "my-connection",
"code": 1000,
"reason": "Done"
}websocket_list
List all active WebSocket connections.
Parameters: None
websocket_create_server
Create a WebSocket server.
Parameters:
port(optional): Port to listen on (default: 8080)hostname(optional): Hostname to bind to (default: localhost)
Example:
{
"port": 8080,
"hostname": "localhost"
}MCP Configuration
To use this MCP server with Cursor or other MCP clients, add it to your MCP configuration:
Local Installation
{
"mcpServers": {
"websocat-mcp": {
"command": "bun",
"args": ["/path/to/websocat-mcp/build/index.js"]
}
}
}Global Installation (npm)
{
"mcpServers": {
"websocat-mcp": {
"command": "websocat-mcp"
}
}
}Using bunx (no installation needed)
{
"mcpServers": {
"websocat-mcp": {
"command": "bunx",
"args": ["--bun", "websocat-mcp"]
}
}
}Features
✅ Connect to WebSocket servers
✅ Send messages through WebSocket connections
✅ Receive messages with timeout support
✅ Close connections gracefully
✅ List all active connections
✅ Create WebSocket servers
✅ Connection state management
✅ Error handling
Development
This project uses:
Bun - Fast JavaScript runtime
Model Context Protocol SDK - MCP server implementation
TypeScript - Type safety
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseCqualityDmaintenanceA Model Context Protocol server implementation that enables real-time data communication between web pages and client applications through WebSocket connections.Last updated21,861MIT
- Alicense-qualityDmaintenanceA minimal WebSocket-based MCP server implementation that enables modern tool integrations with VSCode, Claude, and other applications.Last updated7ISC
- Flicense-qualityDmaintenanceA WebSocket-based Model Control Protocol (MCP) server that processes model requests and provides responses. Supports chat and text completion actions with a standardized JSON protocol for AI model communication.Last updated1
- Alicense-qualityCmaintenanceAn MCP server for ROS 2 environments that connects via rosbridge WebSocket, enabling topic/service introspection, publish/subscribe, service calls, robot connectivity checks, and polishing pipeline operations.Last updatedApache 2.0
Related MCP Connectors
An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform
MCP server for interacting with the Supabase platform
MCP (Model Context Protocol) server for Appwrite
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/shivam-jainn/websocat-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server