โœจ From vibe coding to vibe deployment. UBOS MCP turns ideas into infra with one message.

Learn more

MCP Banner

๐Ÿš€ MCP Boilerplate

Powered by Bun โšก

A modern, lightning-fast boilerplate for Model Context Protocol (MCP) applications

Node.js Bun License TypeScript


๐Ÿ”ฅ 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, or yarn)

โšก 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

CommandDescription
bun run devStart dev server with hot reload
bun run buildCompile TypeScript
mcp-boilerplateRun compiled CLI

๐ŸŒ Environment Setup

Create .env file:

PORT=3000 
MCP_API_KEY=your_api_key_here
DEBUG=mcp:*

โœจ Setup the MCP server on Cursor

  1. Install and run the server
  2. Go to Cursor MCP Settings Files > Preferences > Cursor Settings > MCP
  3. Add a new MCP server + Add new global MCP server
  4. 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

  1. Create feature branch
  2. Commit changes
  3. Push branch
  4. Open PR

๐Ÿ“„ License MIT - See LICENSE

Happy Coding!

Featured Templates

View More
AI Assistants
Image to text with Claude 3
152 1366
Customer service
Multi-language AI Translator
136 921
AI Characters
Your Speaking Avatar
169 928
Data Analysis
Pharmacy Admin Panel
252 1957
AI Engineering
Python Bug Fixer
119 1433

Start your free trial

Build your solution today. No credit card required.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.