mcp-server-demo

pcingola/mcp-server-demo

3.1

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

The Model Context Protocol (MCP) server facilitates communication between clients and servers using a structured JSON-RPC format.

The Model Context Protocol (MCP) server is designed to handle requests and responses in a structured manner using JSON-RPC. It allows clients to initialize connections, send notifications, and call various tools or methods on the server. The protocol is particularly useful for applications that require a standardized way to communicate complex data structures and operations. MCP supports capabilities such as versioning, client information exchange, and tool invocation, making it a versatile choice for developers looking to implement robust server-client interactions.

Features

  • JSON-RPC Based: Utilizes JSON-RPC for structured communication between clients and servers.
  • Tool Invocation: Supports calling various tools or methods on the server with specified parameters.
  • Versioning: Allows for protocol version specification to ensure compatibility.
  • Client Information Exchange: Facilitates the exchange of client information such as name and version.
  • Error Handling: Provides mechanisms to handle errors in tool invocation and other operations.

Usages

usage with stdio

mcp run server.py

usage with mcp inspector

mcp dev server.py

Tools

  1. add

    A tool that performs addition of two numbers.