Template MCP Server

Template MCP Server

A CLI tool to quickly get started building your very own MCP (Model Context Protocol) server using FastMCP

62
Stars
36
Forks
5
Releases

Overview

This repository provides a template for quickly bootstrapping an MCP server project. It includes TypeScript support, basic server setup, and dual transport options (stdio and HTTP via SSE) built on the FastMCP framework. The template lays out the structure for defining MCP tools, resources, and prompts, and ships with TypeScript configuration along with development scripts and configuration. The server can run in stdio mode for local CLI tooling or in HTTP mode for web-based interactions, enabling sharing across machines. Cursor integration is demonstrated with examples for how to connect via stdio or SSE and how to configure mcp.json files for portable configurations. The default setup uses Bun for runtime in package.json, but you can customize scripts to run with Node.js or another runtime. It also provides sample code for adding custom tools, resources, and prompts, and references documentation for FastMCP and the Model Context Protocol.

Details

Owner
mcpdotdirect
Language
JavaScript
License
MIT License
Updated
2025-12-07

Features

FastMCP

Built using the FastMCP framework for simpler implementation

Dual Transport Support

Run your MCP server over stdio or HTTP

TypeScript

Full TypeScript support for type safety

Extensible

Easy to add custom tools, resources, and prompts

Audience

MCP developersBootstrap a new MCP server project with TypeScript and dual transport options.
Tooling teamsProvides a ready-to-use skeleton to build and share MCP tools, resources, and prompts.

Tags

FastMCPMCPModel Context ProtocolTypeScriptstdioHTTPSSECursorCLItemplateservertools-resources-promptsextensible