Wikimedia Rest

v0.2.1
io.github.pipeworx-io/wikimedia-rest Checked 14 hours ago Published 25 days ago

Wikimedia REST API v1 MCP.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

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 extract) for any topic, person, place, event, or concept. Use whenever an agent needs a quick encyclopedic reference. Defaults to en.wikipedia.org; pass project/lang for other Wikimedia projects or languages. Example: page_summary({ title: "Albert Einstein" }).

ParameterTypeDescription
title *stringWikipedia article title, e.g. "Albert Einstein", "Python (programming language)", "World War II".
langstringLanguage code. Default "en". Examples: "es", "fr", "de", "ja".
projectstringWikimedia project. Default "wikipedia". Other: "wiktionary", "wikiquote", "wikibooks", etc.

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 can scrape/parse for full-text questions.

ParameterTypeDescription
title *string
langstring
projectstring

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 categories an article belongs to.

ParameterTypeDescription
title *string
langstring
projectstring

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.

ParameterTypeDescription
title *string
langstring
projectstring

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.

ParameterTypeDescription
title *string
langstring
projectstring

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 reliability before quoting.

ParameterTypeDescription
title *string
langstring
projectstring

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/lang for non-English Wikimedia projects.

ParameterTypeDescription
title *string
langstring
projectstring

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="all" for everything, or filter to "births" / "deaths" / "events" / "holidays" / "selected".

ParameterTypeDescription
day *number
month *number
type *stringOne of "all", "births", "deaths", "events", "holidays", "selected".
langstring
projectstring

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_summary.

ParameterTypeDescription
langstring
projectstring