Install
$ agentstack add mcp-explorium-ai-cloudflare-tail-worker-datadog ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Cloudflare to Datadog Tail Worker
Send your Cloudflare Worker logs to Datadog in real-time. This tail worker transforms and forwards logs with custom tags and structured format.
Why This?
- Datadog SDK doesn't work in Cloudflare Workers (Node.js dependencies)
- Logpush is bulky - sends huge batches instead of individual logs
- Need real-time logs with custom enrichment and tagging
Quick Start
- Clone and install
``bash git clone https://github.com/explorium-ai/cloudflare-tail-worker-datadog.git cd cloudflare-tail-worker-datadog npm install ``
- Set your Datadog API key
``bash wrangler secret put DD_API_KEY ``
- Configure environment in
wrangler.jsonc:
``json { "vars": { "SERVICE_NAME": "your-service-name", "ENVIRONMENT": "production", "DD_SITE": "datadoghq.com" } } ``
- Deploy
``bash npm run deploy ``
- Connect your workers - add to their
wrangler.toml:
``toml [[tail_consumers]] service = "cloudflare-tail-worker-datadog" ``
Done! Your logs now flow to Datadog in real-time.
Configuration
| Variable | Required | Description | Example | |----------|----------|-------------|---------| | DD_API_KEY | ✅ | Your Datadog API key | abc123... | | SERVICE_NAME | ✅ | Service name for tagging | my-api-service | | ENVIRONMENT | ❌ | Environment tag (defaults to dev) | production | | DD_SITE | ❌ | Datadog site (defaults to datadoghq.com) | datadoghq.eu |
How It Works
- Receives tail events from your Workers in real-time
- Transforms logs into structured format with tags
- Sends to Datadog via HTTP API
- Adds metadata: service name, environment, timestamps
Development
npm test # Run tests
npm run dev # Local development
npm run cf-typegen # Generate types
Viewing Logs in Datadog
Your logs appear in Datadog with structured tags:
Find your logs:
- Filter by
source:cloudflare-tail-worker - Use tags like
service:your-service-nameorenv:production
Example queries:
source:cloudflare-tail-worker AND status:error
service:my-api AND env:production
log_level:error OR log_level:warn
Troubleshooting
No logs appearing?
- Check API key exists:
wrangler secret list - Verify
[[tail_consumers]]in your worker'swrangler.toml - Ensure your workers are actually logging (
console.log) - Confirm correct
DD_SITEfor your region
Debug your tail worker:
wrangler tail cloudflare-tail-worker-datadog # Watch live logs
wrangler list # Check deployment
License
MIT
Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: explorium-ai
- Source: explorium-ai/cloudflare-tail-worker-datadog
- License: MIT
- Homepage: https://www.explorium.ai
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.