Wikipedia MCP Server
概览
作者提供的说明(英文原文)
Search and read Wikipedia articles and sections, list cited references, nearby pages, and languages.
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i3 项中通过 3 项依据公开信息检查;尚未扫描代码
- 使用情况i起步阶段↓ 598/周 · ★ –
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 电脑或云端
- 传输方式: stdio, Streamable HTTP
- 分类: 搜索与 AI 记忆
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:3 项中通过 3 项
- 在作者的服务器上运行:你向它提出的内容会经过他们的服务器。
- 可以做 7 件事(工具) wikipedia_search_articles, wikipedia_get_summary, wikipedia_get_article, wikipedia_get_sections …
- 需要你自己填写:
MCP_LOG_LEVEL
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
适用于网页版、桌面版和手机版 Claude:
- 打开 Settings → Connectors
- 点击 Add custom connector
- 粘贴下面的地址,然后点击 Add
- 如果要求登录,请登录作者的服务
https://wikipedia.caseyjhand.com/mcp或者在你的电脑上运行
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"wikipedia": {
"command": "npx",
"args": [
"-y",
"@cyanheads/wikipedia-mcp-server"
],
"env": {
"MCP_LOG_LEVEL": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add --transport http wikipedia https://wikipedia.caseyjhand.com/mcp或者在你的电脑上运行
claude mcp add wikipedia --env MCP_LOG_LEVEL=your-value -- npx -y @cyanheads/wikipedia-mcp-server运行前请先填写空着的值。
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"wikipedia": {
"url": "https://wikipedia.caseyjhand.com/mcp"
}
}
}或者在你的电脑上运行
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"wikipedia": {
"command": "npx",
"args": [
"-y",
"@cyanheads/wikipedia-mcp-server"
],
"env": {
"MCP_LOG_LEVEL": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"wikipedia": {
"type": "http",
"url": "https://wikipedia.caseyjhand.com/mcp"
}
}
}或者在你的电脑上运行
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"wikipedia": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@cyanheads/wikipedia-mcp-server"
],
"env": {
"MCP_LOG_LEVEL": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
ChatGPT 只能连接互联网上的服务器:
- 打开网页版 ChatGPT → Settings → Connectors (Apps)
- 点击 Create 或 Add(部分套餐需要先在 Advanced 中开启 Developer mode)
- 粘贴下面的地址,起个名字,然后保存
- 如果要求登录,请登录作者的服务
https://wikipedia.caseyjhand.com/mcp菜单名称可能因套餐和版本不同而略有差异。
你的选择通过 Cookie 保存在这台设备上,无需账户。
需要你填写的值
MCP_LOG_LEVELenvSets the minimum log level for output (e.g., 'debug', 'info', 'warn').
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它能做什么
工具名称和描述与服务器在 2026年11月7日 报告的完全一致。这些内容由作者撰写,不是我们写的;我们以纯文本形式显示。
wikipedia_search_articlesSearch Wikipedia articles by full-text query. Returns ranked results with plain-text titles, short descriptions, Wikidata QIDs, snippets (HTML stripped), page IDs, and word counts — the description is usually enough to tell same-named articles apart without a summary call per res
wikipedia_get_summaryFetch the short article summary that answers "what is X?". The extract is a truncated fragment from the start of the lead section — usually a sentence or two, and as little as a tenth of the lead — alongside the Wikidata QID (wikibase_item) for cross-referencing with wikidata-mcp
wikipedia_get_articleFetch article content as clean plain text. Without section_index: returns the full article with == Section == markers preserved for structure — or, when the article exceeds the size budget, a compact section outline (truncated: true) that points to wikipedia_get_sections plus a s
wikipedia_get_sectionsFetch the table of contents for a Wikipedia article. Returns section titles, heading levels, section numbering (e.g. "2.1"), and section_index values. The first entry is the lead section, index 0, titled Introduction — the text above the first heading, which Wikipedia's own table
wikipedia_search_nearbyFind Wikipedia articles about places near a geographic coordinate. Returns articles sorted by distance from the query point, with titles, short descriptions, Wikidata QIDs, page IDs, coordinates, and distance in meters. Useful for "what is notable near X?" research workflows. Onl
wikipedia_get_languagesList the language editions available for a Wikipedia article. Returns language codes, article titles in each language, and full URLs. Useful for cross-language research and for discovering the correct article title in a target language before fetching it. A popular article exists
wikipedia_get_referencesList the footnotes an article cites — its reference lists, in document order — with each footnote's text, external links (archive copies included), and DOIs. wikipedia_get_article drops footnote markers and reference lists, so use this for the sources behind a claim. label is the
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月9日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 cyanheads 验证,该账户拥有此仓库
- … 尚未检查
仍在维护
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- ✓ 通过
端点有响应
在 246 毫秒内响应(HTTP 200)
- – 不适用
使用 OAuth 登录
无需登录
- ✓ 通过
工具描述中没有隐藏指令
已读取 7 个工具描述,未发现针对 AI 的隐藏指令
与“搜索与 AI 记忆”中的其他服务器比较i
- 星标数多于此分类中其他 5761 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 5761 个服务器的 78% 更新
- 基础检查结果等于或优于此分类中其他 5761 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Wikipedia MCP Server 安全吗?
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
两种方式都可以:安装在你的电脑上,或者连接云端版本。
它还在维护吗?
GitHub 仓库最后更新于–,最新版本(0.3.0)于11天前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。
有什么可以替代它?
同一分类中有:Context7, Codebase Memory, Exa
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Codebase Memory
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Exa
Connect AI agents to Exa for web search, content fetching, and multi-step research.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
@cyanheads/wikipedia-mcp-server Search Wikipedia articles, read summaries and full text, target sections, list an article's cited references, find nearby pages, and list language editions via MCP. STDIO or Streamable HTTP. 7 Tools
Public Hosted Server: https://wikipedia.caseyjhand.com/mcp
Overview
Wikipedia in any language edition. Search articles, read summaries or just the sections you need, list the footnotes an article cites, find geotagged pages near a coordinate, and list an article's language editions. Ships the wikipedia-guide agent skill (skill://wikipedia-guide/SKILL.md), which MCP clients read for the gates that span tools: switching editions, disambiguation pages, section numbers versus section_index, and what to check before reporting something absent.
Tools
| Tool | Description |
|---|---|
wikipedia_search_articles | Full-text search across Wikipedia, returning ranked results with short descriptions, Wikidata QIDs, plain-text snippets, and page IDs, plus Wikipedia's spelling suggestion. |
wikipedia_get_summary | Short summary for any article — plain text, Wikidata QID, description, thumbnail URL, page type, canonical URL, revision, and coordinates. |
wikipedia_get_article | Full article or a targeted section as clean plain text, with section markers preserved, the canonical URL, and the revision it was read from. |
wikipedia_get_sections | Table of contents with section_index values for targeted section reads. |
wikipedia_search_nearby | Geotagged Wikipedia articles within a radius of a WGS 84 coordinate, sorted by distance, with short descriptions and Wikidata QIDs. |
wikipedia_get_languages | All language editions available for an article, with titles and URLs, or just the editions you ask for. |
wikipedia_get_references | The footnotes an article cites, in document order, with each footnote's text, external links (archive copies included), and DOIs, plus the full citations that short citations point to. |
Capability reference
wikipedia_search_articles tool
- Free-text
query(an empty one fails withempty_query), positive integerlimit(default 10, clamped to 50), andoffsetpaging, passing back enrichmentnextOffset. Only a clamped call carriesrequestedLimit,appliedLimit, and a clamp notice. Wikipedia serves no result past the 10,000th: anoffsetat or beyond it fails withoffset_too_large, and a page ending on that window carries enrichmenttruncated - CirrusSearch operators include
incategory:"1648 treaties",morelike:Peace of Westphalia,intitle:Python,hastemplate:Infobox, andinsource:Python(support depends on the installation).sortdefaults torelevance; alternatives arelast_edit_desc,create_timestamp_desc,incoming_links_desc, andtitle_natural_asc. Enrichment echoessort; keep it andqueryunchanged when paging - Each result carries a plain-text snippet, page ID, word count, and — when the article has them — its short
descriptionand Wikidata QID (wikibase_item); enrichmentsuggestioncarries Wikipedia's spelling correction (einstien→einstein) - Invalid or over-complex
insource:/…/andintitle:/…/regexes fail once withinvalid_query, theupstreamCode, and guidance to correct or simplify the regex or remove the operator. A busy regex search remains retryable
wikipedia_get_summary tool
- Takes a
title; returns the REST summary extract — a fragment from the start of the lead (wikipedia_get_articlewithsection_index: 0reads the whole lead) — plus the short description, thumbnail URL, Wikidata QID (wikibase_item), and, for a geotagged article,latitude/longitudeto pass straight towikipedia_search_nearby page_typediscriminatesstandard/disambiguation/no-extract(ondisambiguation, re-query withwikipedia_search_articles);url,revision_id, andlast_modifiedname the revision read, and?oldid=is a permanent link to it- An existing page without a summary extract succeeds with metadata, an empty
extract, and guidance to open the canonical URL or trysection_index: 0. Namespace pages may contain documentation rather than article prose. An empty description is absent; a missing title still fails withnot_found
wikipedia_get_article tool
- Without
section_index: the full article with== Section ==markers, or a section outline (truncated: true) when it exceedsWIKIPEDIA_ARTICLE_OVERFLOW_BYTES(default 80,000 bytes). With asection_indexfromwikipedia_get_sections(0is the lead): that section plus its nested subsections - Outline entries include verified
section_indexvalues where available, including 0 for the lead. Ambiguous or unindexed headings retain the section-list fallback. TOC verification gets one short attempt; unavailable verification is disclosed - Redirects expose
redirected_fromand, for a section target,redirect_section. A full read remains full and includes targeted-read guidance; an explicitsection_index, including 0, takes precedence - Every read returns
urlandrevision_id(?oldid=is a permanent link to the text read); a full read, outline included, also returnslast_modified. WithWIKIPEDIA_BASE_URLset, a section read omitsurl - Section reads render phylogenetic clade trees as fenced, indented branches, pairing each row’s label with its leaf and preserving unnamed forks. An unparseable tree leaves
[table omitted: unparseable clade]; trees have notable_index - Section reads also carry data tables as pipe-delimited rows and infoboxes as
label: valuelines, which the full-article extract strips; a table over 40,000 rendered bytes leaves a[table omitted: N rows (table T)]marker. Passtable_index: Twith the section to read that table in complete row pages, then follownext_cursorascursorwith the same inputs. Continuations read the first page’s revision; caption and header appear once. Each page's table text fits 40,000 UTF-8 bytes on both surfaces, except an indivisible oversized row or first-page caption/header returned alone withoversized_row: true
wikipedia_get_sections tool
- Takes a
title; returns section titles, heading levels, hierarchical numbering (e.g."2.1"), and thesection_indexto pass towikipedia_get_article— the first entry is the lead (index: 0, titledIntroduction) - Heading titles use the article renderer’s script, formula, whitespace and single-pass entity normalization, so
CO₂stays identical across the section list, article reads and verified outline entries - Fails with
no_sectionson a stub or very short article — read it withwikipedia_get_articleinstead - Redirect aliases expose
redirected_fromand optionalredirect_section;redirect_section_indexappears only when a unique anchor matches a real numeric TOC index
wikipedia_search_nearby tool
latitude−90…90 /longitude−180…180 (WGS 84),radius_meters10–10,000 (default 1000), and positive integerlimit(default 10, clamped to 500), with no pagination pastlimit; enrichmenttruncatedflags more matches thanlimitallowed — at 500, Wikipedia's ceiling, sweep narrower radii instead. Only a clamped call carriesrequestedLimit,appliedLimit, and a clamp notice- Returns articles sorted by
distance_meters, with coordinates, shortdescription, and Wikidata QID (wikibase_item). Each is placed by the article's own GeoData coordinate tag, not its Wikidata item's coordinate, so a mistagged article appears where the tag puts it
wikipedia_get_languages tool
- Takes a
title; returns each edition'slanguage_code,edition_code, article title, and URL, plussource_title, the resolved title. Passedition_code— notlanguage_code— aslanguageon other tools; the two can differ (gswvsals) editionsnarrows the list to the codes asked for: codes with no article come back undermissing, andtotal_languagesstays the unfiltered count. Fails withno_other_languageswhen the article has no translations; a filter matching nothing is an empty list, not a failure
wikipedia_get_references tool
- Takes a
title; returnsreferences[]in document order across every reference list, each withid,label(the in-text marker),group(a notes list such aslower-alpha, absent for the main list),text,urls(archive copies included), anddois(fromdoi.orglinks, percent-decoded).total_referencescounts the footnotes on all pages.wikipedia_get_articledrops footnote markers and reference lists - A short citation such as "Galinsky 2012, pp. 75–76" carries
work_ids, andworkson the same page holds the full citations they name, each once. Bibliography and further-reading entries no footnote points to are not listed — read those sections withwikipedia_get_article - Each page holds whole footnotes within 40,000 UTF-8 bytes on both surfaces; follow
next_cursorascursorwith the sametitleandlanguage. Continuations read the first page'srevision_id, and a cursor past the last footnote failsinvalid_cursor. An unreadable pinned revision failsrevision_unavailable. An article with no footnotes returns an empty list with anotice, not an error
Features
Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.
Wikipedia-specific:
- Dual API integration — MediaWiki REST API (
/api/rest_v1/) for summaries, Action API (/w/api.php) for searc
只显示了开头部分;其余内容请在仓库中阅读