
๐ 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
by jhon2c
Project Details
- jhon2c/mcp-boilerplate
- Last Updated: 4/6/2025
Recomended MCP Servers
๐งฉ
A11y MCP Server
An MCP (Model Context Protocol) server for performing accessibility audits on webpages using axe-core. Use the results in...
๐งฉ
Test Server
๐งฉ
Everything Search
MCP server for Everything Search integration
๐งฉ
ไปปๅก็ฎก็ๅทฅๅ
ท
MCP ไปปๅก็ฎก็ๅทฅๅ ท
DefiLlama API Server
Atlassian Integration Server
MCP server for integrating Atlassian products (Confluence, Jira) with Model Context Protocol
๐งฉ
Master Content Plan Generator
Osmosis
Osmosis protocol tools for LLMs
๐งฉ
NewsDigest
๐งฉ
MCP Hubspot
An MCP server implementation that seamlessly connects Claude and other AI models to HubSpot CRM data. Provides tools...
๐งฉ
Metasploit Integration Server
MCP Server for Metasploit
๐งฉ
Social Media Server





