Fetch xkcd comics by number, latest release, or random (excluding #404), returning title, alt text, image, date, transcript, and permalink.
Fetch xkcd comics programmatically. Because sometimes you need to cite "Standards" (927) in a technical argument, or share "Compiling" (303) while waiting for CI.
Three tools:
get_latest -- Whatever Randall published most recentlyget_comic -- A specific comic by numberrandom_comic -- Surprise me (skips #404, which is intentionally missing -- it's an xkcd joke)Each comic comes with the title, alt text (the hover text!), image URL, date, transcript, and a permalink.
bash
curl -X POST https://gateway.pipeworx.io/xkcd/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_comic","arguments":{"number":353}}}'
#Title149Sandwich303Compiling327Exploits of a Mom (Bobby Tables)353Python386Duty Calls927Standards1053Ten Thousand2347Dependencyjson
{
"mcpServers": {
"xkcd": {
"url": "https://gateway.pipeworx.io/xkcd/mcp"
}
}
}