Skip to main content
Glama

mcp-server-cloudflare

Official
by cloudflare
README.md1.01 kB
# Model Context Protocol (MCP) Server + Cloudflare OAuth This is a [Model Context Protocol (MCP)](https://modelcontextprotocol.io/introduction) 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 ## Getting Started - Set secrets via Wrangler ```bash wrangler secret put CLOUDFLARE_CLIENT_ID wrangler secret put CLOUDFLARE_CLIENT_SECRET ``` #### Set up a KV namespace - Create the KV namespace: `wrangler kv:namespace create "OAUTH_KV"` - Update the Wrangler file with the KV ID #### Deploy & Test Deploy the MCP server to make it available on your workers.dev domain ` wrangler deploy` Test the remote server using [Inspector](https://modelcontextprotocol.io/docs/tools/inspector): ``` npx wrangler deploy ```

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cloudflare/mcp-server-cloudflare'

If you have feedback or need assistance with the MCP directory API, please join our Discord server