Skip to main content
Glama

Bun Fun MCP Server

bun-fun

Simple local stdio MCP server example compiled with Bun

Install dependencies

bun install

Build executable

bun run build

Add to Claude Desktop

Executable:

{ ... "mcpServers": { "example-mcp-server": { "command": "<path-to-executable>" } } }

Development:

{ ... "mcpServers": { "example-mcp-server-dev": { "command": "bun", "args": ["run", "<path-to-index.ts>"] } } }

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:

claude mcp add example-mcp-server "<path-to-executable>"

Development:

claude mcp add example-mcp-server-dev "bun" --args "run" "<path-to-index.ts>"

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

NOTE

macOS and WSL only.

claude mcp add-from-claude-desktop

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 number

  • b (number, required): Second number

Example:

  • Input: { "a": 5, "b": 3 }

  • Output: 5 + 3 = 8

-
security - not tested
F
license - not found
-
quality - not tested

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.

  1. Install dependencies
    1. Build executable
      1. Add to Claude Desktop
        1. Windows
        2. macOS
      2. Add to Claude Code
        1. CLI
        2. From Claude Desktop
      3. To-do
        1. Available MCP Tools
          1. get_current_time
          2. echo
          3. add_numbers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/anthonybaldwin/bun-fun'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server