Bun MCP Server
by dotneet
A template for creating Model Context Protocol (MCP) servers using Bun. This template provides a starting point for implementing MCP servers using tools like Claude Code.
View on GitHub
Last updated: N/A
Template for Bun MCP Server
Usage
Create a new project
bun create github.com/dotneet/bun-mcp-server new_project_name
cd new_project_name
Implement MCP server using Claude Code or other tools you like.
# Edit spec.txt to describe what you want
vim spec.txt
claude "See spec.txt and implement an MCP Server that meets the spec."
Build a server
bun run build
Testing and Debugging
# You can use [inspector](https://github.com/modelcontextprotocol/inspector) for testing and debugging.
package_name=$(bun run show-package-name)
npx @modelcontextprotocol/inspector dist/$package_name
Install
# Install command to $HOME/bin or your own path.
cp dist/$package_name $HOME/bin/