Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

A remote MCP server deployed on Cloudflare Workers that provides Cloudflare observability tools (zone analytics, workers analytics, web analytics) and basic calculator functions, without requiring authentication.

README.md

Building a Remote MCP Server on Cloudflare (Without Auth)

This example allows you to deploy a remote MCP server that doesn't require authentication on Cloudflare Workers. This server includes Cloudflare observability tools for monitoring your websites and Workers.

Get started:

![Deploy to Workers](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/ai/tree/main/demos/remote-mcp-authless)

This will deploy your MCP server to a URL like: remote-mcp-server-authless.<your-account>.workers.dev/sse

Alternatively, you can use the command line below to get the remote MCP Server created on your local machine: ``bash npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless ``

Running Locally

You can run this MCP server locally for development and testing:

  1. Install dependencies:
   npm install
  1. Start the development server:
   npm run dev
   # or
   npm start

Your MCP server will be running at http://localhost:8787/

  1. Test with MCP Inspector:
   npx @modelcontextprotocol/inspector

In the inspector:

  • Set Transport Type to SSE
  • Enter http://localhost:8787/sse as the server URL
  • Click "Connect"
  1. Connect from Claude Desktop:

Use the mcp-remote proxy in your Claude Desktop config: ``json { "mcpServers": { "cloudflare-mcp": { "command": "npx", "args": [ "mcp-remote", "http://localhost:8787/sse" ] } } } ``

Available Tools

Calculator Tools

  • add - Simple addition
  • calculate - Calculator with multiple operations (add, subtract, multiply, divide)

Cloudflare Observability Tools

Zone Analytics

  • cloudflare_zone_analytics - Get analytics summary for a Cloudflare zone
  • Returns: total requests, bandwidth, unique visitors, threats blocked, page views
  • Parameters: zone_id, api_token, since (optional), until (optional)
  • cloudflare_zone_analytics_timeseries - Get time series analytics data
  • Returns: Detailed time series data with requests, bandwidth, visitors, threats over time
  • Parameters: zone_id, api_token, since (optional), until (optional)

Zone Management

  • cloudflare_list_zones - List all zones in your account
  • Returns: Zone IDs, names, status, plan, and creation dates
  • Parameters: api_token, name (optional filter)

Workers Analytics

  • cloudflare_workers_analytics - Query Workers Analytics Engine
  • Execute SQL-like queries against your Workers Analytics Engine datasets
  • Parameters: account_id, api_token, dataset (optional), query

Web Analytics

  • cloudflare_web_analytics - Get Web Analytics data for a site
  • Returns: Web Analytics statistics for your site
  • Parameters: account_id, site_tag, api_token, start (optional), end (optional)

Getting Cloudflare API Tokens

To use the Cloudflare observability tools, you'll need API tokens with appropriate permissions:

  1. Go to Cloudflare Dashboard
  2. Click "Create Token"
  3. Use "Edit zone DNS" template or create a custom token with:
  • Zone Analytics:Read - For zone analytics tools
  • Zone:Read - For listing zones
  • Account Analytics:Read - For Workers and Web Analytics
  1. Copy the token (you'll only see it once!)

Finding Your Zone ID and Account ID

  • Zone ID: Found in your Cloudflare dashboard under your domain's overview page
  • Account ID: Found in the right sidebar of your Cloudflare dashboard

Example Usage

Get Zone Analytics

Tool: cloudflare_zone_analytics
Parameters:
  - zone_id: "your-zone-id"
  - api_token: "your-api-token"
  - since: "2024-01-01T00:00:00Z" (optional)
  - until: "2024-01-31T23:59:59Z" (optional)

List Your Zones

Tool: cloudflare_list_zones
Parameters:
  - api_token: "your-api-token"
  - name: "example.com" (optional)

Query Workers Analytics

Tool: cloudflare_workers_analytics
Parameters:
  - account_id: "your-account-id"
  - api_token: "your-api-token"
  - query: "SELECT * FROM dataset LIMIT 10"
  - dataset: "default" (optional)

Customizing your MCP Server

To add your own tools to the MCP server, define each tool inside the init() method of src/index.ts using this.server.tool(...).

Connect to Cloudflare AI Playground

You can connect to your MCP server from the Cloudflare AI Playground, which is a remote MCP client:

  1. Go to https://playground.ai.cloudflare.com/
  2. Enter your deployed MCP server URL (remote-mcp-server-authless.<your-account>.workers.dev/sse)
  3. You can now use your MCP tools directly from the playground!

Connect Claude Desktop to your MCP server

You can also connect to your remote MCP server from local MCP clients, by using the mcp-remote proxy.

To connect to your MCP server from Claude Desktop, follow Anthropic's Quickstart and within Claude Desktop go to Settings > Developer > Edit Config.

Update with this configuration:

{
  "mcpServers": {
    "cloudflare-mcp": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "http://localhost:8787/sse"  // or remote-mcp-server-authless.your-account.workers.dev/sse
      ]
    }
  }
}

Restart Claude and you should see the tools become available.

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Cloud & DevOps servers.