Skip to content

DenysVuika/bun-mcp-template

Repository files navigation

MCP Server Template (Bun)

Features

  • Streaming HTTP server using Bun
  • Stdio server for local development
  • MCP Inspector for debugging and inspecting model context protocol messages
  • Biome for linting and formatting
  • Docker support for containerized development

Requirements

  • Bun (v1.0.0 or later)

Running the Project

Run the server at http://localhost:3000/mcp with:

bun install

# Streaming Http server
bun start

# or with local server (stdio)
bun local

Run the inspector with:

bun inspect

# or with local server (stdio)
bun inspect-local

The MCP Inspector is up and running at http://127.0.0.1:6274.

See the MCP Inspector documentation for more details.

Development

Lint the project with:

bun lint

Docker

To run the project in a Docker container, use the following command:

docker-compose up

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Contributors