mcp-ts-simple-template

ChenReuven/mcp-ts-simple-template

3.2

If you are the rightful owner of mcp-ts-simple-template 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 TypeScript template for building Model Context Protocol (MCP) servers.

The MCP TypeScript Simple Template is designed to provide a foundational structure for developers looking to create Model Context Protocol (MCP) servers using TypeScript. This template includes a basic server setup along with a sample Body Mass Index (BMI) calculator tool, showcasing how to define and implement MCP tools with input validation using the Zod library. The server is configured to connect to standard input/output for communication, making it versatile for integration with various AI systems. The project is structured to facilitate easy customization and extension, allowing developers to add their own tools and functionalities. With prerequisites like Node.js and npm or yarn, the template ensures a smooth setup process. The project structure includes key files such as `index.ts` for the main server implementation, `package.json` for managing dependencies, and `tsconfig.json` for TypeScript configuration. This template is ideal for developers looking to quickly set up an MCP server and start building custom tools.

Features

  • Basic MCP server setup in TypeScript
  • Sample BMI calculator tool included
  • Input validation using Zod
  • Standard I/O communication
  • Custom tool creation pattern