mcp-simple-demo

mcp-simple-demo

3.3

If you are the rightful owner of mcp-simple-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.

A simple demonstration of the Model Context Protocol (MCP) with a Python server and client.

The MCP Simple Demo project showcases a basic implementation of the Model Context Protocol (MCP), which facilitates AI models in accessing external tools and data sources. The project includes an MCP-compliant server equipped with simple tools, a client for server interaction, and examples of tool calls and responses. The server provides two primary tools: 'hello_world', which returns a greeting message, and 'add', which sums two numbers. The client can operate in both interactive and command-line modes, allowing users to list available tools and execute commands. The protocol uses Server-Sent Events (SSE) for connection establishment, where the client connects to the server's '/sse' endpoint to receive a session ID, which is then used for tool calls. The project is open for contributions and is hosted on GitHub.

Features

  • MCP-compliant server with simple tools
  • Interactive and command-line client modes
  • Server-Sent Events (SSE) for connection
  • Tool examples: 'hello_world' and 'add'
  • Open for contributions on GitHub

Tools

  1. hello_world

    Return to greeting message

  2. add

    Addition tool