Skip to main content
Glama

MCP Boilerplate

by jhon2c

MCP 横幅

🚀 MCP 样板

由 Bun 提供支持

适用于模型上下文协议 (MCP) 应用程序的现代、快速样板


🔥 特点

  • 超快 MCP与 Bun
  • 现代 TypeScript 优先架构
  • 开箱即用的 MCP SDK 集成( @modelcontextprotocol/sdk
  • Express 5.x 服务器具有适当的 TypeScript 支持
  • 使用 Zod 模式进行稳健验证
  • 与 Morgan 一起进行智能伐木
  • 环境配置支持
  • CLI 就绪实施

🛠️ 先决条件


⚡ 快速入门

# 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

🚄 开发脚本

命令描述
bun run dev使用热重载启动开发服务器
bun run build编译 TypeScript
mcp-boilerplate运行已编译的 CLI

🌐 环境设置

创建 .env 文件:

PORT=3000 MCP_API_KEY=your_api_key_here DEBUG=mcp:*

✨ 在 Cursor 上设置 MCP 服务器

  1. 安装并运行服务器
  2. 转至光标 MCP 设置Files > Preferences > Cursor Settings > MCP
  3. 添加新的 MCP 服务器+ Add new global MCP server
  4. 粘贴设置 JSON
{ "mcpServers": { "mcp-boilerplate": { "url": "http://localhost:3001/sse" } } }

📂 项目结构

mcp-boilerplate/ ├── src/ │ ├── index.ts │ ├── config/ │ ├── services/ │ └── types/ └── build/

📦关键依赖项

运行时:

开发者:


🤝 贡献 Fork 仓库

  1. 创建功能分支
  2. 提交更改
  3. 推送分支
  4. 开放 PR

📄 MIT 许可证 - 请参阅许可证

祝您编码愉快!

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

一个现代的、闪电般快速的入门模板,用于使用 Bun 构建模型上下文协议应用程序,使开发人员能够创建具有 TypeScript 支持、验证和环境配置的 MCP 服务器。

  1. 🔥 特点
    1. 🛠️ 先决条件
      1. ⚡ 快速入门
        1. 🚄 开发脚本
          1. 🌐 环境设置
            1. ✨ 在 Cursor 上设置 MCP 服务器
              1. 📂 项目结构
                1. 📦关键依赖项
                  1. 🤝 贡献 Fork 仓库

                    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
                      4
                      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
                      4
                      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