Skip to main content
Glama
jezweb

MCP Server Template for Cloudflare Workers

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
AUTH_TOKENNoOptional Bearer token for programmatic authentication
ADMIN_EMAILSNoComma-separated list of admin email addresses
CF_AIG_TOKENNoCloudflare AI Gateway token for authenticated gateway and BYOK
OPENAI_API_KEYNoOptional OpenAI API key for AI chat testing
GITHUB_CLIENT_IDNoOptional GitHub OAuth Client ID
GOOGLE_CLIENT_IDYesGoogle OAuth Client ID for authentication
ANTHROPIC_API_KEYNoOptional Anthropic API key for AI chat testing
BETTER_AUTH_SECRETYesSecret key for better-auth session encryption (32-byte hex string)
MICROSOFT_CLIENT_IDNoOptional Microsoft Entra OAuth Client ID
GITHUB_CLIENT_SECRETNoOptional GitHub OAuth Client Secret
GOOGLE_CLIENT_SECRETYesGoogle OAuth Client Secret for authentication
INTERNAL_AGENT_MODELNoWorkers AI model to use for internal agent gatekeeper@cf/qwen/qwen2.5-coder-32b-instruct
MAX_CONTEXT_MESSAGESNoMaximum number of messages to load for context50
COOKIE_ENCRYPTION_KEYYesSecret key for cookie encryption for approved clients (32-byte hex string)
ENABLE_INTERNAL_AGENTNoEnable ask_agent tool with Workers AI gatekeeper for voice agentsfalse
CONVERSATION_TTL_HOURSNoAuto-delete conversations after specified hours (default: 7 days)168
MICROSOFT_CLIENT_SECRETNoOptional Microsoft Entra OAuth Client Secret
ENABLE_CONVERSATION_MEMORYNoEnable D1-backed conversation memory for persistent chat historyfalse

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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/jezweb/google-calendar-mcp'

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