Cloudflare Logging
About
A server for logging, deployable as a Cloudflare Worker.
Details
- Author
- weyseing
- Categories
- Developer Tools, Infrastructure, Cloud Service
Jump to
Setup
Install Cloudflare Logging in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/weyseing/cloudflare-mcp-logging
Follow the installation instructions in the repository README, then restart your MCP client.
A server for logging, deployable as a Cloudflare Worker.
-
npm init -y(First time to create package.json)
- Create from CF template
-
npm create cloudflare@latest -- mcp-logging --template=cloudflare/ai/demos/remote-mcp-authless
git clone https://github.com/cloudflare/ai.git
- Update to usewrangler dev --ip 0.0.0.0IP inpackage.json
- Port mapping8787:8787indocker-compose.yml
- npm startORwrangler dev --ip 0.0.0.0
- Access vialocalhost:8787/sse
- Set CF account ID towrangler.jsonc
"account_id": "<EDIT-HERE>"
- API's permission template:Edit Cloudflare Workers
- ENV:CLOUDFLARE_API_TOKEN=<EDIT-HERE>
- Start inspector
npx @modelcontextprotocol/inspector@latest
{ "mcpServers": { "CF Remote MCP": { "command": "npx", "args": [ "-y", "mcp-remote", "https://<MCP_SERVER_URL>/sse" ] } } }
{ "mcpServers": { "Basic Calculator": { "command": "npx", "args": [ "-y", "supergateway", "--sse", "http://localhost:8787/sse", "--header", "X-UserID:USERID_123", "--header", "X-SecretKey:SKEY_456" ] } } }
- Enablelogpushfor CF worker
- Set"logpush": trueinwrangler.jsonc
- Deploy to CF & check settings
R2_BUCKET_NAME="EDIT: R2 BUCKET NAME" R2_LOG_BASE_PREFIX="EDIT: R2 FOLDER NAME" CF_R2_ACCESS_KEY_ID="EDIT: R2 ACCESS KEY ID" CF_R2_SECRET_ACCESS_KEY="EDIT: R2 ACCESS SECRET"
- Runutils/download_r2_logs.jsscript to get logs
- node utils/download_r2_logs.js --start-date "2025-06-27 07:00:00" --end-date "2025-06-27 08:00:00"
export default { fetch(request: Request, env: Env, ctx: ExecutionContext) { const userId: string | null = request.headers.get('X-UserID'); const secretKey: string | null = request.headers.get('X-SecretKey'); ctx.props = { userId, secretKey }; // add this
Usethis.props.<VARIABLE_NAME>intool.
this.server.tool( "calculate", { operation: z.enum(["add", "subtract", "multiply", "divide"]), a: z.number(), b: z.number() }, async ({ operation, a, b,}) => { try { // retrieve here const userId: string | null = this.props.userId as string; const secretKey: string | null = this.props.secretKey as string;
This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.
Integrate with Foreman to manage hosts and other infrastructure resources.
A remote Model Context Protocol (MCP) server for managing VPS servers and domains on Sitequest. Lets AI assistants provision, monitor, and configure infrastructure through natural language.
Cloud security insights, guardrail guidance, and compliance checking via Dawnguard.
Access and interact with Harness platform data, including pipelines, repositories, logs, and artifact registries.
An example of a remote MCP server deployed on Cloudflare Workers without authentication.
A remote MCP server without authentication, designed for easy deployment on Cloudflare Workers.
An example of a remote MCP server without authentication, deployable on Cloudflare Workers or runnable locally.
A remote MCP server without authentication, deployable on Cloudflare Workers or locally with npm.
A remote MCP server deployable on Cloudflare Workers that does not require authentication.
Authless Remote MCP Server on Cloudflare
An example of a remote MCP server deployable on Cloudflare Workers without authentication.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





