tutorial-mcp

tutorial-mcp

3.2

If you are the rightful owner of tutorial-mcp 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 is a minimal example of a JavaScript project using the Model Context Protocol (MCP) to build server-client applications.

The MCP Sample for JavaScript is a foundational project designed to demonstrate the integration of Model Context Protocol (MCP) in JavaScript applications. It provides a basic server-client setup where the server is built using `StdioServerTransport` and offers simple tools and resources. The server can perform basic operations like adding two numbers and generating personalized greetings. The client, although not integrated with a Language Model (LLM) for negotiation, can explicitly call the server to access its tools and resources. This project serves as a starting point for developers looking to explore MCP in JavaScript environments.

Features

  • Simple server-client architecture using MCP.
  • Server built with `StdioServerTransport`.
  • Basic tools like addition and personalized greeting resources.
  • Inspector tool for testing server functionalities.
  • Client setup for explicit server communication.

Tools

  1. add` tool

    For simple mathematical addition calculations

  2. greeting/{name}` resource template

    Used to generate personalized greetings