demo-ts-mcp-client-server

demo-ts-mcp-client-server

3.3

If you are the rightful owner of demo-ts-mcp-client-server 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 project demonstrates a fundamental client-server interaction using the Model Context Protocol (MCP) to extend AI model capabilities.

Demo MCP Basic is a project that showcases the integration of AI models with external tools via the Model Context Protocol (MCP). The server acts as an MCP provider, offering basic calculation tools, while the client uses the AI SDK to interact with a Google AI model and connect to the MCP server. This setup allows AI models to access custom functionalities hosted on an MCP server, enhancing their capabilities. The project requires Node.js, npm, and a Google AI API Key for setup. It includes scripts for building and running the server and client in both production and development modes. The client script demonstrates connecting to the MCP server, fetching tools, configuring the AI model, executing prompts, and outputting results.

Features

  • Securely extends AI model capabilities with external tools.
  • Demonstrates client-server interaction using MCP.
  • Includes scripts for building and running in different modes.
  • Supports Google AI models via API Key or Vertex AI.
  • Illustrates tool fetching and AI model configuration.

Tools

  1. Addition Tool

    Performs addition operations.

  2. Subtraction Tool

    Performs subtraction operations.