MCP.so
登录

MCP Server TypeScript Template

@minimind-org

关于 MCP Server TypeScript Template

MCP Server Typescript Template

基本信息

分类

开发工具

运行时

node

传输方式

stdio

发布者

minimind-org

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "example": {
      "command": "node",
      "args": [
        "/path/to/mcp-server-typescript-template/dist/index.js"
      ]
    }
  }
}

工具

未检测到工具

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

概览

What is MCP Server TypeScript Template?

MCP Server TypeScript Template is a starter project for building Model Context Protocol (MCP) servers with TypeScript. It provides a simple example server with demonstration tools—an example operation and an addition tool—to show how to implement custom tools using the MCP SDK. This template is aimed at developers who want to create or extend MCP servers for AI‑model tool integration.

How to use MCP Server TypeScript Template?

Clone the repository, install dependencies (npm install), run tests (npm run test), build (npm run build), and start the server (npm run start). To use the server with Claude Desktop, add an entry in claude_desktop_config.json pointing to the built dist/index.js file with the command node.

Key features of MCP Server TypeScript Template

  • Provides example operation and addition tools.
  • Written in TypeScript with full type definitions.
  • Integrates with the Model Context Protocol SDK.
  • Includes test, build, and start scripts.
  • Demonstrates a customizable project structure.
  • Supports Node.js v16 or higher.

Use cases of MCP Server TypeScript Template

  • Learning how to build an MCP server from scratch.
  • Prototyping custom tools for AI model interaction.
  • Creating a foundation for production MCP servers.
  • Extending with new operations for specific workflows.

FAQ from MCP Server TypeScript Template

What are the prerequisites for using this template?

Node.js v16 or higher and npm or yarn are required.

How do I install and run the server?

Clone the repository, run npm install, then npm run build, and finally npm run start to start the server for testing.

How can I configure it with Claude Desktop?

Edit your claude_desktop_config.json to add an entry under mcpServers that uses "command": "node" with "args": ["/path/to/dist/index.js"].

What tools are included by default?

The template includes an example operation and an addition tool that adds two numbers.

Can I add my own tools?

Yes, the template is designed to demonstrate how to implement custom tools. You can add new files under the operations/ folder and register them in the server.

评论

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