A lightning-fast, TypeScript-first Model Context Protocol server boilerplate featuring Bun-powered performance, Express 5 integration, robust Zod validation, smart logging, and seamless MCP SDK support for efficient development and deployment.
Unlock the full potential of MCP Boilerplate through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.
Free tier available ⢠No credit card required
Powered by Bun ā”
A modern, lightning-fast boilerplate for Model Context Protocol (MCP) applications
@modelcontextprotocol/sdk
)bun
, npm
, pnpm
, or yarn
)# 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
Command | Description |
---|---|
bun run dev | Start dev server with hot reload |
bun run build | Compile TypeScript |
mcp-boilerplate | Run compiled CLI |
Create .env file:
PORT=3000 MCP_API_KEY=your_api_key_here DEBUG=mcp:*
Files > Preferences > Cursor Settings > MCP
+ Add new global MCP server
{ "mcpServers": { "mcp-boilerplate": { "url": "http://localhost:3001/sse" } } }
mcp-boilerplate/
āāā src/
ā āāā index.ts
ā āāā config/
ā āāā services/
ā āāā types/
āāā build/
Runtime:
Dev:
š License MIT - See LICENSE
Happy Coding!
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!