Skip to main content
Glama
PowerGPT

PowerGPT

PowerGPT โ€” Empower your LLMs with MCPs โšก๏ธ

Kingsley Leung (Zihong Liang)

A small, focused remote MCP (Model Context Protocol) server deployed on Cloudflare Workers that exposes customised tools to remote MCP clients.

Claude_Desktop_Demo

Why this project exists ๐Ÿ’ก

  • Large language models still struggle with basic arithmetic and numeric reasoning. Short, viral examples like the "9.11 vs 9.9, which is bigger" question highlighted how easily models can make simple mistakes (see this article for one viral example: https://towardsdatascience.com/9-11-or-9-9-which-one-is-higher-6efbdbd6a025/). This project provides reliable, auditable tools (for example, calculators) that can be plugged into LLM workflows via MCP so clients can delegate numeric tasks to a deterministic service.

  • I also noticed some locally hosted LLMs may not have internet access. To address this, the server includes an MCP tool that extracts and returns text from a URL. That lets offline or restricted models access web content via the MCP while centralising fetching and sanitisation, which improves security and auditability.

Related MCP server: GitHub OAuth MCP Server

Live deployment ๐Ÿš€

  • Example deployed URL: https://power-gpt.kingsleyleung2003.workers.dev/mcp

Available tools ๐Ÿงฐ

Below are the MCP tools currently exposed by this server. Each tool lists its purpose and the input parameters it expects.

  • ๐Ÿ”ข calculate_add โ€” Simple addition

    • Inputs: a: number, b: number

  • โž– calculate_subtract โ€” Simple subtraction

    • Inputs: a: number, b: number

  • โœ–๏ธ calculate_multiply โ€” Simple multiplication

    • Inputs: a: number, b: number

  • โž— calculate_divide โ€” Simple division (returns an error if dividing by zero)

    • Inputs: a: number, b: number

  • ^ calculate_exponent โ€” Exponentiation (base ** exponent)

    • Inputs: base: number, exponent: number

  • โˆš calculate_root โ€” Extract the n-th root of a number (error if root === 0)

    • Inputs: number: number, root: number

  • % calculate_modulus โ€” Modulus (a % b; error if divisor is zero)

    • Inputs: a: number, b: number

  • ! calculate_factorial โ€” Factorial of a non-negative integer (errors on negative/non-integer)

    • Inputs: n: number

  • ๐Ÿ” calculate_fibonacci โ€” Fibonacci number at a 0-indexed position (errors on negative/non-integer)

    • Inputs: position: number

  • ๐Ÿ”Ž check_prime โ€” Primality check (errors for <= 1 or non-integer)

    • Inputs: n: number

  • ๐Ÿงฎ calculate_gcd โ€” Greatest common divisor (integers required)

    • Inputs: a: number, b: number

  • ๐Ÿ”— calculate_lcm โ€” Least common multiple (integers required)

    • Inputs: a: number, b: number

  • โš–๏ธ compare_numbers โ€” Compare two numbers (less than / greater than / equal)

    • Inputs: a: number, b: number

  • ๐ŸŽฒ random_number โ€” Generate a random number within a range (uses drand with Math.random fallback)

    • Inputs: startRange: number, endRange: number

  • ๐ŸŒ fetch_url โ€” Fetch a URL and extract readable content (returns title + markdown). Handles HTTP errors and parsing failures.

    • Inputs: url: string (must be a valid URL)

Get started โ–ถ๏ธ

Connect from Cloudflare AI Playground

  1. Open https://playground.ai.cloudflare.com/

  2. Enter the MCP server SSE/endpoint URL: https://power-gpt.kingsleyleung2003.workers.dev/mcp

  3. Use the tools from the playground UI.

Connect Claude Desktop (or other local MCP clients)

{
  "mcpServers": {
    "PowerGPT by Kingsley": {
      "command": "bun x",
      "args": [
        "mcp-remote",
        "https://power-gpt.kingsleyleung2003.workers.dev/mcp"
      ]
    }
  }
}

Tech stack ๐Ÿ› ๏ธ

  • TypeScript

  • Bun

  • Cloudflare Workers (serverless runtime)

  • Wrangler (Cloudflare CLI) / Cloudflare dashboard for deployment

  • Model Context Protocol (MCP) for tooling integration

  • mcp-remote (local proxy for MCP servers)

  • Cloudflare AI Playground and Claude Desktop for testing and clients

  • GitHub Actions for auto deployment

  • Docker

Project layout ๐Ÿ“

  • src/ โ€” Worker entry and tool definitions (src/index.ts)

  • wrangler.jsonc, package.json, tsconfig.json โ€” project config and build setup

Deploy to your Cloudflare Workers ๐Ÿš€

Deploy to Workers

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

Local deployment ๐Ÿ–ฅ๏ธ

bun install
bun start

Local deployment โ€” Docker

You can run the project inside Docker for a reproducible local environment.

Build the image and run a container:

# Build the image (run from repo root)
docker build -t power-gpt .

# Run the container and publish the app port to the host
docker run -p 8787:8787 power-gpt:latest

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelogโ€ฆ

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      A remote MCP server that can be deployed on Cloudflare Workers without requiring authentication, allowing users to add and use custom tools through the Model Context Protocol.
      1
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      A hosted HTTP MCP server for Cloudflare Workers that exposes a bundle of tools via a remote /mcp endpoint, enabling Claude-compatible clients to connect without a local server.
      1
      BSD Zero Clause
    • F
      license
      Not graded
      quality
      D
      maintenance
      A remote MCP server deployed on Cloudflare Workers with OAuth, enabling tools like math operations and integration with Claude Desktop via SSE.
      -