MCP Server
MCP Boilerplate
A modern, lightning-fast starter template for building Model Context Protocol applications with Bun, enabling developers to create MCP servers with TypeScript support, validation, and environment configuration.
2
GitHub Stars
11/17/2025
Last Updated
No Configuration
Please check the documentation below.
README Documentation

š 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:
Dev:
š¤ Contributing Fork repo
- Create feature branch
- Commit changes
- Push branch
- Open PR
š License MIT - See LICENSE
Happy Coding!
Quick Actions
Key Features
Model Context Protocol
Secure Communication
Real-time Updates
Open Source