This is a Model Context Protocol (MCP) server that supports remote MCP connections, with Cloudflare OAuth built-in.
You should use this as a template to build an MCP server for Cloudflare, provided by Cloudflare at server-name.mcp.cloudflare.com. It has a basic set of tools apps/template-start-here/src/tools/logpush.tools.ts — you can modify these to do what you need
- Set secrets via Wrangler
wrangler secret put CLOUDFLARE_CLIENT_ID
wrangler secret put CLOUDFLARE_CLIENT_SECRET- Create the KV namespace:
wrangler kv:namespace create "OAUTH_KV" - Update the Wrangler file with the KV ID
Deploy the MCP server to make it available on your workers.dev domain
wrangler deploy
Test the remote server using Inspector:
npx wrangler deploy