bb
A comprehensive library for building Deno-based MCP (Model Context Protocol) servers with OAuth and workflow capabilities.
claude mcp add --transport stdio beyond-better-bb-mcp-server deno run --allow-all --unstable-kv jsr:@beyondbetter/bb-mcp-server/examples/1-simple
How to use
The Beyond Better bb MCP server is a Deno-based implementation of the Model Context Protocol (MCP) designed to help you build, run, and test modular MCP servers with built-in OAuth support, plugin/workflow discovery, and dual transport options. It exposes a framework for composing tools and workflows that can be discovered and executed by clients or automated agents. With the included example pipelines, you can explore basic tooling (utilities, logging, JSON validation) and progressively add OAuth integrations and multi-step workflows. The server supports both STDIO and HTTP transport, enabling flexible development and testing workflows. To get started, use the provided BB guidelines and the example repositories to see how servers are constructed, configured, and extended with plugins and workflows.
When you run the server via the recommended deno command, you’ll load an example MCP server that demonstrates plugin discovery, environment-based configuration, and a straightforward startup path. You can then adapt the example to your own domain logic, swap in OAuth clients, and wire in additional tools or workflows as needed. The documentation emphasizes using Beyond Better as a companion to generate boilerplate, validate configurations, and help you scaffold your MCP server with best practices in mind.
How to install
Prerequisites:
- Install Deno (https://deno.land/manual@v1.29.0/getting_started/installation)
- Optional: familiar with the Beyond Better workflow for generating boilerplate (bb CLI, if you use Beyond Better Cloud or local development)
Installation steps:
- Install Deno on your system. Follow the official guide for your OS:
- macOS: brew install deno
- Windows: scoop install deno or choco install deno
- Linux: curl -fsSL https://deno.land/x/install/install.sh | sh
- Verify installation: deno --version
- Run the BB MCP example locally to explore the server: deno run --allow-all --unstable-kv jsr:@beyondbetter/bb-mcp-server/examples/1-simple
- If you want to experiment with a local project, clone the repository and start from the 1-simple example, then iteratively add plugins, workflows, and OAuth integrations as needed.
Notes:
- The server is designed to be used with Deno KV-backed storage and supports environment-driven configuration.
- For production-grade setups, consider using Beyond Better Cloud or containerized deployment as described in the BB docs.
Additional notes
Tips and common considerations:
- The server relies on Deno; ensure your runtime supports the necessary permissions (e.g., --allow-all) for development and testing.
- OAuth integration is a core feature; plan to configure OAuth providers and clients in your environment or codebase.
- The example 1-simple demonstrates basic tooling and transport; explore 2-plugin-workflows and 3-plugin-api-auth for more advanced workflows and API authentication patterns.
- If you plan to run in a container, you can adapt the deno run command into a container entrypoint and pass environment variables for configuration.
- When debugging, enable verbose logging and inspect the plugin discovery process to validate that workflows and tools are being loaded correctly.
Related MCP Servers
mcp-router
A Unified MCP Server Management App (MCP Manager).
conductor-tasks
A task management system designed for AI development
mcp -drupal
TS based companion MCP server for the Drupal MCP module that works with the STDIO transport.
dev-to
A remote Model Context Protocol (MCP) server for interacting with the dev.to public API without requiring authentication.
baseline
特定のWeb APIに関するBaselineの状況を提供するModel Context Protocolサーバー
ez
The easiest path to getting an MCP server going