• NEW TUNNEL
  • ROUTING
  • CONFIG
  • HUMAN

How to provision and configure tunnels with your AI

Connect Cloudflare to your AI client once. After that, you can spin up tunnels and map hostnames using plain text commands.

Ask AI about this page

Short answer

Can I set up Cloudflare tunnels using my AI?

Yes. Your AI uses the Cloudflare Tunnel MCP to create tunnels and manage routing. You'll get a fully configured connection without touching the Cloudflare dashboard.

The results of your requests

Where your changes land

Every command you give your agent results in a live update to your Cloudflare network.

NEW TUNNEL

Instant tunnel creation

The AI uses create_tunnel to spin up a new connection. You get a new tunnel ready for traffic immediately.

ROUTING

Direct traffic control

The AI manages how hostnames reach your services. It uses create_route to map your domains to the right tunnel.

CONFIG

Updated tunnel settings

You can change how a tunnel behaves. The AI applies these changes using put_configuration.

HUMAN

Manual oversight needed

The AI cannot delete tunnels or change your Cloudflare account billing. You keep full control over those sensitive areas.

The workflow

What your AI does when a request arrives.

Your agent translates your intent into specific Cloudflare API actions.

  1. Provision the tunnel

    The AI starts by creating the connection itself to establish a path into your network.

    create_tunnel
  2. Map the hostnames

    Once the tunnel is live, the AI sets up the routing rules to point your domain to the service.

    create_route
  3. Apply configurations

    The AI updates the tunnel settings to ensure the connection behaves exactly how you requested.

    put_configuration
  4. Verify the setup

    The AI checks the current configuration to confirm the tunnel and routes are active.

    put_configuration

Try it

Copy these to start.

Use these prompts to trigger the Cloudflare Tunnel MCP.

Starting points

These are templates. Replace the tunnel names and hostnames with your own.

Cloudflare Tunnel Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_hT7kuznY9UnZpXYZT9IsTzVtPYMm0Ja2T7OuWTJd/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — Cloudflare Tunnel capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "cloudflare-tunnel-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_hT7kuznY9UnZpXYZT9IsTzVtPYMm0Ja2T7OuWTJd/mcp"
    }
  }
}
Copy into chat04
  • Create a new Cloudflare tunnel named 'production-web-server'.

  • Set up a route for 'app.example.com' through my 'production-web-server' tunnel.

  • Update the configuration for the 'dev-tunnel' to change its settings.

  • Create a tunnel called 'test-connection' and route 'test.local' to it.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Cloudflare Tunnel once, then ask.

Connect your account in one click. Your login stays encrypted on our side, and you can start managing tunnels immediately.

Connect Cloudflare Tunnel to your AI

FAQ

How this task behaves

  • 01

    Can the AI delete my existing tunnels?

    No. The AI only has tools to create and update. You must delete tunnels manually in the Cloudflare dashboard.

  • 02

    Can I change my Cloudflare billing through the AI?

    No. The AI cannot access your account billing or subscription details.

  • 03

    Does the AI have access to my Cloudflare password?

    No. You connect via Vinkius, and your credentials stay encrypted and secure.

  • 04

    Can the AI create multiple routes for one tunnel?

    Yes. You can ask the AI to create several different routes for a single tunnel.

  • 05

    Can the AI modify my DNS records?

    No. The AI manages tunnels and routes, but it does not have tools to modify DNS zone records.

  • More questions about Cloudflare Tunnel? The Connector page answers them. See everything the Cloudflare Tunnel Connector can do

Connect Cloudflare Tunnel to Claude, Cursor, ChatGPT & more