Wikimedia Rest

liveReferenceResearch

Wikimedia REST API — fetch Wikipedia page summaries, HTML, metadata, media, revisions, on-this-day events, and daily featured content.

11tools
0msauth
free tier50 calls/day

Tools

page_summary

"What is X" / "who is X" / "tell me about X" / "Wikipedia summary of X" / "biography of X" / "history of X" — fetches the Wikipedia article extract (title, description, thumbnail, lead-paragraph extra

No parameters required.

▶Try it
page_html

Full Wikipedia article HTML (Parsoid output) — use when page_summary's extract isn't enough and you need the complete article body, infoboxes, tables, and embedded content. Returns rendered HTML you c

No parameters required.

▶Try it
page_metadata

Wikipedia article metadata: categories, inter-language links, content_urls (desktop/mobile), page_id, and namespace (ns). Use to get canonical IDs, discover language versions, or check which categorie

No parameters required.

▶Try it
page_references

Citations / references / sources cited by a Wikipedia article. Use for "what sources back the claim that…", "where does Wikipedia cite this from", or to harvest authoritative external links on a topic

No parameters required.

▶Try it
page_media

Images, videos, and other media embedded in a Wikipedia article. Use for "show me pictures of X", "what images are on the X Wikipedia page", or to find Commons-hosted media tied to a topic.

No parameters required.

▶Try it
page_revisions

Recent edit history for a Wikipedia article — editor usernames, timestamps, revision sizes, and edit comments. Use to check when an article was last updated, spot recent disputes, or assess reliabilit

No parameters required.

▶Try it
page_pdf

Returns a Mapbox static-tile image URL for a Wikipedia article as a PDF download. Caller fetches the binary PDF directly from the returned URL via browser or curl. Pass title plus optional project/lan

No parameters required.

▶Try it
onthisday

"What happened on this day" / "events that happened on May 21" / "historical events on a date" — births, deaths, events, holidays, and selected occurrences from history for any month+day. Pass type="a

No parameters required.

▶Try it
random

Random Wikipedia article summary — pick a random article from the encyclopedia. Use for "give me a random Wikipedia article", "surprise me", or seeding exploration. Returns the same shape as page_summ

No parameters required.

▶Try it

Test with curl

The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.

List available tools
bash
curl -X POST https://gateway.pipeworx.io/wikimedia-rest/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Call a tool
bash
curl -X POST https://gateway.pipeworx.io/wikimedia-rest/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"page_summary","arguments":{}}}'

Use with the SDK

Install @pipeworx/sdk to call tools from any TypeScript/Node project.

TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("page_summary", {});
ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("wikimedia rest api — fetch wikipedia page summaries, html, metadata, media, revisions, on-this-day events, and daily featured content");