Chuyển đến nội dung
Skillpedia
● Miễn phí và mã nguồn mở💻 Cục bộ🔓 Không cần khóa APICông việc và năng suất

MediaWiki MCP Server

Cho phép agent AI của bạn đọc, tìm kiếm và sửa các trang trên bất kỳ wiki MediaWiki nào, kể cả Wikipedia.

147 sao trên GitHubbởi Professional WikiGiấy phép MITCập nhật 18 ngày trước

Cách cài đặt

MCP này chạy cục bộ: nó chạy trên máy tính của bạn.

Nó hoạt động trong các ứng dụng cài trên máy (Claude Desktop, Claude Code, Cursor, VS Code…). Hãy chọn ứng dụng của bạn:

Dán vào terminal:

claude mcp add mediawiki -- npx -y @professional-wiki/mediawiki-mcp-server

Những gì cần điền

TênMô tảBắt buộc
CONFIGPath to your configuration fileKhông
MCP_ALLOW_STATIC_FALLBACKSet to 'true' to allow HTTP startup when config.json has static credentials. Otherwise the server refuses to start, preventing silent shared-identity fallback for unauthenticated requests.Không
MCP_CONTENT_MAX_BYTESByte cap for the content bodies and result blocks tools return (wikitext, rendered HTML, diffs, statement and row listings). An oversized response is truncated with a trailing marker describing what was left out.Không
MCP_FILE_DATA_MAX_BYTESHard cap on the base64-encoded size of a get-file-data response. A transport/safety backstop; callers tune actual size with the tool's width parameter. Over-cap responses error rather than truncate.Không
MCP_LOG_LEVELMinimum severity for logger output (stderr telemetry and sendLoggingMessage broadcast). Invalid values fail loudly on first log call.Không
MCP_MAX_REQUEST_BODYMaximum HTTP request body size on the StreamableHTTP transport. Accepts size strings like 1mb or 512kb.Không
MCP_METRICSSet to 'true' to expose Prometheus metrics at GET /metrics on the HTTP transport. Has no effect on the stdio transport.Không
MCP_OAUTH_ALLOWED_REDIRECTSAdditional allowed redirect URIs for hosted-proxy client registration: comma-separated exact URIs (which must include a host) and https prefix patterns ending in /*. Loopback, claude.ai, and verified first-party clients (ChatGPT, Cursor, VS Code) are always allowed; unset means no additional clients.Không
MCP_OAUTH_CIMD_ALLOWED_HOSTSComma-separated additional client_id document hosts trusted for CIMD (bare host or host:port). Verified first-party hosts are always trusted.Không
MCP_OAUTH_CREDENTIALS_FILEOverride the default OAuth credentials store path. Default: ~/.config/mediawiki-mcp/credentials.json on Linux/macOS, %APPDATA%\mediawiki-mcp\credentials.json on Windows.Không
MCP_OAUTH_NO_BROWSERSet to '1' to skip launching a browser during the OAuth dance and log the auth URL to stderr instead. Useful in headless environments and CI.Không
MCP_OAUTH_PROXY_STORE_FILEPath to the hosted OAuth proxy's encrypted state file, which lets sign-ins survive restarts. Default: proxy-store.enc under the mediawiki-mcp config dir; /app/data/proxy-store.enc in the Docker image.Không
MCP_PUBLIC_URLOverride the request-derived public URL used in the protected-resource discovery doc and WWW-Authenticate header. Set this when running behind a proxy that rewrites the request Host.Không
MCP_SHUTDOWN_GRACE_MSMaximum milliseconds to wait for in-flight /mcp calls to drain on SIGTERM/SIGINT before exiting. Capped at 600000.Không
MCP_TRANSPORTType of MCP server transportKhông
MCP_UPLOAD_MAX_BYTESMemory cap on the server-side fetch used by upload-file-from-url and update-file-from-url. Files larger than this are routed to the wiki's own copy-upload instead of being buffered by the server. Guards this server's memory, not the wiki's $wgMaxUploadSize.Không
MCP_USER_AGENTReplaces the User-Agent header of every outbound request, which defaults to mediawiki-mcp-server/<version> (https://github.com/ProfessionalWiki/MediaWiki-MCP-Server). If you set it, give a name and an email or URL, e.g. 'ExampleBot/1.0 (bot@example.org)'.Không
PORTPort used for StreamableHTTP transportKhông

Xong rồi! Giờ hãy thử

Khởi động lại ứng dụng và dán một trong các yêu cầu này vào khung chat:

Tìm trên wiki các trang về quy trình phát hành của chúng tôi.
Cho tôi xem 10 lần sửa gần nhất của trang Installation.

Đây là gì

Máy chủ này kết nối agent AI với bất kỳ wiki nào chạy MediaWiki. Agent có thể tìm và đọc trang, so sánh các bản sửa đổi, duyệt danh mục và tệp, và khi bạn đăng nhập, tạo, sửa, di chuyển và tải lên. Nó làm việc được với nhiều wiki và có thêm công cụ cho NeoWiki, Semantic MediaWiki, Cargo, Bucket và Wikibase.

Nó làm được gì

  • search-page: tìm kiếm toàn văn trên một wiki
  • get-page: lấy một trang
  • get-page-history: liệt kê các bản sửa đổi gần đây
  • compare-pages: so sánh hai phiên bản
  • get-category-members: liệt kê các trang trong một danh mục
  • create-page: tạo một trang (cần đăng nhập)
  • update-page: sửa một trang (cần đăng nhập)
  • upload-file: tải lên một tệp (cần đăng nhập)

Khi nào nên dùng

  • ›Khi bạn muốn agent tra cứu điều gì đó trên một wiki.
  • ›Khi bạn duy trì một wiki và muốn trợ giúp sửa hoặc di chuyển trang.
  • ›Khi bạn muốn so sánh hai phiên bản của một trang.

Bạn cần gì

Node.js. Tệp config.json chỉ cần cho wiki riêng tư hoặc các công cụ yêu cầu đăng nhập. Các thao tác ghi dùng OAuth, bạn duyệt trên trình duyệt.

Skill đi kèm tốt

⭐ MCP Skillpedia · miễn phíAgent của bạn tự tìm đúng skillCài MCP của chúng tôi và agent của bạn sẽ tìm trong 15.000+ skill mỗi khi cần.Cài miễn phí →

Câu hỏi thường gặp

Có miễn phí không?

Có. Gói có trên npm và README có huy hiệu giấy phép mã nguồn mở.

Tôi có cần đăng nhập không?

Không cần để đọc các wiki công khai. Các công cụ có biểu tượng khóa cần xác thực.

Nó có làm việc được với nhiều wiki không?

Có. Mỗi công cụ nhận một đối số wiki tùy chọn, và bạn liệt kê các wiki trong tệp cấu hình.

Tôi có thể ngăn nó thay đổi gì không?

Có. Các công cụ ghi bị từ chối trên một wiki có readOnly đặt thành true.

Những tiện ích mở rộng nào được hỗ trợ?

Các công cụ NeoWiki, Semantic MediaWiki, Bucket, Cargo và Wikibase chỉ đăng ký trên các wiki đã cài tiện ích tương ứng.

Có phải do MediaWiki làm không?

Không. Do Professional Wiki làm.

Nếu không hoạt động

  • ›Tạo config.json khi dùng wiki riêng tư, và đặt CONFIG thành đường dẫn tới nó nếu nó nằm ở chỗ khác.
  • ›Với OAuth trên một máy chủ không có trình duyệt, đặt MCP_OAUTH_NO_BROWSER=1 và mở URL được ghi trong nhật ký.
  • ›Nếu phản hồi bị cắt, tăng MCP_CONTENT_MAX_BYTES.

5 skill mới mỗi tuần. Đọc chỉ 1 phút.