Mcpsock icon

Mcpsock

Enables building WebSocket-based applications that communicate using the FastMCP framework.

About

MCPSock is a Python library providing WebSocket client and server implementations tailored for the FastMCP framework. It offers a streamlined API for developing WebSocket applications capable of interacting using FastMCP, simplifying the creation of tools, resources, and prompts. Seamless integration with FastAPI applications and async/await support are included.

Key Features

  • Provides a standalone WebSocketClient for connecting to FastMCP WebSocket servers.
  • Offers a decorator-based WebSocketServer router for handling FastMCP communications.
  • Supports tools, resources, and prompts.
  • Facilitates easy integration with FastAPI applications.
  • Includes Async/await support.
  • 0 GitHub stars

Use Cases

  • Building custom tools accessible via WebSocket within the FastMCP framework.
  • Creating WebSocket-based resources for data exchange.
  • Implementing real-time communication between clients and a FastMCP server.
Craft Better Prompts with AnyPrompt