mcp-cloud-deploy
Deploy and manage static websites on Cloudflare Pages.
Deploy static build output to a Cloudflare Pages project, creating the project if needed.
Deploy from a local directory for local stdio, or from a public repository with committed build output in hosted mode.
Use
spa_modefor React/Vite single-page apps with client-side routing.Bind an owned custom domain to a Pages project and create a proxied CNAME when DNS is available in the authorized Cloudflare account.
List recent deployments, live URLs, and custom-domain bindings.
Use the generated
pages.devURL without owning a domain.
Allows managing Cloudflare Pages projects and custom-domain DNS records through the Cloudflare API, including reporting deployment and domain status.
Allows deploying static build directories to Cloudflare Pages, creating projects when needed, enabling SPA fallback, and returning generated pages.dev deployment URLs.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-cloud-deploy Deploy my Vite app from ./dist to Cloudflare Pages as project my-portfolio"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-cloud-deploy
Deploy static websites to Cloudflare Pages from Codex, VS Code, Claude Desktop, and JetBrains AI Assistant. Connect to the hosted Vercel MCP endpoint or run the stdio server locally.
Landing page: mcp-cloud-deploy-demo.pages.dev · Developer Docs: Hosted and local setup · Privacy: PRIVACY.md
Choose a connection
Mode | Source files | Authentication |
Hosted Streamable HTTP | Public GitHub repo with static build output already committed | OAuth per user; Cloudflare credentials are entered on HTTPS consent page and encrypted before storage |
Local stdio | Local | Cloudflare credentials in local ignored |
The service deploys static output, not a Node server or server-side rendered application. A pages.dev URL works without owning a domain. Domains are attached only after they are registered.
Related MCP server: pocketnook
Hosted Vercel deployment
The hosted app is a Next.js Node runtime using Vercel's mcp-handler, OAuth authorization code + PKCE, and Upstash Redis for grants and token rotation.
Import
hoangtrietdev/cloudflare-mcpas a new project in Vercel. Use the project root and Node.js 22.Add Upstash Redis from Vercel Marketplace and connect it to the project. The hosted server accepts either
UPSTASH_REDIS_REST_URL/UPSTASH_REDIS_REST_TOKENor the Marketplace namesKV_REST_API_URL/KV_REST_API_TOKEN.Create a 32-byte encryption key:
openssl rand -base64 32. Set it as the Vercel Production environment variableMCP_CREDENTIALS_ENCRYPTION_KEY, then redeploy.Wait for the production build to complete. The MCP endpoint is
https://<your-project>.vercel.app/api/mcp.Put that endpoint into the landing page's
endpointconstant before publishing its updated version. MCP clients use OAuth discovery and will open the Cloudflare consent page.
Each user supplies their own Cloudflare Account ID and scoped API Token during OAuth. The hosted app accepts user-owned tokens and cfat_ account-owned tokens, verifies them against the appropriate Cloudflare token endpoint, and encrypts credentials with AES-256-GCM before writing them to Redis. Do not copy the maintainer's .env Cloudflare token to GitHub or Vercel for this per-user authorization flow; it is neither needed nor used by the hosted server. The local stdio server still uses .env.
Vercel's Git integration builds and deploys each commit to the connected branch. The GitHub Actions CI checks Node.js compatibility and builds the web app; it does not need Cloudflare deployment credentials.
Connect an MCP client
Use the full /api/mcp URL. Codex, VS Code, and JetBrains accept Streamable HTTP configurations. Claude Desktop remote connectors are configured from Settings → Connectors. Select OAuth when prompted and enter a dedicated Cloudflare token. Grant Account → Cloudflare Pages → Edit to deploy. Add Zone → Zone → Read and Zone → DNS → Edit only if you want automatic DNS changes; scope those permissions to the relevant zones.
Local install (stdio)
Requirements: Node.js 22+, a Cloudflare account, and a scoped Cloudflare API Token. Node.js 18 is end-of-life and is not supported.
git clone https://github.com/hoangtrietdev/cloudflare-mcp.git
cd cloudflare-mcp
npm ci
cp .env.example .envPut credentials in .env:
CLOUDFLARE_API_TOKEN=your_cloudflare_api_token
CLOUDFLARE_ACCOUNT_ID=your_cloudflare_account_idBuild with npm run build. Configuration samples for Codex, VS Code, Claude Desktop, and JetBrains are in examples/configs/. They launch scripts/start-local.mjs, which loads .env and starts the MCP stdio server. Never put secrets in committed client config files.
The local deploy_to_cloudflare_pages tool accepts dir_path such as ./dist, ./build, or ./out; the folder must contain index.html. Nested images, fonts, CSS, and JavaScript are uploaded with the right paths. It refuses known credential/private-key files, skips common repository/dependency metadata folders, and caps a local deployment at 200 MiB and 20,000 files. Set spa_mode: true for a React/Vite single-page app that uses client-side routing.
Hosted tools
deploy_to_cloudflare_pages
Creates a Pages project if needed and uploads a static build. Hosted mode accepts project_name, repo_url, branch, output_dir, and spa_mode. The repository must be public and already contain the built output. The server never executes repository code or build scripts.
attach_custom_domain
Adds an owned domain to a Pages project. It creates a proxied CNAME only when the DNS zone is in the authorized Cloudflare account and no conflicting record exists. Otherwise it returns the CNAME details for the current DNS provider. DNS and certificate propagation may take time.
list_deployments
Returns recent deployment status, URLs, and custom-domain bindings.
Hosted source limits: 20 MiB compressed archive, 50 MiB extracted output, 10 MiB per file, and 20,000 build files. Use local stdio for private repositories, local builds, and larger assets.
Development
npm ci
npm run build
npm run typecheck
npm test
npm run build:vercelCI validates the local MCP package on Node.js 22 and 24, audits production dependencies, verifies the npm package contents, and builds the Vercel app. Vercel production deployment is handled by the project’s Git integration.
Security and support
.env, OAuth keys, Cloudflare tokens, and Redis credentials must never be committed.Local MCP diagnostics go to stderr so stdout remains MCP JSON-RPC only.
Report security issues privately as described in SECURITY.md; do not include credentials in issues.
Read CONTRIBUTING.md before opening a pull request.
License
MIT. See LICENSE.
Available Tools
3 toolsattach_custom_domainA
Bind a custom domain to a Cloudflare Pages project and create a CNAME in a matching Cloudflare DNS zone when available.
Inputs: domain (required), project_name (required).
deploy_to_cloudflare_pagesB
Deploy a static website to Cloudflare Pages. Supports landing pages with nested image/assets and React/Vite single-page apps. If domain is omitted, the deployment URL works without owning a domain; if provided, bind it and configure Cloudflare DNS when possible.
Inputs: dir_path (required), project_name (required), branch, domain, +1 more.
list_deploymentsC
List recent Cloudflare Pages deployments, live URLs, and custom domain bindings. Cloudflare Pages deployments support nested static assets and React/Vite builds.
Inputs: project_name (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The three tools have largely distinct primary actions (deploy, bind domain, list deployments). However, deploy_to_cloudflare_pages explicitly also binds custom domains and configures DNS, which overlaps with attach_custom_domain and could make an agent unsure which to use when a domain is supplied at deploy time.
All names are snake_case with a leading verb (deploy_, attach_, list_) and target a Cloudflare Pages resource, giving a predictable pattern. deploy_to_cloudflare_pages is noticeably longer and adds a provider prefix the others omit, a minor deviation.
Three tools is thin for a deployment server; the lifecycle of a Pages project typically involves more operations. The narrow scope (deploy static site, bind domain, list) is defensible but borderline minimal.
Core flow of deploy → bind domain → list is covered, but there are notable gaps: no rollback/retry, no delete or remove-domain, no project listing or deletion, and no access to build logs or deployment status details. Agents hitting failures would have no recovery tools.
Related MCP Connectors
Create website projects, deploy GitHub sites and read logs/usage via remote OAuth MCP.
Build, deploy, and host full-stack web apps from any MCP client. DB, auth, storage, cron included.
Deploy static sites and connect custom domains from Claude, Cursor, or any MCP agent.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Related MCP Servers
- AlicenseBqualityCmaintenanceEnables managing Cloudflare domains, DNS records, SSL certificates, zone operations, analytics, and cache purging via MCP or CLI.13MIT
- AlicenseNot gradedqualityDmaintenanceDeploy GitHub repositories or local directories to private URLs directly from an MCP client. Includes tools for managing deployments, reading build logs, and stopping services.41 npmMIT
- AlicenseNot gradedqualityDmaintenanceProvides a unified MCP interface to manage Cloudflare services including DNS, compute (Workers, KV, D1), storage (R2), AI, security, Radar, and a universal API gateway for any Cloudflare v4 endpoint.MIT

Novence MCPofficial
AlicenseAqualityCmaintenanceEnables AI agents to create, check, deploy, and host static sites, manage files and forms, configure custom domains, and view quotas and analytics through a hosted MCP endpoint.431MIT