remote-mcp-server-authless

remote-mcp-server-authless

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.

Category
Visit Server

README

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

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:

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
    
  2. Start the development server:

    npm run dev
    # or
    npm start
    

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

  3. 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"
  4. Connect from Claude Desktop: Use the mcp-remote proxy in your Claude Desktop config:

    {
      "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
  4. 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.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured