Overview
Bun MCP Server is a template project designed to help developers quickly set up a Bun-based MCP (Model Context Protocol) server.
To use the Bun MCP Server template, create a new project by running the command bun create github.com/dotneet/bun-mcp-server new_project_name, then navigate into your project directory and implement the server using tools like Claude Code.
- Quick project setup with Bun - Easy implementation of MCP servers using Claude Code - Built-in testing and debugging tools
- Rapid development of MCP servers for various applications.
- Learning and experimenting with Bun and MCP protocols.
- Building scalable server applications with ease.
Add to your AI client
Use these steps to connect Template for Bun MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"bun-mcp-server-dotneet": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-bun-mcp-server-dotneet"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"bun-mcp-server-dotneet": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-bun-mcp-server-dotneet"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"bun-mcp-server-dotneet": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-bun-mcp-server-dotneet"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"bun-mcp-server-dotneet": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-bun-mcp-server-dotneet"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"bun-mcp-server-dotneet": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-bun-mcp-server-dotneet"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"bun-mcp-server-dotneet": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-bun-mcp-server-dotneet"
]
}
}
}FAQ
What is Bun?
Bun is a modern JavaScript runtime that focuses on speed and efficiency.
Can I use other tools besides Claude Code?
Yes! You can implement the MCP server using any tools you prefer.
How do I test my server?
You can use the inspector tool for testing and debugging your server.