wikicitation-mcp
v0.5.2MCP server providing Wikipedia citation-science tools for Claude -- pure Python, no R required
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_article_history Get Article History
Retrieve the full revision history of a Wikipedia article. Returns one row per revision: art, revid, parentid, user, userid, timestamp, size, comment, tags -- sorted oldest first. Wikitext is not included; use get_article_recent for that.
| Parameter | Type | Description |
|---|---|---|
article_name * | string | Article title (e.g. "Zeitgeber"). |
date_limit | Upper date bound, ISO 8601 (default: now). | |
lang | string | Wikipedia language code (default "en"). |
get_article_recent Get Article Recent
Retrieve the latest revision of an article (at or before date_limit), including its full wikitext. Returns {"metadata": {...}, "wikitext": "..."}.
| Parameter | Type | Description |
|---|---|---|
article_name * | string | Article title. |
date_limit | Upper date bound, ISO 8601 (default: now). | |
lang | string | Wikipedia language code (default "en"). |
get_article_initial Get Article Initial
Retrieve the first (creation) revision of an article with its wikitext. Returns {"metadata": {...}, "wikitext": "..."}.
| Parameter | Type | Description |
|---|---|---|
article_name * | string | Article title. |
lang | string | Wikipedia language code (default "en"). |
get_article_info Get Article Info
Current page metadata: pageid, title, length, last revision id, touched timestamp. A non-existent page is reported with "missing": true.
| Parameter | Type | Description |
|---|---|---|
article_name * | string | Article title. |
lang | string | Wikipedia language code (default "en"). |
get_tables_all Get Tables All
Info + initial revision + latest revision + full history in one call. Returns {"info", "initial", "recent", "history"}.
| Parameter | Type | Description |
|---|---|---|
article_name * | string | Article title. |
date_limit | Upper date bound, ISO 8601 (default: now). | |
lang | string | Wikipedia language code (default "en"). |
get_category_pages Get Category Pages
Article titles (namespace 0) directly in a category.
| Parameter | Type | Description |
|---|---|---|
category * | string | Category name, with or without the "Category:" prefix. |
lang | string | Wikipedia language code (default "en"). |
get_pages_in_cat_table Get Pages In Cat Table
Pages directly in a category as a table (pageid, ns, title, type).
| Parameter | Type | Description |
|---|---|---|
category * | string | Category name. |
lang | string | Wikipedia language code (default "en"). |
get_subcat_table Get Subcat Table
Direct subcategories of a category.
| Parameter | Type | Description |
|---|---|---|
catname * | string | Category name. |
lang | string | Wikipedia language code (default "en"). |
replacement | string | Character substituted for spaces in titles (default "_"). |
get_subcat_multiple Get Subcat Multiple
Direct subcategories for several categories (rows carry source_category).
| Parameter | Type | Description |
|---|---|---|
catname_list * | array | Category names (max 20). |
lang | string | Wikipedia language code (default "en"). |
get_subcat_with_depth Get Subcat With Depth
Recursively collect subcategories down to `depth` levels (1-5).
| Parameter | Type | Description |
|---|---|---|
catname * | string | Root category name. |
depth | integer | Levels to descend (default 1, max 5). |
lang | string | Wikipedia language code (default "en"). |
replacement | string | Character substituted for spaces in titles (default "_"). |
get_page_in_cat_multiple Get Page In Cat Multiple
Pages in several categories (rows carry source_category).
| Parameter | Type | Description |
|---|---|---|
catname_list * | array | Category names (max 20). |
lang | string | Wikipedia language code (default "en"). |
get_category_history Get Category History
Full revision history for a list of articles, concatenated.
| Parameter | Type | Description |
|---|---|---|
article_list * | array | Article titles (max 100). |
lang | string | Wikipedia language code (default "en"). |
get_category_recent Get Category Recent
Latest revision metadata and wikitext for a list of articles. Returns {"metadata": [...], "wikitext": [...]} in input order.
| Parameter | Type | Description |
|---|---|---|
article_list * | array | Article titles (max 100). |
date_limit | Upper date bound, ISO 8601 (default: now). | |
lang | string | Wikipedia language code (default "en"). |
get_category_creation Get Category Creation
Creation (first revision) metadata for a list of articles.
| Parameter | Type | Description |
|---|---|---|
article_list * | array | Article titles (max 100). |
lang | string | Wikipedia language code (default "en"). |
get_doi_count Get Doi Count
Count DOIs in a wikitext string. Returns {"count": n}.
| Parameter | Type | Description |
|---|---|---|
text * | string |
get_ref_count Get Ref Count
Count <ref> tags in a wikitext string. Returns {"count": n}.
| Parameter | Type | Description |
|---|---|---|
text * | string |
get_url_count Get Url Count
Count http(s) URLs in a wikitext string. Returns {"count": n}.
| Parameter | Type | Description |
|---|---|---|
text * | string |
get_isbn_count Get Isbn Count
Count ISBNs in a wikitext string. Returns {"count": n}.
| Parameter | Type | Description |
|---|---|---|
text * | string |
get_hyperlink_count Get Hyperlink Count
Count [[wikilinks]] in a wikitext string. Returns {"count": n}.
| Parameter | Type | Description |
|---|---|---|
text * | string |
get_any_count Get Any Count
Count matches of a regular expression in a text. Returns {"count": n}.
| Parameter | Type | Description |
|---|---|---|
regexp * | string | Python regular expression (max 500 chars). |
text * | string | Text to search. |
extract_citations Extract Citations
Return every {{cite ...}} template found in a wikitext string.
| Parameter | Type | Description |
|---|---|---|
text * | string |
extract_wikihypelinks Extract Wikihypelinks
Return every [[wikilink]] found in a wikitext string.
| Parameter | Type | Description |
|---|---|---|
text * | string |
replace_wikihypelinks Replace Wikihypelinks
Replace [[Target|Label]] with Label and [[Target]] with Target. Returns {"cleaned_text": "..."}.
| Parameter | Type | Description |
|---|---|---|
text * | string |
parse_cite_type Parse Cite Type
Parse one {{cite ...}} template string. Returns {"cite_type": "journal", "fields": {...}}, or {} if none is found.
| Parameter | Type | Description |
|---|---|---|
text * | string |
extract_with_regex Extract With Regex
Apply a regular expression to an article's latest wikitext.
| Parameter | Type | Description |
|---|---|---|
article_name * | string | Article title. |
regexp * | string | Python regular expression (max 500 chars). |
date_limit | Upper date bound, ISO 8601 (default: now). | |
lang | string | Wikipedia language code (default "en"). |
extract_all_regex Extract All Regex
Apply all built-in patterns (doi, url, ref, isbn, wikilink, pmid, cite_all) to an article's latest wikitext.
| Parameter | Type | Description |
|---|---|---|
article_name * | string | Article title. |
date_limit | Upper date bound, ISO 8601 (default: now). | |
lang | string | Wikipedia language code (default "en"). |
parse_citations Parse Citations
Structured citation table, one row per citation template (doi, isbn, pmid, url, title, author, year, journal, publisher, accessdate). Understands the native templates of en/fr/de/es/it/pt Wikipedias.
| Parameter | Type | Description |
|---|---|---|
article_name * | string | Article title. |
date_limit | Upper date bound, ISO 8601 (default: now). | |
lang | string | Wikipedia language code (default "en"). |
parse_all_citations Parse All Citations
Long-form citation table, one row per template field (variable, value, canonical_field).
| Parameter | Type | Description |
|---|---|---|
article_name * | string | Article title. |
date_limit | Upper date bound, ISO 8601 (default: now). | |
lang | string | Wikipedia language code (default "en"). |
get_citation_types Get Citation Types
Count citation templates by canonical type (journal, book, web, news, ...) for an article.
| Parameter | Type | Description |
|---|---|---|
article_name * | string | Article title. |
date_limit | Upper date bound, ISO 8601 (default: now). | |
lang | string | Wikipedia language code (default "en"). |
get_source_type_counts Get Source Type Counts
Count citation templates by canonical type in a raw wikitext string.
| Parameter | Type | Description |
|---|---|---|
text * | string | Wikitext. |
lang | string | Wikipedia language code whose templates to recognise (default "en"). |
get_sci_score Get Sci Score
SciScore: the fraction of an article's citation templates that cite journals (0-1). Returns {"sci_score", "article", "lang", "revid"}.
| Parameter | Type | Description |
|---|---|---|
article_name * | string | Article title. |
date_limit | Upper date bound, ISO 8601 (default: now). | |
lang | string | Wikipedia language code (default "en"). |
get_top_cited_papers Get Top Cited Papers
The (up to) 40 most-cited DOIs in an article, annotated through EuropePMC and ranked by how many times the article cites them (wiki_count).
| Parameter | Type | Description |
|---|---|---|
article_name * | string | Article title. |
date_limit | Upper date bound, ISO 8601 (default: now). | |
lang | string | Wikipedia language code (default "en"). |
get_revert_counts Get Revert Counts
Revert-tagged edits (mw-reverted, mw-undo, mw-rollback) per article in a date window, most reverted first. Wikipedia only keeps recent changes for about 30 days, so older windows return partial or empty results. The scan can take a minute or more.
| Parameter | Type | Description |
|---|---|---|
end | Last day, YYYY-MM-DD (default: today, UTC). | |
lang | string | Wikipedia language code (default "en"). |
start | First day, YYYY-MM-DD (default: 7 days before `end`). |
annotate_dois_europmc Annotate Dois Europmc
Annotate DOIs through EuropePMC: PMID/PMCID, title, authors, journal, year, citation_count, is_open_access. One row per input DOI.
| Parameter | Type | Description |
|---|---|---|
doi_list * | array | DOIs such as "10.1038/nature02260" (max 200). |
annotate_dois_crossref Annotate Dois Crossref
Annotate DOIs through CrossRef: title, authors, journal, year, publisher, type, is_referenced_by_count, url.
| Parameter | Type | Description |
|---|---|---|
doi_list * | array | DOIs (max 200). |
annotate_dois_bibtex Annotate Dois Bibtex
BibTeX entries for DOIs (CrossRef content negotiation). Returns {"bibtex_entries": [...]}.
| Parameter | Type | Description |
|---|---|---|
doi_list * | array | DOIs (max 200). |
annotate_isbn_google Annotate Isbn Google
Book metadata from Google Books for one ISBN. The keyless quota is small; set GOOGLE_BOOKS_API_KEY in the server's environment to avoid HTTP 429, or use annotate_isbn_openlib instead.
| Parameter | Type | Description |
|---|---|---|
isbn * | string | ISBN-10 or ISBN-13, hyphens allowed. |
annotate_isbn_openlib Annotate Isbn Openlib
Book metadata from Open Library for one ISBN.
| Parameter | Type | Description |
|---|---|---|
isbn * | string | ISBN-10 or ISBN-13, hyphens allowed. |