The server provides integration with ESLint through development scripts, allowing for linting and automatic fixing of code issues during development.
Provides GitHub integration for issue tracking and contributions, allowing users to report problems and contribute through pull requests.
Integrates with npm for package management, installation of dependencies, and running scripts for development, building, and linting.
Built with full TypeScript support, offering type safety, strict type checking, and a strongly-typed interface for creating MCP tools and resources.
MCP Server TypeScript Boilerplate
A clean, reusable TypeScript boilerplate for building Model Context Protocol (MCP) servers.
Features
- Clean Architecture: Modular design with clear separation of concerns
- Type Safety: Full TypeScript support with strict type checking
- Easy Configuration: Simple configuration object for tools and resources
- Built-in Examples: Sample tools and resources to get you started
- Error Handling: Comprehensive error handling with meaningful messages
- Graceful Shutdown: Proper cleanup on process termination
- Development Ready: Hot reload and debugging support
Quick Start
Installation
Development
Build
Usage
Adding Custom Tools
Tools are functions that can be called by MCP clients. Add them to the tools
array in your server configuration:
Adding Custom Resources
Resources are static or dynamic content that can be read by MCP clients:
Configuration
Modify the serverConfig
object to customize your server:
Project Structure
Example Tools
The boilerplate includes several example tools:
- echo: Echo back input messages
- add_numbers: Add two numbers together
- current_time: Get current time in various formats
Example Resources
- info://server/status: Server status and runtime information
- info://server/config: Server configuration details
Development
Scripts
npm run dev
- Start development server with hot reloadnpm run build
- Build for productionnpm start
- Start production servernpm run clean
- Clean build artifactsnpm run lint
- Run ESLintnpm run lint:fix
- Fix ESLint issues
Testing Your Server
You can test your MCP server using any MCP client. The server communicates via stdio, so you can also test it directly:
Deployment
As a Standalone Application
As a Library
You can also use this as a library in other projects:
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
License
MIT License - see LICENSE file for details
Support
For issues and questions:
- Create an issue on GitHub
- Check the MCP documentation
- Review the example implementations
Changelog
1.0.0
- Initial release
- Basic tool and resource support
- TypeScript boilerplate
- Example implementations
This server cannot be installed
A clean, reusable TypeScript boilerplate for building Model Context Protocol servers with support for custom tools and resources.
Related MCP Servers
- AsecurityAlicenseAqualityA production-ready template for creating Model Context Protocol servers with TypeScript, providing tools for efficient testing, development, and deployment.Last updated -132732JavaScriptMIT License
- AsecurityFlicenseAqualityA TypeScript-based template for developing Model Context Protocol servers with features like dependency injection and service-based architecture, facilitating the creation and integration of custom data processing tools.Last updated -194TypeScript
- AsecurityAlicenseAqualityA TypeScript-based template for building Model Context Protocol servers, featuring fast testing, automated version management, and a clean structure for MCP tool implementations.Last updated -13274TypeScriptMIT License
- -securityFlicense-qualityA template repository for building Model Context Protocol (MCP) servers with TypeScript, featuring full TypeScript support, testing setup, CI/CD pipelines, and modular architecture for easy extension.Last updated -0TypeScript