trackmcp
Back to directory
zubhav

mcp-server-typescript-template

View on GitHub

MCP Server Template using @modelcontextprotocol Typescript SDK

0 stars TypeScriptDeveloper Kits Updated Mar 17, 2025

Documentation

MCP Tool Template

A template repository for building Model Context Protocol (MCP) tools.

Overview

This template provides a foundation for creating MCP-compatible tools that can be used with AI agents. Each tool follows the Model Context Protocol specification for standardized AI tool interactions.

Installation

bash
npm install

Creating New Tools

Tools are defined in the `src/tools` directory. Each tool should:

1. Define input/output schemas using Zod

2. Implement the MCP protocol interface

3. Include comprehensive tests

Tool Structure

code
src/
    └── calculator/
        ├── tools/
        │   ├── index.ts
        │   ├── add.ts
        │   └── subtract.ts
        ├── index.ts
        ├── prompt.ts
        └── schema.ts

Testing

Run the test suite:

bash
npm run test

Frequently asked questions

What is mcp-server-typescript-template?

mcp-server-typescript-template is MCP Server Template using @modelcontextprotocol Typescript SDK

How do I install mcp-server-typescript-template?

Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

Is mcp-server-typescript-template open source?

Yes — it is hosted on GitHub at https://github.com/zubhav/mcp-server-typescript-template.

Related MCP tools

Run your own MCP server? See who uses it and what to fix.

Measure it with TrackMCP