Wikimedia Commons
Referenceapi.wikimedia.org
File metadata from Wikimedia Commons: the licence, author and preferred attribution for a media file.
The crw MCP on your computer calls Wikimedia Commons directly. Calls cost no credits and the data does not pass through fastCRW. Install it once for Claude Code, Cursor, Codex, Windsurf, Gemini CLI or OpenCode, with your fastCRW API key in place of the placeholder:
Capabilities (20)
wikimedia/featuredFree, runs locallyWikipedia's whole front page for one calendar date in one language: the featured article with extract and image, the picture of the day, the most-read articles with view counts, and the In The News items.
wikimedia/fileFree, runs locallyEverything about one Commons file: its canonical title, description page URL, uploader and timestamp of the latest version, and direct URLs plus pixel dimensions, duration and byte size for the thumbnail, preview and original renditions.
wikimedia/history-countsFree, runs locallyA single integer counting one class of activity on a page (total edits, distinct editors, bot edits, anonymous edits, minor edits or reverted edits) plus a flag saying whether the server's counting limit was hit.
wikimedia/onthisdayFree, runs locallyHistorical events tied to one calendar day (selected anniversaries, births, deaths, general events and holidays), each with a year, a text summary and the linked Wikipedia pages with extracts and thumbnails.
wikimedia/page-bareFree, runs locallyThe lightweight record for one wiki page: id, key, title, content model, licence, the latest revision id and timestamp, and an html_url pointing at the rendered page, with no article body.
wikimedia/page-descriptionFree, runs locallyThe one-line short description of a page, the same string that appears under the title in the mobile apps and in search suggestions.
wikimedia/page-historyFree, runs locallyA segment of 20 revisions of one page, newest first, each with revision id, timestamp, editor, byte size, delta, comment and minor flag, plus older/newer links for paging.
wikimedia/page-htmlFree, runs locallyThe page metadata together with the fully rendered Parsoid HTML of the article in a JSON envelope, so templates, infoboxes and tables arrive already expanded.
wikimedia/page-language-linksFree, runs locallyEvery other-language version of one page, each with its language code, autonym, localised title and full URL.
wikimedia/page-mediaFree, runs locallyEvery image, video and audio file used on one page, each with its title, media type, original and thumbnail URLs, dimensions, byte size and the structured artist, credit and licence fields from its Commons description.
wikimedia/page-sourceFree, runs locallyThe full raw wikitext of one wiki page plus its metadata: id, key, title, latest revision, content model and licence.
wikimedia/pageviewsFree, runs locallyA time series of how many times one article was viewed, one data point per day or month, filtered by platform and by human-versus-bot traffic.
wikimedia/pageviews-aggregateFree, runs locallyA time series of total pageviews for an entire wiki, one point per hour, day or month, split by platform and traffic type.
wikimedia/pageviews-topFree, runs locallyThe thousand most viewed articles on one wiki for a given day or month, ranked, with each article's title, rank and view count.
wikimedia/revisionFree, runs locallyOne specific revision of a page: its wikitext as it stood at that moment, plus the editor, timestamp, comment, byte size, delta and the id of the revision it replaced.
wikimedia/revision-bareFree, runs locallyThe record for one revision without its content: page id and title, editor, timestamp, comment, byte size, delta, minor flag and a link to the HTML.
wikimedia/revision-compareFree, runs locallyA structured diff between two revisions of the same page: an array of changed ranges with the old and new text, change type, line numbers and character offsets, plus both revisions' metadata.
wikimedia/searchFree, runs locallyFull-text search of Wikimedia Commons file and category pages, returning page id, key, title, a highlighted excerpt, the short description and a thumbnail URL for each hit.
wikimedia/search-pageFree, runs locallyFull-text search across the content of one wiki, returning page id, key, title, a highlighted excerpt, the short description and a thumbnail for each hit.
wikimedia/search-titleFree, runs locallyPages whose titles start with the given prefix, each with id, key, title, short description and thumbnail: the typeahead index rather than a content search.
Response example
The shape of data from wikimedia/featured (Featured content for a date). A sample, not live data.
Example truncated, full shape in JSON from the API.
{
"tfa": {
"type": "standard",
"title": "Koala",
"displaytitle": "<span lang=\"en\" dir=\"ltr\"><span class=\"mw-page-title-main\">Koala</span></span>",
"namespace": {
"id": 0,
"text": ""
},
"wikibase_item": "Q36101",
"titles": {
"canonical": "Koala",
"normalized": "Koala",
"display": "<span lang=\"en\" dir=\"ltr\"><span class=\"mw-page-title-main\">Koala</span></span>"
},
"pageid": 17143,
"thumbnail": {
"source": "https://thumb.wikimedia.org/wikipedia/commons/thumb/4/49/Koala_climbing_tree.jpg/960px-Koala_climbing_tree.jpg?utm_source=en.wikipedia.org&utm_campaign=api&utm_content=thumbnail",
"width": 960,
"height": 944
},
"originalimage": {
"source": "https://upload.wikimedia.org/wikipedia/commons/4/49/Koala_climbing_tree.jpg?utm_source=en.wikipedia.org&utm_campaign=api&utm_content=original",
"width": 1132,
"height": 1113
},
"lang": "en",
"dir": "ltr",
"revision": "1379927503",
"tid": "7497c0dd-c66e-11f1-a39f-aff15eb76c3f",
"timestamp": "2026-10-12T18:55:13Z",
"description": "Arboreal herbivorous marsupial native to Australia",
"description_source": "local",
"content_urls": {
"desktop": {
"page": "https://en.wikipedia.org/wiki/Koala",
"revisions": "https://en.wikipedia.org/wiki/Koala?action=history",
"edit": "https://en.wikipedia.org/wiki/Koala?action=edit",
"talk": "https://en.wikipedia.org/wiki/Talk:Koala"
},
"mobile": {
"page": "https://en.wikipedia.org/wiki/Koala",
"revisions": "https://en.wikipedia.org/wiki/Special:History/Koala",
"edit": "https://en.wikipedia.org/wiki/Koala?action=edit",
"talk": "https://en.wikipedia.org/wiki/Talk:Koala"
}
},
"extract": "The koala, sometimes inaccurately called the koala bear, is an arboreal herbivorous marsupial native to Australia. It is the only extant representative of the family Phascolarctidae. Its closest living relatives are the wombats. The koala is found in coastal areas of the continent's eastern and southern regions, inhabiting Queensland, New South Wales, Victoria, and South Australia. It is easily recognisable by its stout, tailless body and large head with round, fluffy ears and large, dark nose. …",
"extract_html": "<p>The <b>koala</b>, sometimes inaccurately called the <b>koala bear</b>, is an arboreal herbivorous marsupial native to Australia. It is the only extant representative of the family Phascolarctidae. Its closest living relatives are the wombats. The koala is found in coastal areas of the continent's eastern and southern regions, inhabiting Queensland, New South Wales, Victoria, and South Australia. It is easily recognisable by its stout, tailless body and large head with round, fluffy ears and l…",
"normalizedtitle": "Koala"
},
"mostread": {
"date": "2023-12-31Z",
"articles": [
{
"views": 1174171,
"rank": 2,
"view_history": [
"{ 2 keys }",
"{ 2 keys }",
"{ 2 keys }",
"… 2 more items"
],
"type": "standard",
"title": "New_Year's_Eve",
"displaytitle": "<span lang=\"en\" dir=\"ltr\"><span class=\"mw-page-title-main\">New Year's Eve</span></span>",
"namespace": {
"id": 0,
"text": ""
},
"wikibase_item": "Q11269",
"titles": {
"canonical": "New_Year's_Eve",
"normalized": "New Year's Eve",
"display": "<span lang=\"en\" dir=\"ltr\"><span class=\"mw-page-title-main\">New Year's Eve</span></span>"
},
"pageid": 277922,
"thumbnail": {
"source": "https://thumb.wikimedia.org/wikipedia/commons/thumb/b/b4/Fireworks_on_New_Year%27s_Eve_in_a_small_Swabian_village_%281%29%2C_brightened.jpg/330px-Fireworks_on_New_Year%27s_Eve_in_a_small_Swabian_village_%281%29%2C_brightened.jpg?utm_source=en.wikAsk with this source
A prompt for your agent that names this source and how to call it through the crw MCP.
Featured content for a date
Use Wikimedia Commons (wikimedia) from fastCRW Pergamon, capability "Featured content for a date" (featured). You want what Wikipedia itself put on its front page on a given day, including that day's most-read articles. Example options: language=en, year=2024, month=01. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "wikimedia" and capability "featured". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Commons file detail
Use Wikimedia Commons (wikimedia) from fastCRW Pergamon, capability "Commons file detail" (file). You already hold a Commons file title and need the direct media URL, dimensions or uploader before using the file. Example options: title=File:The Earth seen from Apollo 17.jpg. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "wikimedia" and capability "file". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Page edit statistics
Use Wikimedia Commons (wikimedia) from fastCRW Pergamon, capability "Page edit statistics" (history-counts). You need a number for how heavily or how contentiously a page is edited, without downloading its history. Example options: project=wikipedia, language=en, title=Earth. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "wikimedia" and capability "history-counts". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
On this day in history
Use Wikimedia Commons (wikimedia) from fastCRW Pergamon, capability "On this day in history" (onthisday). You want historical events, births or deaths for a month and day, independent of year. Example options: language=en, type=selected, month=01. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "wikimedia" and capability "onthisday". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Attribution
Display this wherever you show the data. It arrives on every response as provenance.attributionText.
Source: Wikimedia; each page's or file's licence and authors are in the response
