Provides linting capabilities to ensure code quality and consistency in the MCP server project.
Supports version control operations for the MCP server project, including cloning repositories.
Enables interaction with GitHub repositories, including cloning and forking operations for MCP server development.
Automates workflows for linting, formatting, testing, and publishing package updates to NPM.
Facilitates package management and publishing of the MCP server to the NPM registry.
Provides code formatting capabilities to maintain consistent code style in the MCP server project.
Automates version management and package publishing to NPM based on commit messages.
Supports static type checking and TypeScript ESLint integration for enhanced code quality.
FastMCP Boilerplate
A boilerplate for FastMCP.
This boilerplate is a good starting point for building an MCP server. It includes a basic setup for testing, linting, formatting, and publishing to NPM.
Development
To get started, clone the repository and install the dependencies.
Note
If you are starting a new project, you may want to fork fastmcp-boilerplate and start from there.
Start the server
If you simply want to start the server, you can use the start
script.
However, you can also interact with the server using the dev
script.
This will start the server and allow you to interact with it using CLI.
Testing
A good MCP server should have tests. However, you don't need to test the MCP server itself, but rather the tools you implement.
In the case of this boilerplate, we only test the implementation of the add
tool.
Linting
Having a good linting setup reduces the friction for other developers to contribute to your project.
This boilerplate uses Prettier, ESLint and TypeScript ESLint to lint the code.
Formatting
Use npm run format
to format the code.
GitHub Actions
This repository has a GitHub Actions workflow that runs linting, formatting, tests, and publishes package updates to NPM using semantic-release.
In order to use this workflow, you need to:
- Add
NPM_TOKEN
to the repository secrets- Create a new automation token
- Add token as
NPM_TOKEN
environment secret (Settings → Secrets and Variables → Actions → "Manage environment secrets" → "release" → Add environment secret)
- Grant write access to the workflow (Settings → Actions → General → Workflow permissions → "Read and write permissions")
This server cannot be installed
A starter template for building MCP servers with FastMCP, providing testing, linting, formatting, and NPM publishing setup.
Related MCP Servers
- -securityAlicense-qualityFastMCP is a comprehensive MCP server allowing secure and standardized data and functionality exposure to LLM applications, offering resources, tools, and prompt management for efficient LLM interactions.Last updated -3PythonMIT License
- -securityFlicense-qualityA starter template for building Model Context Protocol (MCP) servers, enabling developers to create and add custom tools that can be integrated with Claude Desktop.Last updated -2TypeScript
- -securityFlicense-qualityA collection of MCP servers built with FastMCP framework that handle various tasks including customer interviews, E2E testing, and go-live processes, enabling seamless integration with GitHub Copilot through VSCode.Last updated -Python
- -securityAlicense-qualityA template repository for creating MCP servers that can be easily containerized and used with MCP clients.Last updated -7381MIT License