
🚀 MCP Boilerplate
Powered by Bun ⚡
A modern, lightning-fast boilerplate for Model Context Protocol (MCP) applications
🔥 Features
- Blazing-fast MCP with Bun
- Modern TypeScript-first architecture
- MCP SDK integration out-of-the-box (
@modelcontextprotocol/sdk) - Express 5.x server with proper TypeScript support
- Robust validation using Zod schemas
- Smart logging with Morgan
- Environment configuration support
- CLI-ready implementation
🛠️ Prerequisites
- Bun 1.0+ or Node.js 20+
- Package manager (
bun,npm,pnpm, oryarn)
⚡ Quick Start
# Clone repository
git clone https://github.com/jhon2c/mcp-boilerplate.git
cd mcp-boilerplate
# Install dependencies (with Bun) [Recommended]
bun install
# OR with npm
npm install
# Start development server
bun run dev
🚄 Development Scripts
| Command | Description |
|---|---|
bun run dev | Start dev server with hot reload |
bun run build | Compile TypeScript |
mcp-boilerplate | Run compiled CLI |
🌐 Environment Setup
Create .env file:
PORT=3000
MCP_API_KEY=your_api_key_here
DEBUG=mcp:*
✨ Setup the MCP server on Cursor
- Install and run the server
- Go to Cursor MCP Settings
Files > Preferences > Cursor Settings > MCP - Add a new MCP server
+ Add new global MCP server - Paste the setup JSON
{
"mcpServers": {
"mcp-boilerplate": {
"url": "http://localhost:3001/sse"
}
}
}
📂 Project Structure
mcp-boilerplate/
├── src/
│ ├── index.ts
│ ├── config/
│ ├── services/
│ └── types/
└── build/
📦 Key Dependencies
Runtime:
- @modelcontextprotocol/sdk
- express@5
- zod
- ky
Dev:
- tsx
🤝 Contributing Fork repo
- Create feature branch
- Commit changes
- Push branch
- Open PR
📄 License MIT - See LICENSE
Happy Coding!
MCP Boilerplate
Project Details
- jhon2c/mcp-boilerplate
- Last Updated: 4/6/2025
Recomended MCP Servers
The implementation of Model Context Protocol (MCP) server for VictoriaLogs.
Penrose server for the Infinity-Topos environment
Firefly MCP
A GUI Agent application based on UI-TARS(Vision-Language Model) that allows you to control your computer using natural language.
An unofficial model context protocol for the NHL API. Chat with live NHL games, scores, stats, and teams,...
A Model Context Protocol (MCP) integration that provides Claude Desktop with autonomous browser automation capabilities. This agent enables...
A Model Context Protocol (MCP) server for converting files between different formats
An MCP server that tracks the historical changes of Twitter usernames.
An MCP server for interacting with the Financial Datasets stock market API.
Portainer MCP server





