MCP Server TypeScript Template
A template for creating Model Context Protocol (MCP) servers using TypeScript. This project demonstrates how to implement a simple MCP server with custom tools.
Overview
This template implements a basic MCP server that provides tools for:
Example operation: A simple demonstration operation
Addition: A tool that adds two numbers
The server uses the Model Context Protocol SDK to handle communication between AI models and external tools.
Related MCP server: MCP Server Template
Prerequisites
Node.js (v16 or higher)
npm or yarn
Project Structure
The project is structured as follows:
Installation
Clone the repository and install dependencies:
Configuration MCP Client (Claude Desktop)
edit your claude_desktop_config.json file to add the following: