Skip to main content
Glama
jhon2c

MCP Boilerplate

by jhon2c

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


Related MCP server: MCP Server Starter (TypeScript)

πŸ› οΈ Prerequisites


⚑ 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

  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:

Dev:


🀝 Contributing Fork repo

  1. Create feature branch

  2. Commit changes

  3. Push branch

  4. Open PR

πŸ“„ License MIT - See LICENSE

Happy Coding!

A
license - permissive license
-
quality - not tested
D
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
–Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    C
    quality
    D
    maintenance
    A production-ready template for building Model Context Protocol servers in TypeScript, offering fast development with Bun, Biome linting, and automated version management.
    1
    82
    MIT
  • F
    license
    -
    quality
    D
    maintenance
    A minimal, production-ready TypeScript starter template for building Model Context Protocol (MCP) servers with auto-loading architecture for tools, resources, and prompts. Provides boilerplate code, generators, and examples to quickly create MCP servers that can connect AI applications to any data source or tool.
  • A
    license
    -
    quality
    D
    maintenance
    A TypeScript-based template for rapidly developing MCP servers with modular tool architecture, built-in validation using Zod schemas, and comprehensive error handling.
    11
    MIT
  • F
    license
    -
    quality
    D
    maintenance
    A Model Context Protocol (MCP) server template designed for building structured tools, prompts, and resources with built-in support for HTTP and STDIO transports. It provides a standardized framework for developers to create and deploy AI-driven services using TypeScript and Zod schema validation.
    11

View all related MCP servers

Related MCP Connectors

  • Primarily to be used as a template repository for developing MCP servers with FastMCP in Python, P…

  • MCP (Model Context Protocol) server for Appwrite

  • A TypeScript MCP server for Home Assistant, enabling programmatic management of entities, automati…

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jhon2c/mcp-boilerplate'

If you have feedback or need assistance with the MCP directory API, please join our Discord server