MCP.so
登录

MCP TypeScript Simple Template

@ChenReuven

关于 MCP TypeScript Simple Template

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.

基本信息

分类

开发工具

运行时

node

传输方式

stdio

发布者

ChenReuven

配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

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.

评论

开发工具 分类下的更多 MCP 服务器