PowerGPT
A remote MCP server deployed on Cloudflare Workers that provides deterministic arithmetic tools and URL fetching capabilities to enhance LLM accuracy and enable web access for offline models.
README
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.

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.
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
- Inputs:
- ➖ calculate_subtract — Simple subtraction
- Inputs:
a: number,b: number
- Inputs:
- ✖️ calculate_multiply — Simple multiplication
- Inputs:
a: number,b: number
- Inputs:
- ➗ calculate_divide — Simple division (returns an error if dividing by zero)
- Inputs:
a: number,b: number
- Inputs:
- ^ calculate_exponent — Exponentiation (base ** exponent)
- Inputs:
base: number,exponent: number
- Inputs:
- √ calculate_root — Extract the n-th root of a number (error if
root === 0)- Inputs:
number: number,root: number
- Inputs:
- % calculate_modulus — Modulus (a % b; error if divisor is zero)
- Inputs:
a: number,b: number
- Inputs:
- ! calculate_factorial — Factorial of a non-negative integer (errors on negative/non-integer)
- Inputs:
n: number
- Inputs:
- 🔁 calculate_fibonacci — Fibonacci number at a 0-indexed position (errors on negative/non-integer)
- Inputs:
position: number
- Inputs:
- 🔎 check_prime — Primality check (errors for <= 1 or non-integer)
- Inputs:
n: number
- Inputs:
- 🧮 calculate_gcd — Greatest common divisor (integers required)
- Inputs:
a: number,b: number
- Inputs:
- 🔗 calculate_lcm — Least common multiple (integers required)
- Inputs:
a: number,b: number
- Inputs:
- ⚖️ compare_numbers — Compare two numbers (less than / greater than / equal)
- Inputs:
a: number,b: number
- Inputs:
- 🎲 random_number — Generate a random number within a range (uses drand with Math.random fallback)
- Inputs:
startRange: number,endRange: number
- Inputs:
- 🌐 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)
- Inputs:
Get started ▶️
Connect from Cloudflare AI Playground
- Open https://playground.ai.cloudflare.com/
- Enter the MCP server SSE/endpoint URL:
https://power-gpt.kingsleyleung2003.workers.dev/mcp - Use the tools from the playground UI.
Connect Claude Desktop (or other local MCP clients)
-
Prerequisites
-
Follow Anthropic's Quickstart
-
In Claude Desktop go to Settings > Developer > Edit Config
-
Update with this configuration:
{
"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 🚀
This will deploy your MCP server to a URL like: power-gpt.<your-account>.workers.dev/sse
Local deployment 🖥️
- Prerequisites
- Bun - Download
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
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。