Jez | Jeremy Dawes
Back to projects
mcp active

Cloudflare MCP Toolbox

30 utility MCP tools for AI agents. DateTime, math, text processing, validation, KV storage, and Workers AI.

MCPCloudflare WorkersWorkers AIKV

Overview

A utility belt for AI agents with 30 tools across common tasks. DateTime operations, math calculations, text processing, validation, persistent storage, and AI inference - all on Cloudflare’s edge.

30
MCP Tools
6
Categories
3
AI Models
Global
Edge Regions

The Problem

AI agents need utilities for:

  • Date/time calculations and formatting
  • Safe mathematical operations
  • Text transformation and encoding
  • Input validation and sanitisation
  • Persistent data storage
  • Additional AI model access

Building these into every project is wasteful.

Solution

Shared utility infrastructure across 6 categories:

DateTime5

Parse, format, convert

Math6

Calculate, convert, stats

Text6

Transform, encode, hash

Validation6

Email, URL, JSON, HTML

KV Storage4

Persistent key-value

Workers AI3

Chat, classify, embed

Tools

DateTime (5)

ToolDescription
get_current_datetimeCurrent time in any timezone
convert_timezoneConvert between timezones
calculate_durationTime between two dates
format_dateFormat dates in any pattern
parse_dateNatural language parsing

Math (6)

ToolDescription
calculateSafe expression evaluation
convert_unitsLength, weight, volume, temp
statisticsMean, median, mode, stddev
random_numberCryptographically secure random
percentagePercentage calculations
roll_diceDice notation (2d6+5, 1d20)

Text (6)

ToolDescription
transform_textSlug, uppercase, titlecase
encode_decodeBase64, URL, HTML encoding
extract_patternsEmails, URLs, phones, hashtags
hash_textSHA-256/SHA-1 hashing
count_wordsWord and character counts
truncate_textSmart text truncation

Validation (6)

ToolDescription
validate_emailEmail format validation
validate_urlURL structure validation
validate_phonePhone number validation
validate_jsonJSON syntax checking
sanitize_htmlXSS protection
validate_schemaJSON schema validation

KV Storage (4)

ToolDescription
kv_getRetrieve stored value
kv_setStore with optional TTL
kv_deleteRemove key
kv_listList keys by prefix

Workers AI (3)

ToolDescription
ai_chatLLM inference
ai_classifySentiment analysis
ai_embedText embeddings with caching

Security

Safe implementation patterns:

FeatureApproach
MathRecursive descent parser (no eval)
HTMLSanitisation for XSS protection
AuthBearer token + OAuth options
InputZod schema validation

Features

  • 30 Tools - Comprehensive utility coverage
  • Zero Cold Start - Cloudflare Workers edge deployment
  • Safe Evaluation - No eval() or Function() for math
  • Persistent Storage - KV with TTL support
  • AI Integration - Workers AI with embedding cache
  • Global Edge - Low latency worldwide

Use Cases

DateTime Operations - Parse, format, convert across timezones

Calculations - Safe math with unit conversions

Text Processing - Transform, encode, extract patterns

Data Validation - Validate inputs before processing

Persistent Data - Store values across sessions

AI Augmentation - Additional model access for specific tasks

Interested in a similar solution?

Let's talk about your project