360 Secure SkillHub
360 安全技能中心

wikipedia

封装 Wikipedia 公共接口的 MCP 服务,提供 search、summary、random、did_you_know、dino_fact、featured_article 六个工具,均可用 lang 参数在 10 种语言维基间切换;无需 API key,结果附带来源链接,dino_fact 在指定物种未命中时回退为随机物种。

evanfoglia
evanfoglia
热度 17.35
最近更新 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