mcp-starter-pack

bartek-890/mcp-starter-pack

3.2

If you are the rightful owner of mcp-starter-pack and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This document provides a structured overview of a minimal starter pack for building Model Context Protocol (MCP) servers using TypeScript and the official MCP SDK.

Tools
2
Resources
0
Prompts
0

mcp-starter-pack

A minimal starter pack for building MCP (Model Context Protocol) servers using TypeScript and the official MCP SDK.

Features

  • Simple MCP server setup with TypeScript
  • Example tools: add (adds two numbers), leads (returns a sample lead)
  • Example resource: greeting (returns a greeting message)

Project Structure

src/
  main.ts                # Entry point
  server/
    MCPServerBuilder.ts  # Server builder abstraction
    types.ts             # Tool and resource type definitions
    tools/
      addTool.ts         # Adds two numbers
      leadsTool.ts       # Returns a sample lead
    resources/
      greetingResource.ts # Returns a greeting message

Getting Started

Prerequisites

  • Node.js (v18+ recommended)

Install dependencies

npm install

Run in development mode

npm run dev

Build and start

npm run build
npm start

Usage

  • The server registers example tools and resources.
  • You can extend it by adding your own tools/resources in the respective folders and registering them in src/main.ts.

Tools

  • add: Adds two numbers (a, b).
  • leads: Returns a sample list of leads.

Resources

  • greeting: Returns a greeting message for a given name.

License

MIT