A boilerplate project for building MCP servers using FastMCP, a TypeScript framework for building Model Context Protocol (MCP) servers.
This project uses Bun, a fast all-in-one JavaScript runtime, package manager, and bundler. You can install it following the official documentation.
To install dependencies:
bun installTo run the project:
bun run index.tsTo run tests:
bun testAnother way to run the server is to use the official MCP Inspector to inspect your server with a Web UI:
bun run inspectsrc/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
This project is a boilerplate inspired by the fastmcp-boilerplate.