维基百科搜索与内容获取工具

mcp-wikipedia 是一款维基百科 MCP 服务,提供文章搜索、摘要获取、全文阅读、链接提取、今日历史事件查询和随机文章功能,适合在 AI 助手、聊天机器人及知识类应用中快速接入维基百科内容。

  • by PetrefiedThunder
  • TypeScript
  • 本地部署
  • 更新于
在 GitHub 查看 PetrefiedThunder/mcp-wikipedia

使用说明

mcp-wikipedia

Search Wikipedia articles, get summaries, full content, and 'On This Day' events.

Free API — No API key required.

Tools

Tool Description
search Search Wikipedia articles.
get_summary Get article summary/intro.
get_article Get full article content as plain text.
get_links Get links from an article.
get_on_this_day Get notable events that happened on this day.
random Get a random Wikipedia article.

Installation

git clone https://github.com/PetrefiedThunder/mcp-wikipedia.git
cd mcp-wikipedia
npm install
npm run build

Usage with Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "wikipedia": {
      "command": "node",
      "args": ["/path/to/mcp-wikipedia/dist/index.js"]
    }
  }
}

Usage with npx

npx mcp-wikipedia

License

Apache-2.0