jarodtaylor/fastify-mcp-server-boilerplate
If you are the rightful owner of fastify-mcp-server-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.
This boilerplate provides a production-ready setup for building Model Context Protocol (MCP) servers using Fastify, TypeScript, and Docker.
The Fastify MCP Server Boilerplate is designed to streamline the development of MCP servers by integrating essential tools and technologies. Built on the robust fastify-mcp library, it handles all MCP protocol logic, session management, and transport layers. The boilerplate leverages modern technologies like TypeScript for type safety, Biome for linting and formatting, and tsup for fast bundling. It also includes Docker for containerization, ensuring that your server is ready for production deployment. With a focus on performance and developer experience, this setup allows you to quickly prototype and deploy MCP servers, making it ideal for building AI-powered developer tools, integrations, and more.
Features
- Modern Tech Stack: Utilizes TypeScript, Biome, and tsup for a fast and efficient development experience.
- Zero-Config Developer Experience: Offers hot reload, pre-configured VSCode settings, and comprehensive scripts for easy setup.
- Deployment Ready: Includes multi-stage Docker builds and Docker Compose configurations for seamless production deployment.
- Observability: Provides request tracing, health endpoints, and structured logging for enhanced monitoring.
- Security: Features non-root container users and environment-based configurations for secure deployments.
Usages
usage with cursor ide
{ "mcpServers": { "my-server": { "command": "node", "args": ["dist/index.js"], "cwd": "/path/to/your/mcp-server", "env": { "NODE_ENV": "production" } } } }