What is MCP-Demo?
MCP-Demo is a Python implementation example of the Model Context Protocol (MCP), showcasing how a Large Language Model (LLM) agent can communicate with enterprise systems through a standardized client-server interface using JSON-RPC over HTTP.
How to use MCP-Demo?
To use MCP-Demo, you need to start the server using FastAPI and then run the client to interact with the server. Follow the instructions in the repository to set up the environment and execute the provided scripts.
Key features of MCP-Demo?
- Demonstrates a basic MCP server exposing tools via JSON-RPC.
- Client-server communication using JSON-RPC over HTTP.
- Simulated real-time connection with Server-Sent Events (SSE).
- Modular structure for easy extension with additional tools and resources.
Use cases of MCP-Demo?
- Building applications that require real-time communication with LLMs.
- Integrating various tools and services through a standardized protocol.
- Prototyping and testing new features in LLM-based applications.
FAQ from MCP-Demo?
- What is the Model Context Protocol (MCP)?
MCP is a protocol that allows LLMs to interact with enterprise systems in a standardized way.
- How do I run the server?
You can run the server by installing FastAPI and Uvicorn, then executing the server script provided in the repository.
- Can I extend this example?
Yes! The structure is modular, allowing you to add more tools and features as needed.