How to add a new MCP server to the MCP Pure hub.
Follow the Agent Research Guide to identify the service and tools.
Create a new folder in apps/hub/src/mcp/[name].
mkdir -p apps/hub/src/mcp/redditWe follow a standard pattern:
service.ts: Handles API calls to the target service.tools.ts: Defines MCP tools and registers them to a server instance.index.ts: The Hono sub-app that handles SSE transport.
Update apps/hub/src/index.ts to mount your new sub-app:
import yourService from "./mcp/yourService";
app.route("/mcp/yourService", yourService);- Run
bun run dev:huband use the MCP Inspector to test. - Run
bun run deploy:hubto push to Cloudflare.
The frontend in apps/web is a Next.js application optimized for Cloudflare Pages.
- Go to the Cloudflare Dashboard.
- Navigate to Workers & Pages > Create application > Pages > Connect to Git.
- Select the
mcppurerepository. - Set Build command:
cd apps/web && bun run pages:build - Set Build output directory:
apps/web/.next-on-pages - Add compatibility flag:
nodejs_compat - Deploy!