360 Secure SkillHub
360 安全技能中心

wikipedia

核心功能含搜索维基百科文章、获取带图摘要、随机知识、恐龙科普、每日精选文章,支持10种语言。无需API密钥,通过mcporter调用工具传参使用,输出含源文章链接,适用于研究、内容创作、日常知识查询等场景

evanfoglia
evanfoglia
热度 17.31
最近更新 2026-08-14 09:32:07
分类:搜索依赖:MCP 服务 / 第三方 API应用场景:研究 / 摘要总结

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add wikipedia-mcp
Metadata
name
wikipedia
version
1.1.2
description
Access Wikipedia via MCP — search articles, get summaries, random facts, dinosaur facts, and today's featured article. Multi-language support (10 wikis). Great for research, content hooks, and general knowledge lookups.

Wikipedia MCP

Access Wikipedia via Model Context Protocol (MCP). No API key required.

Tools

Tool Description
search Search Wikipedia for articles
summary Get article summary + image by title
random Random Wikipedia article
did_you_know Random "Did You Know" fact
dino_fact Dinosaur/prehistory fact (specific species or random)
featured_article Today's Wikipedia Featured Article

All tools accept an optional lang parameter (default en; supported: en, de, es, fr, ja, zh, pt, it, ru, nl).

Installation

1. Install dependencies

pip install -r requirements.txt

(Requires Python 3.10+ and requests>=2.28.0)

2. Find your install path

The MCP server lives at <install-dir>/src/server.py.

ls ~/.openclaw/workspace/skills/wikipedia/src/server.py

3. Add to mcporter

Add to ~/.openclaw/workspace/config/mcporter.json:

{
  "mcpServers": {
    "wikipedia": {
      "command": "python3",
      "args": ["<path-to>/src/server.py"]
    }
  }
}

Replace <path-to> with the actual install location from step 2.

4. Test

mcporter call wikipedia search --args '{"query": "velociraptor", "limit": 5}'

Usage Examples

mcporter call wikipedia search --args '{"query": "velociraptor", "limit": 5}'
mcporter call wikipedia summary --args '{"title": "Tyrannosaurus"}'
mcporter call wikipedia dino_fact --args '{"species": "Spinosaurus"}'
mcporter call wikipedia dino_fact
mcporter call wikipedia did_you_know
mcporter call wikipedia featured_article
mcporter call wikipedia summary --args '{"title": "Berlin", "lang": "de"}'

Data Source

Uses Wikipedia's free public REST API — no API key required.

  • Search: MediaWiki Action API
  • Summary / Random / Featured: REST API v1 (/api/rest_v1/...)

Notes

  • User-Agent is wikipedia-mcp/1.1.0 per Wikipedia API etiquette
  • All responses include links back to the source article
  • dino_fact falls back to a random species if the requested one isn't found (instead of erroring)
  • featured_article returns today's curated Featured Article — great for daily content hooks
  • Multi-language: pass lang to any tool to query de/es/fr/ja/zh/pt/it/ru/nl Wikipedia