MCP.so
Sign In
Servers

MCP TypeScript Simple Template

@ChenReuven

A lightweight, ready-to-use TypeScript template for building Model Context Protocol (MCP) servers. This template provides the essential scaffolding to create custom AI tools that can be seamlessly integrated with large language models.

Overview

What is MCP TypeScript Simple Template?

It is a TypeScript template for building Model Context Protocol (MCP) servers. It provides a foundation for creating custom MCP tools that integrate with AI systems, and includes a sample BMI calculator tool to demonstrate how to set up a server, define tools with Zod validation, and communicate over standard I/O.

How to use MCP TypeScript Simple Template?

Clone the repository, install dependencies with npm install, then build and start the server using npm start. For development, modify index.ts to add your own tools and run npm run build to compile.

Key features of MCP TypeScript Simple Template

  • Simple TypeScript template for MCP servers
  • Sample BMI calculator tool included
  • Uses Zod for input validation
  • Connects via standard I/O
  • Demonstrates tool definition pattern

Use cases of MCP TypeScript Simple Template

  • Quickly prototyping MCP tools
  • Learning how to build MCP servers with TypeScript
  • Starting point for custom AI integration tools
  • Testing MCP tool concepts locally

FAQ from MCP TypeScript Simple Template

What is this template for?

It is a foundation for creating custom Model Context Protocol servers in TypeScript.

What tools are included by default?

It includes a sample BMI calculator tool.

What are the prerequisites?

Node.js v20 or higher and npm or yarn.

How do I add a custom tool?

Modify index.ts and follow the pattern using server.tool() with a Zod schema and an async handler.

What license is used?

ISC license.

Tags

More from Developer Tools