Day 1: Five MCP servers on Cloudflare Workers
Day one is a backfill of something already live: five small Model Context Protocol servers, each a single Cloudflare Worker, each exposing one or two tools. Weather to outfit, fridge to recipe, live scores, on this day, and prediction-market odds. Details on the Projects page.
The interesting thing about MCP is how little a server needs to be. A tool is a name, a JSON schema and a function:
const tools = {
on_this_day: {
description: 'Historical events, births and deaths for a date',
inputSchema: {
type: 'object',
properties: { month: { type: 'integer' }, day: { type: 'integer' } },
required: ['month', 'day'],
},
async run({ month, day }) {
const r = await fetch(`https://api.wikimedia.org/feed/v1/wikipedia/en/onthisday/all/${month}/${day}`);
return r.json();
},
},
};
Any MCP client can call it over HTTP:
curl -s https://on-this-day.me-870.workers.dev/mcp \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
What I learned: the hard part was writing a tool description precise enough that a model calls it at the right moment and leaves it alone otherwise. That's a behavior problem.