Wizzypedia MCP Server

Integrations

  • Provides tools for interacting with Wizzypedia (a MediaWiki instance) through its API, allowing users to search for wiki pages, read page content, view page history, list page categories, create new pages, and update existing pages.

Wizzypedia MCP 服务器

这是一个用于与 Wizzpedia API 交互的模型上下文协议 (MCP)服务器,旨在与支持 MCP 的编辑器(如 Cursor 或 Claude Desktop)配合使用。

这意味着您可以从任何支持 MCP 的工具查询(或写入) Wizzypedia

特征

  • 搜索 wiki 页面(只读)
  • 读取页面内容(只读)
  • 查看页面历史记录(只读)
  • 列出页面类别(只读)
  • 创建新页面(需要身份验证)
  • 更新现有页面(需要身份验证)

例子

用户:将“Dotta”页面的 wikitext 下载到此 repo 中的 Dotta.wiki 文件中

AI:我会帮你下载“Dotta”页面的wikitext内容并将其保存到文件中。我来把步骤分解一下:首先,我会获取“Dotta”页面的wikitext内容:...

// Dotta.wiki 页面已创建

// 现在您可以在本地编辑 Dotta.wiki

用户:现在用此文件的内容更新 Dotta 页面

AI:我已成功使用本地文件的内容更新了 wiki 上的 Dotta 页面。更新成功并创建了一个新的修订版本 (ID: 42157)。内容包含本地文件中的所有章节,包括简介、“Dotta 大焚烧”部分以及图片库。

安装

验证

服务器可以以两种模式运行:

  • 匿名模式(默认) :仅可进行读取操作
  • 认证模式:可进行读、写操作

仅当您需要执行写入操作(创建/更新页面)时才需要身份验证凭据。

MCP 配置

您可以将 MCP 服务器配置为只读模式或身份验证模式。请选择符合您需求的配置:

选项 1:只读模式(默认)

此配置仅允许读取操作(搜索、查看页面等)。

对于光标~/.cursor/mcp.json ):

{ "mcpServers": { "wizzypedia": { "command": "npx", "args": ["-y", "wizzypedia-mcp-server"] } } }

对于 Claude Desktop (在 macOS 上为~/Library/Application Support/Claude/claude_desktop_config.json ,在 Windows 上为%APPDATA%\Claude\claude_desktop_config.json ):

{ "mcpServers": { "wizzypedia": { "command": "npx", "args": ["-y", "wizzypedia-mcp-server"] } } }

选项 2:身份验证模式

此配置支持读取和写入操作(创建/更新页面)。

对于光标~/.cursor/mcp.json ):

{ "mcpServers": { "wizzypedia": { "command": "npx", "args": [ "-y", "wizzypedia-mcp-server", "--login", "your-username", "--password", "your-password" ] } } }

对于 Claude Desktop (在 macOS 上为~/Library/Application Support/Claude/claude_desktop_config.json ,在 Windows 上为%APPDATA%\Claude\claude_desktop_config.json ):

{ "mcpServers": { "wizzypedia": { "command": "npx", "args": [ "-y", "wizzypedia-mcp-server", "--login", "your-username", "--password", "your-password" ] } } }

可用工具

该服务器提供以下 MCP 工具:

只读工具(无需身份验证):

  1. search_pages - 在 wiki 中搜索页面
  2. read_page - 获取页面的原始 wikitext 内容
  3. get_page_history - 获取页面的修订历史记录
  4. get_categories - 获取页面所属的类别

写入工具(需要身份验证):

  1. **create_page——**创建一个新的 wiki 页面
  2. update_page - 更新现有的 wiki 页面

与游标一起使用

服务器运行后,您可以通过 Cursor 或其他兼容 MCP 的客户端进行连接。这样您可以:

  1. 搜索 wiki 内容
  2. 将 wiki 内容加载到编辑器中
  3. 本地编辑内容
  4. 将更改保存回 wiki(需要身份验证)

对于开发人员

npm install npm run build

用法

以只读模式运行服务器:

# Basic read-only mode node dist/index.js # With custom API URL node dist/index.js --api-url="https://en.wikipedia.org/w/api.php" # Using npx npx wizzypedia-mcp-server

使用身份验证运行以进行写访问:

# With environment variables export MEDIAWIKI_API_URL="https://en.wikipedia.org/w/api.php" export MEDIAWIKI_USERNAME="YourUsername" export MEDIAWIKI_PASSWORD="YourPassword" node dist/index.js # Or with command line arguments node dist/index.js --api-url="https://en.wikipedia.org/w/api.php" --login="YourUsername" --password="YourPassword" # Or using npx npx wizzypedia-mcp-server --login YourUsername --password YourPassword

执照

麻省理工学院

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

模型上下文协议服务器,支持使用支持 MCP 的工具(如 Cursor 或 Claude Desktop)在 Wizzypedia 上搜索、阅读和编辑 wiki 页面。

  1. Features
    1. Example
      1. Installation
        1. Authentication
        2. MCP Configuration
      2. Available Tools
        1. Using with Cursor
      3. For Developers
        1. Usage
        2. License
      ID: 7c95htip2c