mcp-ws-example
Language:
Python
Stars:
5
Forks:
0
README
Message Communication Protocol (MCP) Implementations
This repository demonstrates two implementations of the Model Context Protocol (MCP) by Anthropic AI, a JSON-RPC based protocol for bi-directional communication that enables developers to build secure, two-way connections between their data sources and AI-powered tools.
1. Memory Stream Implementation (run on same host)
Overview
The Memory Stream implementation demonstrates local client-server communication using in-memory channels. Both client and server operate within the same host.
Protocol Flow
Client Server
| |
|------ initialize() --------->| (sends capabilities)
||
||
||
||
||
| Publisher info
More MCP servers built with Python
🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.