fastmcp-boilerplate
If you are the rightful owner of fastmcp-boilerplate 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.
FastMCP is a TypeScript framework designed for building Model Context Protocol (MCP) servers, providing a structured approach to server development.
fastmcp-boilerplate
A boilerplate project for building MCP servers using FastMCP, a TypeScript framework for building Model Context Protocol (MCP) servers.
Prerequisites
This project uses Bun, a fast all-in-one JavaScript runtime, package manager, and bundler. You can install it following the official documentation.
Getting Started
To install dependencies:
bun install
To run the project:
bun run index.ts
To run tests:
bun test
Another way to run the server is to use the official MCP Inspector to inspect your server with a Web UI:
bun run inspect
Project Structure
src/index.ts
: Main entry point for the MCP serversrc/add.ts
: Example module with an add functionsrc/add.test.ts
: Example test for the add function
About
This project is a boilerplate inspired by the fastmcp-boilerplate.