Connect Cloudflare Workers to AI agents

Connect Cloudflare Workers to Claude, Codex, Cursor, or other AI agents for your entire team. Metorial security, governance, observability, and gives your team a unified Magic MCP url to connect.

Supported Tools

list_tails

List Tail Sessions

List all active tail sessions for a Worker script.

attach_domain

Attach Worker Domain

Attach a Worker to a custom domain (hostname) on a Cloudflare zone. The Worker will handle requests to that hostname.

query_telemetry

Query Observability

Run an observability query against Workers telemetry data. Query logs, metrics, and analytics across all Workers in the account within a time range.

create_deployment

Deploy Worker Version

Deploy one or more Worker versions with a traffic split. Supports gradual rollouts by specifying multiple versions with different traffic percentages. Percentages must sum to 100.

list_deployments

List Deployments

List all deployments for a Worker script. The first deployment in the list is the active one serving traffic. Each deployment shows the version(s) and their traffic percentages for gradual rollouts.

get_subdomain

Get Workers Subdomain

Retrieve the account's workers.dev subdomain and optionally check whether a specific Worker is enabled on it.

delete_secret

Delete Secret

Delete a secret binding from a Worker script. This permanently removes the encrypted value.

list_secrets

List Secrets

List all secret bindings on a Worker script. Returns secret names and types only — secret values are never exposed after creation.

update_script_settings

Update Worker Settings

Update script-level settings for a Worker including Logpush, observability, tail consumers, and tags. These settings apply at the script level rather than per-version. Only provided fields are updated.

delete_script

Delete Worker

Delete a Worker script from the account. Optionally force-deletes associated resources like bindings and durable objects.

put_secret

Set Secret

Create or update a secret on a Worker script. The secret value will be encrypted and stored securely. Once set, the value cannot be retrieved — only overwritten or deleted.

list_telemetry_keys

List Telemetry Keys

List all available telemetry event keys for Workers observability queries. Use this to discover what data can be queried.

list_scripts

List Workers

List all Worker scripts in the account. Returns metadata for each script including handlers, compatibility settings, and deployment info.

get_script

Get Worker Details

Retrieve detailed metadata and settings for a specific Worker script including bindings, compatibility settings, observability config, and placement.

create_route

Create Worker Route

Create a new Worker route that maps a URL pattern on a zone to a Worker script. Use wildcard patterns like `example.com/api/*` to match request URLs.

detach_domain

Detach Worker Domain

Detach a Worker from a custom domain. The Worker will no longer handle requests to that hostname.

get_schedules

Get Cron Triggers

Retrieve all cron trigger schedules configured for a Worker. Cron Triggers run the Worker's scheduled() handler on a recurring schedule (UTC).

delete_tail

Stop Tail Session

Stop an active tail session for a Worker script.

update_schedules

Update Cron Triggers

Replace all cron trigger schedules for a Worker. This completely replaces the existing schedules — provide all desired cron expressions. Schedules execute on UTC time.

list_routes

List Worker Routes

List all Worker routes for a Cloudflare zone. Routes map URL patterns to Worker scripts.

get_version

Get Worker Version

Retrieve detailed information about a specific Worker version, including its bindings, runtime configuration, and startup time.

delete_route

Delete Worker Route

Delete a Worker route from a zone. The Worker will no longer handle requests matching the route's pattern.

get_worker_settings

Get Worker Settings

Retrieve the full settings and bindings configuration for a Worker script, including environment variables, KV namespaces, R2 buckets, D1 databases, Queues, Durable Objects, and other bindings.

set_script_subdomain

Toggle Worker Subdomain

Enable or disable a Worker on the workers.dev subdomain. When enabled, the Worker is accessible at `<script>.<subdomain>.workers.dev`.

create_tail

Start Tail Session

Start a real-time log tail for a Worker script. Returns a WebSocket URL that streams logs and exceptions from the Worker as they occur. Useful for live debugging.

update_route

Update Worker Route

Update an existing Worker route's URL pattern and/or the target Worker script.

list_domains

List Worker Domains

List all custom domains attached to Workers in the account. Each domain maps a hostname on a Cloudflare zone to a specific Worker.

list_versions

List Worker Versions

List all versions of a Worker script. Optionally filter to only deployable versions. Versions are created separately from deployments—a version can exist without being deployed.

put_script_content

Update Worker Script Content

Replace a Worker's script content without changing its existing configuration or metadata. Use Upload Worker Module when you also need to change bindings, compatibility settings, or annotations.

get_deployment

Get Deployment

Retrieve a specific Worker deployment, including its traffic strategy and version split.

get_domain

Get Worker Domain

Retrieve a specific custom domain attachment for a Worker.

delete_deployment

Delete Deployment

Delete a specific Worker deployment from a script.

get_script_content

Download Worker Script Content

