Requirements
- Bun 1.x or Node.js 20+
- Wrangler CLI — required for Cloudflare Workers deployments
- A Cloudflare account with Workers and KV access — required for Worker deployments
Install the package
Package exports
@phake/mcp exposes three entry points:
Most projects only need the core entry point. The runtime exports are used internally by the adapters and are available if you need lower-level access.
Peer dependencies
The following peer dependencies are optional. Install them only if you use the corresponding runtime or feature:If you scaffold a project with
bun create @phake/mcp, the template’s
package.json already lists the correct peer dependencies for your chosen
runtime. You only need to install them manually when adding @phake/mcp to an
existing project.