MCP Boilerplate

by jhon2c

🚀 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


⚡ 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:

Dev:


🤝 Contributing Fork repo

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

📄 License MIT - See LICENSE

Happy Coding!

-
security - not tested
-
license - not tested
-
quality - not tested

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.

  1. 🔥 Features
    1. 🛠️ Prerequisites
      1. ⚡ Quick Start
        1. 🚄 Development Scripts
          1. 🌐 Environment Setup
            1. ✨ Setup the MCP server on Cursor
              1. 📂 Project Structure
                1. 📦 Key Dependencies
                  1. 🤝 Contributing Fork repo

                    Related MCP Servers

                    • A
                      security
                      A
                      license
                      A
                      quality
                      A production-ready template for creating Model Context Protocol servers with TypeScript, providing tools for efficient testing, development, and deployment.
                      Last updated -
                      1
                      7
                      12
                      JavaScript
                      MIT License
                    • A
                      security
                      F
                      license
                      A
                      quality
                      A template for creating Model Context Protocol (MCP) servers in TypeScript, offering features like container-based dependency injection, a service-based architecture, and integration with the LLM CLI for architectural design feedback through natural language.
                      Last updated -
                      1
                      5
                      TypeScript
                    • A
                      security
                      A
                      license
                      A
                      quality
                      A TypeScript-based template for building Model Context Protocol servers, featuring fast testing, automated version management, and a clean structure for MCP tool implementations.
                      Last updated -
                      1
                      7
                      2
                      TypeScript
                      MIT License
                    • -
                      security
                      F
                      license
                      -
                      quality
                      A TypeScript framework for building Model Context Protocol (MCP) servers with automatic discovery and loading of tools, resources, and prompts.
                      Last updated -
                      67
                      TypeScript
                      • Apple

                    View all related MCP servers

                    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