https://github.com/minimind-org/mcp-server-typescript-template
MCP Server Typescript Template
https://github.com/minimind-org/mcp-server-typescript-template
ai ai-tools claude mcp mcp-server server template typescript
Last synced: 5 months ago
JSON representation
MCP Server Typescript Template
- Host: GitHub
- URL: https://github.com/minimind-org/mcp-server-typescript-template
- Owner: minimind-org
- Created: 2025-03-31T03:42:38.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-03-31T09:41:05.000Z (6 months ago)
- Last Synced: 2025-03-31T10:35:48.516Z (6 months ago)
- Topics: ai, ai-tools, claude, mcp, mcp-server, server, template, typescript
- Language: TypeScript
- Homepage:
- Size: 51.8 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- mcp-index - MCP Server TypeScript Template - Create and customize Model Context Protocol servers using TypeScript to implement tools and operations that enhance interactions between AI models and external resources. This template includes a basic server setup with tools for simple operations like addition and demonstration tasks. (APIs and HTTP Requests)
README
# 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 numbersThe server uses the Model Context Protocol SDK to handle communication between AI models and external tools.
## Prerequisites
- Node.js (v16 or higher)
- npm or yarn## Project Structure
The project is structured as follows:
```
mcp-server-typescript-template/
├── common/
│ ├── constant.ts # Project constants
│ ├── errors.ts # Error handling utilities
│ └── types.ts # Type definitions
│ └── utils.ts # Utility functions├── operations/
│ └── example-operation.ts # Implementation of example operations
├── index.ts # Main server implementation
├── package.json
└── tsconfig.json
```
## InstallationClone the repository and install dependencies:
```bash
git clone
cd mcp-server-typescript-template
npm install
npm run test
npm run build
npm run start # this will start the server for testing
```## Configuration MCP Client (Claude Desktop)
edit your `claude_desktop_config.json` file to add the following:
```json
{
"mcpServers": {
"example": {
"command": "node",
"args": [
"/path/to/mcp-server-typescript-template/dist/index.js"
]
}
}
}```