mcpu
MCP server for managing Cloudflare Workers via Cloudflare Artifacts. Enables editing, committing, and deploying worker scripts directly.
README
mcpu
mcpu is an MCP control surface for a Cloudflare Artifacts repo. GitHub is only the bootstrap seed. After first deploy, source commits live in Cloudflare Artifacts and deploy back to Cloudflare Workers.
Start here
1. Deploy to your Cloudflare account
Click Deploy to Cloudflare above and finish the deploy flow.
When it completes, copy your Worker URL. It will look like:
https://mcpu.<your-subdomain>.workers.dev
If you deploy with workers_dev = false, use the route or custom domain you configured instead.
2. Protect /mcp
Before adding deploy-capable secrets, protect /mcp with Cloudflare Access or an equivalent auth layer. Do not expose a public MCP endpoint with ARTIFACTS_TOKEN or CLOUDFLARE_API_TOKEN configured.
3. Add secrets for the Artifact loop
mcpu needs an Artifacts Git remote and token before repo.commit can push source to Cloudflare Artifacts.
Set these Worker secrets/vars in your account:
ARTIFACTS_REMOTE=https://<account-id>.artifacts.cloudflare.net/git/default/mcpu.git
ARTIFACTS_TOKEN=art_v1_...
ARTIFACTS_BRANCH=main
MCPU_SCRIPT_NAME=mcpu
CLOUDFLARE_ACCOUNT_ID=<account-id>
CLOUDFLARE_API_TOKEN=<token that can edit Workers>
GitHub is not used after bootstrap.
4. Add mcpu to your MCP config
Use your deployed Worker URL plus /mcp.
{
"mcpServers": {
"mcpu": {
"url": "https://mcpu.<your-subdomain>.workers.dev/mcp"
}
}
}
For a custom domain:
{
"mcpServers": {
"mcpu": {
"url": "https://mcpu.example.com/mcp"
}
}
}
5. Try it
Ask your agent:
Connect to mcpu. Run repo.status, list files, read worker.js, change the homepage text, show the diff, commit it, and deploy it.
Expected loop:
repo.write -> repo.diff -> repo.commit -> Cloudflare Artifacts -> repo.deploy -> Cloudflare Workers
Local development
Run the seed locally:
npm install
npm test
npm run dev -- --port 8799
Then connect to:
http://localhost:8799/mcp
Local MCP config:
{
"mcpServers": {
"mcpu-local": {
"url": "http://localhost:8799/mcp"
}
}
}
Reference
Tools:
repo.statusrepo.lsrepo.readrepo.writerepo.diffrepo.commitrepo.deployrepo.history
State:
draft- mutable working treeartifact- immutable source commit in Cloudflare Artifactsdeployment- Worker version deployed from an Artifact
Explanation
GitHub gets you to zero. Cloudflare owns everything after.
The demo is intentionally tiny: a live MCP edits a Cloudflare Artifacts repo, commits it, and deploys that Artifact as the next version of itself.
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.