devbrother2024 avatar

Devbrother2024 Typescript Mcp Server Boilerplate

devbrother2024/typescript-mcp-server-boilerplate

A TypeScript boilerplate for spinning up MCP servers quickly. Ships with example tools for basic calculator operations (add, subtract, multiply, divide) and a greeting function, plus a sample resource that exposes server information. The template uses Zod schemas for input validation and includes the full project structure you need to build, compile, and connect via stdio transport. Good starting point if you're building custom MCP tooling and want to skip the setup ceremony. The README walks through adding new tools and resources with concrete examples like weather lookups and config endpoints, and includes Cursor integration instructions for local testing.

GitHub stars
2
tools
3
auth
Secret needed
transport
HTTP
last updated
Sep 20, 2025

Tools

3 tools

Public tool metadata for what this MCP can expose to an agent.

calculator계산기 도구 예시로, 두 숫자에 대해 덧셈, 뺄셈, 곱셈, 나눗셈을 수행합니다.

계산기 도구 예시로, 두 숫자에 대해 덧셈, 뺄셈, 곱셈, 나눗셈을 수행합니다.

No parameter schema in public metadata yet.

get_weather도시의 현재 날씨 정보를 조회하는 도구 예시입니다.

도시의 현재 날씨 정보를 조회하는 도구 예시입니다.

No parameter schema in public metadata yet.

greet이름을 받아 인사말을 반환하는 간단한 인사 도구 예시입니다.

이름을 받아 인사말을 반환하는 간단한 인사 도구 예시입니다.

No parameter schema in public metadata yet.

Sponsors

Readme

TypeScript MCP Server 보일러플레이트

TypeScript MCP SDK를 활용하여 Model Context Protocol (MCP) 서버를 빠르게 개발할 수 있는 보일러플레이트 프로젝트입니다.

📁 프로젝트 구조

typescript-mcp-server-boilerplate/
├── src/
│   └── index.ts          # MCP 서버 메인 진입점
├── build/                # 컴파일된 JavaScript 파일 (빌드 후 생성)
├── package.json          # 프로젝트 의존성 및 스크립트
├── tsconfig.json         # TypeScript 설정
└── README.md            # 프로젝트 문서

🚀 시작하기

1. 의존성 설치

npm install

2. 서버 이름 설정

src/index.ts 파일에서 서버 이름을 수정하세요:

const server = new McpServer({
    name: 'typescript-mcp-server', // 여기를 원하는 서버 이름으로 변경
    version: '1.0.0',
    // 활성화 하고자 하는 기능 설정
    capabilities: {
        tools: {},
        resources: {}
    }
})

💡 팁: 현재 보일러플레이트에는 이미 계산기와 인사 도구, 그리고 서버 정보 리소스가 예시로 구현되어 있습니다.

3. 빌드

npm run build

4. 실행

node build/index.js

빌드가 성공하면 build/ 디렉토리에 컴파일된 JavaScript 파일이 생성되고, 서버가 MCP 클라이언트의 연결을 대기합니다.

🛠️ 개발 가이드

MCP 도구(Tool) 추가하기

MCP 서버에 새로운 도구를 추가하려면 server.tool() 메서드에 Zod 스키마를 직접 정의하여 등록합니다:

import { z } from 'zod'

View the full README on GitHub

Details

Repository
github.com/devbrother2024/typescript-mcp-server-boilerplate
Transport
HTTP
Auth
Required
Registry
MCP registry, active