MCP-Demo

MCP-Demo

3.2

If you are the rightful owner of MCP-Demo and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This repository provides a minimal yet functional example of the Model Context Protocol (MCP) using Python, demonstrating communication between a Large Language Model (LLM) agent and enterprise systems through JSON-RPC over HTTP, including support for Server-Sent Events (SSE).

The Model Context Protocol (MCP) example in Python showcases a client-server architecture where a Large Language Model (LLM) agent interacts with enterprise systems. The server is built using FastAPI and supports JSON-RPC for tool listing and invocation, as well as Server-Sent Events (SSE) for real-time communication. The client, implemented in Python, sends requests to the server to list and call tools. This setup is modular and can be extended to support additional features such as resources management and prompt handling. The example is designed to be a starting point for developers looking to integrate LLMs with enterprise systems using a standardized protocol.

Features

  • JSON-RPC over HTTP for standardized communication
  • FastAPI-based server with /rpc and /events endpoints
  • Server-Sent Events (SSE) for real-time updates
  • Modular structure for easy extension
  • Client-server interaction demonstration

Tools

  1. greet

    Greets the user