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.
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!