Mcpsock MCP Server

WebSocket client and server implementation for FastMCP framework

Local serverstdioPython

What is the Mcpsock MCP server?

If you already use Mcpsock, the mcpsock mcp server is the piece that lets your assistant work with it directly. WebSocket client and server implementation for FastMCP framework.

What the server does

MCPSock is a Python library that provides WebSocket client and server implementations for the FastMCP framework. It offers a clean, easy-to-use API for building WebSocket-based applications that communicate using the FastMCP framework.

  • WebSocketClient — A standalone client for connecting to FastMCP WebSocket servers
  • WebSocketServer — A decorator-based router for handling FastMCP WebSocket communications
  • Support for tools, resources, and prompts
  • Easy integration with FastAPI applications
  • Async/await support

Installation

mcpsock on PyPI is all you need. Most clients run it directly, so configuration is a few lines and a restart.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • WebSocketClient — The WebSocketClient class provides methods for connecting to a FastMCP WebSocket server and interacting with it
  • WebSocketServer — The WebSocketServer class provides a decorator-based API for registering handlers for FastMCP messages
  • Setup — The Setup tool exposed by this server

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Where it fits

Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Mcpsock's toolset — WebSocketClient, WebSocketServer, Setup — is a fair guide to whether it matches your workflow.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Available tools

ToolWhat it does
WebSocketClientThe WebSocketClient class provides methods for connecting to a FastMCP WebSocket server and interacting with it.
WebSocketServerThe WebSocketServer class provides a decorator-based API for registering handlers for FastMCP messages.
SetupThe Setup tool exposed by this server.

How to install the Mcpsock MCP server

{
  "mcpServers": {
    "mcpsock": {
      "command": "uvx",
      "args": ["mcpsock"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Example prompts to try

  • Use Mcpsock to WebSocketClient.
  • Use Mcpsock to WebSocketServer.
  • Use Mcpsock to Setup.

Frequently asked questions

It connects Mcpsock to MCP-compatible AI assistants such as Claude and Cursor, exposing 3 tools (WebSocketClient, WebSocketServer, Setup) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Mcpsock directly.