Download a Worker's script content as a Slate attachment. Use this when you need to inspect or archive the deployed source without putting full file content in tool output fields.

upload_version

Upload Worker Version

Upload a new deployable Worker version without deploying it. Use create_deployment afterwards to route traffic to the returned version ID.

get_secret

Get Secret Metadata

Retrieve metadata for a secret binding on a Worker script. Secret values are not exposed in tool output.

upload_worker_module

Upload Worker Module

Create or replace a Worker script by uploading code and multipart metadata. This is the full Worker upload path for changing code plus bindings, compatibility settings, observability, placement, Logpush, or version annotations.

More integrations teams use with Cloudflare Workers

GitHub

Manage repositories, issues, and pull requests. Create and configure branches, star repositories, review code, and merge changes. Automate CI/CD workflows with GitHub Actions, manage workflow runs, secrets, and artifacts. Track issues with labels, milestones, and assignees. Search across code, repositories, issues, and users. Manage organizations, teams, and memberships. Create and manage projects, gists, packages, deployments, and environments. Access security alerts including code scanning, secret scanning, and Dependabot alerts. Read and write file contents in repositories. Manage webhooks, notifications, and codespaces.

Sharepoint

Manage SharePoint sites, document libraries, lists, and files. Create, read, update, and delete lists and list items with custom columns. Upload, download, move, copy, and version files in document libraries. Search across sites, files, folders, lists, and list items using Microsoft Search. Manage permissions at site, list, and item levels with granular access control. Define and manage content types and site columns. Subscribe to webhooks for list and library change notifications. Retrieve site properties and search for sites across Microsoft 365.

Salesforce

Manage CRM data including Accounts, Contacts, Leads, Opportunities, Cases, and custom objects. Create, read, update, and delete records. Query data using SOQL and search across objects using SOSL. Perform bulk data operations for large-scale imports, exports, and migrations. Execute composite requests to batch multiple operations in a single API call. Access analytics, reports, and dashboards. Manage files and attachments associated with records. Interact with Chatter feeds, posts, and groups for social collaboration. Subscribe to real-time change events via Change Data Capture and Platform Events. Manage org metadata including custom objects, fields, layouts, and workflows. Query data using GraphQL for precise data retrieval across related objects.

Airtable

Create, read, update, and delete records in Airtable bases and tables. Manage base schemas including creating tables and fields. Filter records using formulas, sort by fields, and scope queries to specific views. Upsert records to find, create, or update in a single call. Upload attachments to records, read and write record comments, list accessible bases, and receive real-time base change events through webhooks.

Bitbucket

Manage Git repositories, pull requests, and CI/CD pipelines on Bitbucket Cloud. Create, fork, and configure repositories within workspaces and projects. Create, review, approve, merge, and decline pull requests with inline code comments. Browse source code, list commits, and manage branches and tags. Track issues with the built-in issue tracker. Trigger, monitor, and manage Bitbucket Pipelines. List workspace members, configure repository default reviewers and branch restrictions, create and manage repository webhooks, and search code across repositories.

Heroku

Deploy, manage, and scale applications on Heroku's cloud platform. Create and configure apps, scale dynos, provision add-ons (databases, caching, etc.), manage configuration variables, build and release code, add custom domains and SSL certificates, manage collaborators and team permissions, configure pipelines for continuous delivery, set up log drains, and sync data with Salesforce via Heroku Connect. Subscribe to webhooks for real-time notifications on app changes, builds, releases, dyno lifecycle events, and more.

Technical notes for Cloudflare Workers

Manage Cloudflare Workers serverless scripts, versions, and deployments on Cloudflare's global edge network. Create, list, update, download, and delete Worker scripts. Manage versions and deployments independently, supporting gradual rollouts. Configure bindings to external resources like KV, D1, R2, Durable Objects, Queues, and environment variables. Add, list, and delete encrypted secrets. Set up and update cron triggers for scheduled execution. Manage custom domains, routes, and workers.dev subdomains. Stream real-time logs via Tail, configure Logpush for log forwarding, and query observability telemetry data. Supports Workers for Platforms (dispatch namespaces) for multi-tenant use cases.

Connect Cloudflare Workers to production AI agents

See how Metorial gives Cloudflare Workers access the governance, tracing, and security controls teams need.

Frequently asked questions

Common questions about connecting Cloudflare Workers to AI agents with Metorial.

  1. Can Metorial connect Cloudflare Workers to AI agents?
    Yes. Metorial connects AI agents to Cloudflare Workers through a governed integration layer, so teams can use the provider while keeping access controlled and observable.
  2. Metorial is MCP compatible and lets teams expose approved provider tools to MCP-capable agents and clients through a controlled access layer.
  3. Metorial applies policies across users, groups, providers, agents, and individual tools, then records the context around every agent interaction.
  4. Yes. Metorial records provider activity so teams can inspect tool calls, troubleshoot integrations, and give security teams the visibility they need.