template
MCP server from BoLiDev/template-mcp-server
claude mcp add --transport stdio bolidev-template-mcp-server npm run dev \ --env ENV_KEY="Sample environment variable"
How to use
This MCP server template provides a ready-to-use starting point for building a Model Context Protocol (MCP) server in TypeScript. The project uses npm scripts to manage development, including building, watching for changes, linting, formatting, and running the server in development mode. To start the server during development, the recommended command is npm run dev, which typically compiles TypeScript sources (if needed) and launches the main entry point for the MCP server. The repository's structure indicates the main entry is src/index.ts, which will be compiled or executed depending on the setup. You can also use npm run build to produce a production-ready bundle and npm run watch to auto-rebuild on file changes. Tools provided by this template include a built-in linting step, formatting, and an Inspector-based test workflow via npm run inspect (as described by the development section).
How to install
Prerequisites:
- Node.js (LTS version) and npm installed on your system
- Git for cloning the repository
Installation steps:
- Clone the repository: git clone <repository-url>
- Navigate to the project directory: cd bolidev-template-mcp-server
- Install dependencies: npm install
- Build the project (if you plan to run a production build): npm run build
- Run the server in development mode: npm run dev
Optional development tools:
- Start watch mode (auto-rebuild on changes): npm run watch
- Lint the code: npm run lint
- Format the code: npm run format
- Run tests with Inspector: npm run inspect
Additional notes
Environment variables:
- ENV_KEY: Sample environment variable (as noted in the README). Add any additional environment-specific configuration here.
Common issues:
- If npm install fails due to network restrictions, configure npm to use a proxy or check your network settings.
- Ensure TypeScript compiler options align with your runtime target when building.
- If the dev script relies on a compiled output, ensure the build step completes successfully before starting the dev server.
Configuration tips:
- Use npm run watch during development to automatically rebuild on changes.
- Use npm run lint and npm run format to maintain code quality and consistency.
- If you publish or reuse this template, consider adjusting the npm package name or scripts to fit your project workflow.
Related MCP Servers
zen
Selfhosted notes app. Single golang binary, notes stored as markdown within SQLite, full-text search, very low resource usage
MCP -Deepseek_R1
A Model Context Protocol (MCP) server implementation connecting Claude Desktop with DeepSeek's language models (R1/V3)
mcp-fhir
A Model Context Protocol implementation for FHIR
mcp
Inkdrop Model Context Protocol Server
mcp-appium-gestures
This is a Model Context Protocol (MCP) server providing resources and tools for Appium mobile gestures using Actions API..
dubco -npm
The (Unofficial) dubco-mcp-server enables AI assistants to manage Dub.co short links via the Model Context Protocol. It provides three MCP tools: create_link for generating new short URLs, update_link for modifying existing links, and delete_link for removing short links.