Skip to main content
Glama
daniil-shumko

Cloudflare Workers MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CLOUDFLARE_API_TOKENYesAPI token with Workers Scripts: Edit permission
CLOUDFLARE_ACCOUNT_IDYesCloudflare account ID from dashboard

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_workersA

List all Worker scripts in your account. Returns each Worker's name, timestamps, and whether it serves static assets.

get_workerA

Get a Worker's settings (bindings, compatibility date and flags, placement, observability) plus its cron triggers and workers.dev subdomain status.

get_worker_codeA

Download a Worker's deployed source code. Module-syntax Workers return one entry per module; service-worker-syntax Workers return a single script.

deploy_static_siteA

Deploy a local directory as a static site on Workers (assets-only Worker): builds the file manifest, uploads only files Cloudflare doesn't already have, and deploys. Newly created sites are served on workers.dev. Set not_found_handling to 'single-page-application' for SPAs. _headers/_redirects at the directory root are applied as configuration (not uploaded), and .assetsignore rules (gitignore-style) exclude files from the deploy.

redeploy_assetsA

Create a new deployment of an assets-only Worker that reuses its previously uploaded files (keep_assets) — useful to change html_handling or not_found_handling without re-uploading the site.

deploy_workerA

Upload and deploy a Worker script (ES modules) with optional bindings (plain_text, secret_text, kv_namespace, r2_bucket, d1, assets). Replaces the Worker's code and binding set if it already exists. Set keep_assets to retain a site's static assets while updating code. By default the Worker is served on workers.dev.

delete_workerA

Permanently delete a Worker script, including its versions, deployments, and any static assets. Set force to delete even when other resources depend on it.

update_worker_settingsA

Update a Worker's settings (bindings, compatibility date/flags, logpush, observability) without re-uploading its code. Note: bindings REPLACE the Worker's full binding set.

list_versionsA

List a Worker's versions (newest first): version ID, number, author, source, and deploy message. Versions are immutable snapshots; use list_deployments to see which are live.

list_deploymentsA

List a Worker's deployments (newest first). Each deployment maps traffic percentages to one or more versions; the newest deployment is the live one.

get_versionA

Get a Worker version's detail: bindings, compatibility date/flags, handlers, and usage model for that immutable snapshot.

create_versionA

Upload a new Worker version WITHOUT deploying it — live traffic is unchanged until the version is referenced by create_deployment. Use for staged rollouts.

create_deploymentA

Point live traffic at Worker versions: a single version at 100%, or a gradual rollout splitting traffic across two versions (e.g. 90/10). Percentages must sum to 100.

rollback_workerA

Roll a Worker back by deploying an older version at 100% traffic. Only the 100 most recent versions are eligible; bound resources (KV, R2, D1 data) are NOT reverted.

get_cron_triggersA

Get a Worker's cron triggers (scheduled events).

list_worker_domainsA

List custom domains attached to Workers in this account. Optionally filter by Worker name, hostname, or zone.

add_worker_domainA

Attach a custom domain to a Worker. The domain's zone must be active in this Cloudflare account (external zones are not supported); Cloudflare creates the DNS record and certificate automatically.

delete_worker_domainA

Detach a custom domain from its Worker. The hostname stops routing to the Worker (and its previews).

set_workers_devA

Enable or disable serving a Worker on its ..workers.dev subdomain, and optionally version preview URLs.

set_cron_triggersA

Replace a Worker's full cron trigger set (the Worker must export a scheduled handler). Pass an empty list to remove all triggers.

query_worker_logsA

Query a Worker's logs (Workers Logs / observability). Returns the most recent matching events with message, outcome, request, and timing. The Worker must have observability enabled (deploy_worker's enable_observability or update_worker_settings).

health_checkA

Verify the API token is valid and connection to Cloudflare is working. Useful for troubleshooting authentication issues.

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/daniil-shumko/cloudflare-workers-mcp'

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