bun-fun
Simple local stdio MCP server example compiled with Bun
Install dependencies
Build executable
Add to Claude Desktop
Executable:
Development:
Windows
Config:
%APPDATA%\Claude\claude_desktop_config.json
Executable:
C:\\path\\to\\bun-fun\\mcp-server.exe
Development:
C:\\path\\to\\bun-fun\\index.ts
macOS
Config:
~/Library/Application Support/Claude/claude_desktop_config.json
Executable:
/path/to/bun-fun/mcp-server
Development:
/path/to/bun-fun/index.ts
Add to Claude Code
CLI
Executable:
Development:
Windows
Executable:
C:\\path\\to\\bun-fun\\mcp-server.exe
Development:
C:\\path\\to\\bun-fun\\index.ts
macOS/Linux
Executable:
/path/to/bun-fun/mcp-server
Development:
/path/to/bun-fun/index.ts
From Claude Desktop
macOS and WSL only.
To-do
IDE examples
Available MCP Tools
This server provides the following MCP tools:
get_current_time
Returns the current time in ISO format.
Parameters: None
Example response: 2025-09-20T15:30:45.123Z
echo
Echoes back the provided message.
Parameters:
message
(string, required): The message to echo back
Example:
Input:
{ "message": "Hello, world!" }
Output:
Echo: Hello, world!
add_numbers
Adds two numbers together.
Parameters:
a
(number, required): First numberb
(number, required): Second number
Example:
Input:
{ "a": 5, "b": 3 }
Output:
5 + 3 = 8
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
A simple example MCP server built with Bun that provides basic utility tools including current time retrieval, message echoing, and number addition. Serves as a template for building MCP servers with Bun runtime.