wikimedia
Searches Wikimedia Commons for media by phrase or exact title with filters for SVG, image, audio, video, or PDF files. Resolves files to source page, direct URL, dimensions, size, artist, license, and restrictions; generates Markdown, HTML, URL, or attribution references; downloads original media or rendered previews with a JSON provenance sidecar; and lists direct file members of Commons categories with pagination.
Retrieves Wikipedia article introductions or full extracts, revision links, optional wikitext, and image titles.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@wikimediafind a reusable photo of the Eiffel Tower on Wikimedia Commons"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Quick Start
Python 3.11 or newer is required. Install uv to create the project environment and install the optional MCP server dependency.
cd ~/Projects/wikimedia
uv sync --extra mcp
.venv/bin/wikimedia --help
.venv/bin/wikimedia search "Discogs logo" --type svg --limit 5If the shell command is already installed, run wikimedia "Discogs logo" to open the interactive result picker. Use an exact Commons file title for repeatable downloads and references.
cd ~/Projects/wikimedia
python3 -m venv .venv
.venv/bin/python -m pip install -e ".[mcp]"Search results are ranked suggestions. Check the file page, license, attribution, and restrictions before reusing media.
Related MCP server: call-copilot
Features
Feature | What it does | |
Commons search | Search files by phrase and filter by SVG, image, audio, video, or PDF. | |
File details | Resolve an exact title to source page, original URL, size, dimensions, artist, license, and restrictions. | |
References | Format Markdown, HTML, a direct URL, or an attribution line. | |
Downloads | Save original media or a rendered preview with a JSON provenance sidecar. Existing files are protected unless | |
Categories | List direct file members of a Commons category and continue through result pages. | |
Wikipedia | Retrieve an article introduction or full extract, revision link, optional wikitext, and image titles. | |
MCP tools | Expose Commons and Wikipedia lookups to MCP-compatible clients over local stdio. |
Compatibility
Platform | CLI and MCP core | Clipboard and open |
macOS | Python 3.11+ | Text and file clipboard via |
Linux | Python 3.11+ | Text clipboard via |
Windows | Not verified | Clipboard and open helpers are not implemented for Windows. |
The HTTP client uses Python's standard library. MCP support adds the optional mcp package. The project is developed and verified on macOS; platform entries describe the integrations present in the code.
Workflow
Step | What happens | CLI example |
Search | Find media by phrase, exact title, or Commons URL. |
|
Review | Inspect creator, source, license, and restrictions. |
|
Choose | Pick an original, rendered preview, or reference format. |
|
Act | Download, copy, or open the file page. |
|
Retain | Keep the media and its provenance sidecar together. |
|
Interactive terminals show a numbered picker and action menu. In a non-interactive shell, a plain search prints results; a search combined with an action uses the first ranked result. Use an exact File: title when a script must target a specific item.
Usage
Search And Select
# Interactive search and selection in a terminal
wikimedia "Discogs logo"
# Filter for vector files and print structured results
wikimedia search "Discogs logo" --type svg --limit 5 --json
# Search for images, audio, video, or PDF files
wikimedia search "field recording" --type audio --limit 10search is optional for a Commons query. The first example uses the interactive selector when stdin is a terminal. --json disables interactive output.
Inspect A File
wikimedia info "File:Discogs icon.svg"
wikimedia "https://commons.wikimedia.org/wiki/File:Discogs_icon.svg" --jsonThe record includes the Commons source page and direct media URL, file dimensions and size, MIME type, upload timestamp, artist, license fields, and restrictions such as trademark notices.
Create References
# Print a Markdown image reference
wikimedia md "File:Discogs icon.svg"
# Print an HTML image element with a display height
wikimedia html "File:Discogs icon.svg" --height 32
# Print the direct media URL or an attribution line
wikimedia url "File:Discogs icon.svg"
wikimedia attr "File:Discogs icon.svg"
# Copy a Markdown reference to the text clipboard
wikimedia md -c "File:Discogs icon.svg"When l or url is used without a style, an interactive terminal offers Markdown, HTML, URL, and attribution formats. md, html, and attr select a format directly. A width requests a Wikimedia thumbnail, which may change an SVG reference into a PNG preview URL.
Download Media
# Download the original file to ./downloads
wikimedia d --out ./downloads "File:Discogs icon.svg"
# Download a 120 px preview. SVG previews are raster PNGs.
wikimedia d --out ./downloads --width 120 "File:Discogs icon.svg"
# Download and copy the downloaded file to the system clipboard
wikimedia d c --out ./downloads "File:Discogs icon.svg"
# Download, print a Markdown reference, and force replacement if needed
wikimedia d l md -f --out ./downloads "File:Discogs icon.svg"Each download writes a sibling .wikimedia.json file with the source record, representation, retrieval time, byte count, and SHA-256 hash. Downloads are staged before publication and do not overwrite existing media or sidecars by default.
Group short actions:d c downloads then copies the file; d l md downloads and prints Markdown. -O is the short output-directory flag. -o means open in a browser.
Browse Categories
wikimedia category "ITunes logos" --limit 10
wikimedia cat "Category:Discogs logos" --limit 20 --jsonThe category command lists direct file members, not recursive descendants. Use --cursor with the continuation token from JSON output to request another page.
Read Wikipedia
# Fetch an article introduction
wikimedia wiki "MediaWiki"
# Fetch the full plain-text extract or include revision wikitext
wikimedia wiki "MediaWiki" --full
wikimedia wiki "MediaWiki" --full --wikitext --language en
# Create a revision-specific Markdown citation
wikimedia wiki md "MediaWiki"The CLI fetches a known article title. Wikipedia title search is available through the MCP wikipedia_search tool; the CLI does not currently expose a separate Wikipedia search command. wikipedia_list_images returns titles only. Some may be local Wikipedia files or non-free media, so a title alone does not establish that a Commons download is available.
Copy And Open
Action | Command | Behavior |
Open |
| Opens the Commons file page in the default browser. |
Copy a reference |
| Copies the generated text reference. |
Copy a file |
| Downloads the original, then copies the file item where supported. |
On macOS, file clipboard uses AppleScript and text clipboard uses pbcopy. On Linux, text clipboard tries wl-copy, xclip, then xsel; file clipboard falls back to copying the local path. Browser opening uses open on macOS and xdg-open on Linux.
Commands
Command | Purpose | Example |
| Search Commons or resolve a supplied file, category, or supported Wikimedia URL. |
|
| Search Commons media. |
|
| Print full metadata. |
|
| Download original media or a width-rendered preview. |
|
| Generate a Markdown, HTML, URL, or attribution reference. |
|
| Open the Commons file page. |
|
| List direct Commons category members. |
|
| Fetch a Wikipedia article. |
|
| Start the MCP stdio server. |
|
Option | Default | Meaning |
| Current directory | Download destination. |
|
| Request a rendered thumbnail at this width. |
|
| HTML reference display height. |
|
| Result count, from 1 to 50. |
|
| Search offset, from 0 to 10,000. |
|
| Commons filter: |
| API filename | Choose a safe output filename. |
|
| Wikipedia language code. |
| Off | Fetch a full Wikipedia text extract. |
| Off | Include the current revision wikitext. |
| Empty | Continue a Commons category listing. |
| Off | Replace an existing media file and sidecar. |
| Off | Copy the downloaded file or generated reference to the clipboard. |
| Off | Download the selected file. |
| Off | Generate a reference; prompts for format in an interactive terminal. |
| Off | Select Markdown or HTML reference output. |
| Off | Emit JSON rather than styled terminal output. |
| — | Show usage. |
| — | Print the CLI version. |
Short actions can be separate words (d c) or grouped (-dcf). --out may appear before or after the query. The output-directory short flag is -O; -o is reserved for open.
MCP Server
Install the optional MCP dependency with uv sync --extra mcp. The server uses stdio and exposes nine tools for Commons search, file metadata, categories, references, downloads, Wikipedia articles, images, and citations.
# Start the standalone server with downloads disabled
.venv/bin/wikimedia-mcp
# Enable downloads under a fixed directory
.venv/bin/wikimedia-mcp --download-dir ~/Downloads/Wikimedia
# Or start it through the main CLI
.venv/bin/wikimedia mcp --download-dir ~/Downloads/WikimediaAdd the executable to your MCP client's configuration. Use an absolute path to the checkout and choose a download directory the server may write to.
{
"mcpServers": {
"wikimedia": {
"command": "/absolute/path/to/wikimedia/.venv/bin/wikimedia",
"args": [
"mcp",
"--download-dir",
"/absolute/path/to/wikimedia-downloads"
]
}
}
}Tool | What it returns |
| Ranked Commons files with optional type filter, preview width, and continuation. |
| Exact file record and reuse metadata. |
| Direct file members and category continuation. |
| URL, Markdown, HTML, or attribution text. |
| Downloaded file and provenance sidecar under the configured root. |
| Search results for an article query and language. |
| Article intro or full extract with revision metadata. |
| Image titles on a Wikipedia article. |
| Citation text tied to a retrieved revision. |
Downloads are disabled until a root is configured with --download-dir or WIKIMEDIA_DOWNLOAD_DIR. MCP downloads accept a relative subdir, validate path containment, and refuse to overwrite existing files.
Configuration
There is no configuration file or API key. The CLI reads these environment variables when present:
Variable | Default | Purpose |
|
| Override the HTTP User-Agent sent to Wikimedia. Include a contact URL in a custom value. |
| Unset | Enable MCP downloads under this directory when no |
| Unset | Disable ANSI colors when set. |
|
| Set to |
The CLI defaults downloads to the current directory. --out changes that location for a command; it does not enable MCP downloads.
Reuse And Safety
Wikimedia records can contain license, author, source, and restriction metadata. The tool carries that data into references and download sidecars, but it does not determine whether a particular reuse is lawful or whether a mark may be used commercially.
A public-domain copyright status does not remove trademark restrictions. Review the Commons file page and relevant rights before publishing or redistributing a file.
The header mark is Commons-logo.svg, by Reidab, Grunt, 3247, and Pumbaa. It is licensed under CC BY-SA 3.0 and is identified on Commons as a Wikimedia trademark. Its source record is preserved in assets/Commons-logo.svg.wikimedia.json; see the Commons file page.
The downloader only accepts HTTPS Wikimedia media hosts, follows redirects only to supported hosts, caps files at 100 MiB in the CLI, and checks the downloaded original size against the API record when available. --force replaces both the media file and sidecar.
How It Works
The CLI and MCP adapter share one Python core. Both query the same Wikimedia APIs and use the same reference formatter and downloader. The downloader writes a media file and a provenance sidecar. Network access uses Python's standard library; the MCP SDK is the only optional runtime dependency.
Component | Responsibility |
| API requests, title and URL parsing, response shaping, retry handling. |
| Escaped Markdown and HTML references plus attribution text. |
| Host validation, bounded transfer, no-clobber publication, SHA-256, sidecar metadata. |
| Platform clipboard and default-app integration. |
| Flexible action parser, search workflow, and terminal selection. |
| MCP stdio tools using the shared core. |
Troubleshooting
Install the optional server dependency from the project root:
uv sync --extra mcpChoose another destination or filename. Add --force only when replacing both the media and its metadata sidecar is intended.
Some files have no preview URL at the requested size. Remove --width to use the original file, or try a smaller width.
On macOS, check that pbcopy and osascript are available. On Linux, install one of wl-copy, xclip, or xsel for text. File-item clipboard integration is macOS-specific.
Check network access and retry later. The client retries temporary API or transport failures, but honors long Retry-After pauses by returning an error rather than sleeping for an extended period.
Structure
wikimedia/
├── assets/
│ ├── Commons-logo.svg # Wikimedia Commons source mark
│ ├── Commons-logo.svg.wikimedia.json # License and source record
│ ├── wikimedia-header.svg # Repository header banner
│ ├── workflow.svg # Wide workflow graphic
│ └── workflow-mobile.svg # Mobile workflow graphic
├── bin/
│ └── wikimedia # Symlink-friendly development launcher
├── src/wikimedia_tool/
│ ├── cli.py # Command-line entry point
│ ├── client.py # Shared Wikimedia API client
│ ├── clipboard.py # Clipboard and system-open helpers
│ ├── downloads.py # Safe media transfer and provenance
│ ├── references.py # Markdown, HTML, URL, attribution output
│ ├── server.py # Optional MCP stdio server
│ └── ui.py # Terminal cards and selectors
├── tests/
│ └── test_wikimedia.py # Unit tests
├── downloads/ # Local download examples and output
├── pyproject.toml # Package metadata and entry points
└── uv.lock # Locked development environmentDevelopment
uv sync --extra mcp
uv run python -m unittest discover -s tests -v
uv run wikimedia --help
uv buildThe test suite uses the standard-library unittest runner. Tests mock network transfers; live API and download behavior should be checked separately when changing the HTTP client or downloader.
License
𝗗𝗢 𝗪𝗛𝗔𝗧 𝗧𝗛𝗘 𝗙𝗨𝗖𝗞 𝗬𝗢𝗨 𝗪𝗔𝗡𝗧 𝗧𝗢 𝗣𝗨𝗕𝗟𝗜𝗖 𝗟𝗜𝗖𝗘𝗡𝗦𝗘
𝗖𝗢𝗣𝗬𝗥𝗜𝗚𝗛𝗧 © 𝟮𝟬𝟮𝟲 𝗗𝗘𝗔𝗧𝗛𝗥𝗔𝗦𝗛𝗘𝗗
Available Tools
9 toolswikimedia_download_fileA
Download one exact Commons file with provenance JSON/SHA256 beneath the configured download root. Never overwrites. width selects preview; max_mb 1–2048. Requires --download-dir or WIKIMEDIA_DOWNLOAD_DIR.
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| title | Yes | ||
| width | No | ||
| max_mb | No | ||
| subdir | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The description adds real behavior beyond the annotations: a provenance JSON/SHA256 sidecar is written, existing files are never overwritten, and a download root must be configured via --download-dir or WIKIMEDIA_DOWNLOAD_DIR. It does not say what happens on a name collision (error vs. skip), and with destructiveHint=false and idempotentHint=false already declared, the remaining gaps are about failure modes rather than the write profile.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Four short sentences, front-loaded with the action and the side-effect contract, then the parameter notes and the prerequisite. Slightly telegraphic, but nothing is wasted.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a download tool with no output schema, the description covers the destination convention, the sidecar artifact, the no-overwrite guarantee, and the required configuration. An agent could invoke it correctly; only collision behavior and the destination of name/subdir remain unstated.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0% across 5 parameters, so the description carries the burden. It clarifies that title must be exact and that width switches to a preview, but "max_mb 1–2048" only restates the schema's min/max, and the name and subdir parameters are never explained.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
"Download one exact Commons file" gives a specific verb plus resource and the qualifier "exact" distinguishes it from search-based siblings like wikimedia_search_media. It does not explicitly name wikimedia_get_file or wikimedia_reference_file, so the differentiation with siblings is implied rather than stated.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The "exact Commons file" phrasing implicitly tells the agent it needs a resolved title (search first), and "width selects preview" signals a preview-versus-original choice. However, there is no explicit when-to-use/when-not guidance and no named alternative for discovering titles or fetching metadata instead of the file.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
wikimedia_get_fileARead-onlyIdempotent
Resolve one exact Commons File: title with original/optional preview URL, artist, license, restrictions, upload timestamp and SHA1. width 0–4096.
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| width | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds the useful return payload and the width bound, but leaves unclear what width=0 produces, whether URLs expire, and what happens for a missing title. Modest added value over the annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two telegraphic fragments with no filler; the resolution behavior is front-loaded and the width constraint trails as a qualifier. Slightly terse to the point of ambiguity, which costs it the top mark.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With no output schema, the field enumeration does the work of describing the return value, and the rich annotations cover safety. Remaining gaps (error behavior for nonexistent titles, URL lifetime) are minor for a two-parameter read tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must carry both parameters. It conveys title must be an exact Commons 'File:' title and hints at width semantics via 'original/optional preview URL' plus 'width 0–4096', but never states that 0 means original and non-zero means a scaled preview, or what the maximum does. Partial compensation only.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb ('Resolve') and a precise resource ('one exact Commons File: title'), and enumerates the returned fields (URL, artist, license, restrictions, timestamp, SHA1). The word 'exact' plus the enumeration separates it from wikimedia_search_media, though no sibling is named explicitly.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
'Resolve one exact Commons File: title' implies the caller must already know the title, which rules out search-style use, but the description never names the alternatives (wikimedia_search_media, wikimedia_download_file, wikimedia_reference_file) or states when to pick this over them.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
wikimedia_list_categoryBRead-onlyIdempotent
List direct file members of a Commons category (not recursive). limit 1–50. Pass continuation.gcmcontinue as cursor for the next page.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| title | Yes | ||
| width | No | ||
| cursor | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds real value by disclosing pagination behavior and the cursor mechanic (continuation.gcmcontinue), but says nothing about what a page of results contains or what happens for an empty/nonexistent category.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Three short sentences, front-loaded with the scope constraint, then the limit bound, then the paging instruction. No filler and no repetition of the tool name.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With zero schema description coverage, no output schema, and four parameters, the description should explain the required title format and the width parameter. It covers pagination adequately but leaves an agent guessing about the most important argument and about what the response looks like.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must carry the four parameters, and it does not. It explains cursor (via continuation.gcmcontinue) and restates the limit range already enforced by the schema, but leaves the required `title` ambiguous (with or without a 'Category:' prefix) and never mentions `width` at all.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource ("List direct file members of a Commons category") and immediately qualifies scope with "not recursive," so an agent knows it returns direct members only. It does not name any sibling tool, so the differentiation from wikipedia_list_images or wikimedia_search_media is left to inference.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The parenthetical "(not recursive)" implies when this is the right choice versus a recursive walk, and the cursor sentence describes how to page. There is no explicit statement of when to prefer a sibling like wikimedia_search_media or what prerequisites (category existence, namespace) apply.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
wikimedia_reference_fileBRead-onlyIdempotent
Resolve a Commons file and generate an escaped reference plus separate attribution. width requests an actual API preview; height affects HTML display only.
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | markdown | |
| title | Yes | ||
| width | No | ||
| height | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds two real behavioral facts beyond that: width triggers an actual API preview call while height affects HTML display only. It says nothing about failure handling for missing files or how the 'escaped' and 'separate attribution' outputs relate.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two compact sentences with the core action front-loaded and the parameter nuances following. Nothing is redundant, though the first sentence packs two distinct outputs together without separating them.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
There is no output schema, and the description only loosely characterizes the return as an escaped reference plus separate attribution without indicating shape, fields, or whether style controls only the first part. For a four-parameter read tool with open-world behavior, that leaves a meaningful gap.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description carries the burden and does explain the width/height distinction, which is the least obvious part of the schema. It leaves 'title' format unspecified (bare filename vs File: prefix) and does not clarify the style enum values, especially how 'attribution' differs from the always-produced separate attribution.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource: resolve a Commons file and generate an escaped reference plus attribution. An agent can tell this produces citation text rather than raw file data, but the description never names sibling tools such as wikimedia_get_file or wikimedia_download_file, so the boundary is left to inference.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no explicit when-to-use or when-not-to-use guidance, and no alternative is named despite eight siblings including the closely related wikimedia_get_file. The citation-oriented phrasing hints at a use case, but nothing tells the agent when to pick this over a plain file lookup.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
wikimedia_search_mediaBRead-onlyIdempotent
Search Commons files, ranked by relevance. limit 1–50; offset 0–10000; width 0–4096. Returns metadata, licenses and continuation (gsroffset).
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | all | |
| limit | No | ||
| query | Yes | ||
| width | No | ||
| offset | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already cover the safety profile (readOnly, idempotent, open-world, non-destructive), and the description goes beyond them by disclosing that results include metadata and licenses and that pagination continues via a 'gsroffset' token. That continuation detail is the genuinely valuable part, since an agent would otherwise not know how to page through results.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
One short sentence plus a compact constraint clause, with the core purpose front-loaded before the parameter details. Slight waste in repeating schema-encoded ranges, but no filler or redundancy in phrasing.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With 5 params, no output schema, and zero schema description coverage, the description should do more heavy lifting. It helpfully states what is returned (metadata, licenses, continuation) but leaves the media-type selector and the meaning of width unexplained, which are gaps an agent must guess at when filtering by file type.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must carry param meaning, but the only ranges it cites (limit 1–50, offset 0–10000, width 0–4096) merely restate the schema's minimum/maximum values. It never explains the 'kind' enum (all/svg/image/audio/video/pdf), the most important semantic decision for a media search, and 'width' remains ambiguous (thumbnail render width vs. filter).
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb and scope ('Search Commons files') rather than a generic 'search', which separates it from Wikimedia siblings such as wikimedia_get_file and wikimedia_list_category. It does not, however, distinguish itself from wikipedia_search or wikipedia_list_images, so an agent must infer that this one targets Commons media specifically.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no guidance on when this tool is preferred over wikimedia_list_category (browse by category), wikimedia_get_file (fetch a known file), or wikipedia_list_images. 'Ranked by relevance' hints that it is a text-relevance search, but no alternatives or exclusions are named.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
wikipedia_get_articleBRead-onlyIdempotent
Fetch a Wikipedia introduction or full plain text, optional revision wikitext, Wikidata ID, disambiguation flag and revision-specific citation URL.
| Name | Required | Description | Default |
|---|---|---|---|
| full | No | ||
| title | Yes | ||
| language | No | en | |
| wikitext | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so safety is covered. The description adds that the call can surface a Wikidata ID, a disambiguation flag and a revision-specific citation URL, which is genuinely useful behavior context, but it never clarifies whether these are outputs or options, leaving the agent uncertain.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
It is a single front-loaded sentence with a clear verb, so it is compact. However, it crams parameters and return values into one dense comma list, making it hard to tell which nouns are inputs and which are outputs.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With no output schema, the description does attempt to disclose return content (Wikidata ID, disambiguation flag, citation URL), which is the main gap a bare schema leaves. What remains missing is usage guidance against the many sibling tools, and disambiguation of which listed items are inputs.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must carry the parameter burden. It adds meaning for two of four parameters ('full' via 'introduction or full plain text', 'wikitext' via 'optional revision wikitext') but says nothing about 'title' or the 'language' parameter's default of 'en'.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb+resource ('Fetch a Wikipedia ... article') and scopes it to introduction vs full plain text, which separates it from the search/list siblings. It does not explicitly name wikipedia_search or wikipedia_reference_article as the alternatives, so differentiation is inferable rather than stated.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no when-to-use guidance at all: nothing says when to pick this over wikipedia_search (to find a title) or wikipedia_reference_article (to cite one). The 'introduction or full' phrasing implies a choice via the full flag but never frames it as a usage decision.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
wikipedia_list_imagesARead-onlyIdempotent
List image titles used by an article; may include local/non-free files. Resolve on Commons separately. limit 1–50; continuation.imcontinue becomes cursor.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| title | Yes | ||
| cursor | No | ||
| language | No | en |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds real value beyond that: it warns results may include local/non-free files that must be resolved elsewhere, and explains the continuation token flow. Return format beyond 'titles' is not detailed, which keeps it from a 5.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Extremely compact and front-loaded: purpose first, caveats second, parameter notes last. The telegraphic fragment style ('limit 1–50; continuation.imcontinue becomes cursor') is efficient, though slightly terse for an agent unfamiliar with the API field names.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With no output schema and no schema descriptions, the description covers the essentials (what is listed, non-free caveat, pagination) but leaves gaps: what 'title' refers to (article title), what 'language' changes, and the shape of the returned list. Adequate but not complete for a 4-parameter tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0% across four parameters, so the description must compensate. It does explain the cursor provenance ('continuation.imcontinue becomes cursor'), which is genuinely useful, and restates the 1–50 limit (already encoded as min/max in the schema). The 'title' and 'language' parameters get no explanation at all.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource: 'List image titles used by an article'. The caveat that results may include local/non-free files further delimits the scope. It doesn't name a sibling tool directly, but 'Resolve on Commons separately' implicitly points to the file-resolution siblings.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
'Resolve on Commons separately' implies the follow-up workflow and hints that this tool is not the place to fetch image binaries or metadata. However, no sibling is named (e.g. wikimedia_get_file, wikimedia_search_media), and there is no explicit when-not-to-use guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
wikipedia_reference_articleCRead-onlyIdempotent
Return a Wikipedia reference identifying the retrieved revision and its source/copyright context.
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | markdown | |
| title | Yes | ||
| language | No | en |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds genuine context beyond them by noting the output pins a specific revision and carries copyright/source attribution, which matters for citation integrity. It still says nothing about network dependence, language fallbacks, or what happens with a nonexistent title.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
It is a single sentence with no filler, which is good, but that brevity comes at the cost of under-specification rather than efficiency. Everything about selection and parameters is missing, so the terseness is not earning its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
No output schema exists, so the description should explain the returned reference format across the four style options; it only describes the abstract shape. For a read-only citation helper with an enum parameter and several overlapping siblings, this leaves too much to inference.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0% for three parameters, so the description carries the burden and largely fails: 'title' and 'language' are never mentioned, and the four-way 'style' enum (url/markdown/html/attribution) is only obliquely gestured at by 'source/copyright context'. An agent must open the schema to learn that it can request attribution-only output.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The sentence names a resource ('Wikipedia reference') and a verb ('Return'), but 'reference' is ambiguous between a citation template and the article itself. It does not distinguish this from siblings like wikipedia_get_article or wikimedia_reference_file, so an agent cannot tell which to pick from the description alone.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no when-to-use guidance at all: no statement of when to prefer this over wikipedia_get_article (same underlying resource) or wikimedia_reference_file (near-identical naming). The only implicit cue is 'retrieved revision', which hints at post-retrieval citation but is not framed as a selection rule.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
wikipedia_searchARead-onlyIdempotent
Search Wikipedia article titles/content. language is a Wikipedia code; limit 1–50. Returns plain snippets, URLs, total hits and continuation.sroffset.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| offset | No | ||
| language | No | en |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The annotations already declare this read-only, idempotent and open-world, so the lower bar is met. The description adds real value by naming the return payload (plain snippets, URLs, total hits, continuation.sroffset), which is essential for an agent that wants to page through results.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two short sentences with no filler, and the core purpose is front-loaded. The telegraphic fragments ('limit 1–50') are compact but slightly at the expense of readability.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a four-parameter search tool with no output schema, the description covers purpose, key constraints and the shape of the response, which is what an agent needs to call it. The main omission is guidance on pagination usage and what a language code should look like beyond 'a Wikipedia code'.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must carry the load. It clarifies that 'language' is a Wikipedia language code and reiterates the 1–50 limit, but leaves 'query' semantics and the 'offset' parameter unexplained, with 'continuation.sroffset' only hinting at pagination.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb and resource ('Search Wikipedia article titles/content'), which clearly sets it apart from fetch-style siblings such as wikipedia_get_article. It stops short of explicitly naming those siblings, but the search-versus-fetch distinction is still legible.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It tells the agent what it searches over (titles/content) and gives the language and limit constraints, which implies a use for discovery. However, it never says when to prefer this over wikipedia_get_article or wikimedia_search_media, and there are no exclusion cases.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
9 tool updates
v0.1.0- First observed
wikimedia_download_file - First observed
wikimedia_get_file - First observed
wikimedia_list_category - First observed
wikimedia_reference_file - First observed
wikimedia_search_media - First observed
wikipedia_get_article - First observed
wikipedia_list_images - First observed
wikipedia_reference_article - First observed
wikipedia_search
TDQS
Scored across 9 tools
Most tools are clearly separated by resource (Commons files vs Wikipedia articles) and action (search, get, download, list, reference). Two mild overlaps exist: wikimedia_get_file vs wikimedia_reference_file, and wikipedia_get_article vs wikipedia_reference_article, since both pairs resolve the same object and one adds citation output. The descriptions do distinguish metadata retrieval from reference generation, so misselection risk is low but not zero.
The set follows a consistent verb_noun pattern (list_category, search_media, get_file, download_file, get_article, list_images, reference_article) with a predictable wikimedia_/wikipedia_ domain prefix. The only deviation is wikipedia_search, which omits the noun while its Commons counterpart is wikimedia_search_media, a small inconsistency in an otherwise regular scheme.
Nine tools is well within the ideal 3-15 range and each tool maps to a distinct operation in the media/article workflow. There is no obvious filler or redundant tool for the stated scope.
The surface covers the core lifecycle: search, resolve metadata, download with provenance, and generate citations for Commons files, plus search, fetch, list images, and cite for Wikipedia articles. Minor gaps remain, such as category discovery/traversal beyond listing direct members, and no batch or license-filtered retrieval, but agents can work around these.
Maintenance
Related MCP Connectors
Wikimedia Commons MCP — Action API for files.
MCP server for StyleKit styles, tokens, recipes, lint and repair over stdio or HTTP.
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceMCP server providing web search, news search, and X/Twitter search capabilities via HTTP or stdio.-
- AlicenseNot gradedqualityBmaintenanceSearch and read locally-recorded meeting transcripts over stdio. Read-only, no network. Exposes list_sessions, get_session, and search_transcripts to any MCP client.82 PyPI7MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server that exposes a single tool to retrieve Wikipedia articles from local multistream dump files, offering fast offline access with redirect following and fuzzy matching.-

openrhyme-mcpofficial
AlicenseAqualityBmaintenanceEnables any MCP-compatible agent to query a local OpenRhyme activity timeline, search history, and issue control commands over stdio while keeping all data on-machine.51MIT