mwclient

Interact with the MediaWiki API using Python Site, Page, and Image abstractions.

Updated Jan 24, 2026
One-click install
npx skills add https://github.com/MrIbrahem/publish_py --skill mwclient
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mwclient
Source: https://github.com/MrIbrahem/publish_py/tree/main/.claude/skills/mwclient
Command: npx skills add https://github.com/MrIbrahem/publish_py --skill mwclient

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

mwclient enables Python code to interact with the MediaWiki API by exposing Site, Page, and Image abstractions.

Core Features & Use Cases

  • Connect to wikis via Site, manage Page and Image objects
  • Read, edit pages, upload files, query listings
  • Authenticate via OAuth or login for bot accounts

Quick Start

Install mwclient with pip and connect to a wiki using Site('example.org').

Frequently Asked Questions about mwclient

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate MediaWiki API interactions in Python?

You can automate MediaWiki API interactions in Python using mwclient, which exposes Site, Page, and Image abstractions to connect to wikis, read and edit pages, upload files, and query listings.

How do I authenticate a Python bot account on a MediaWiki wiki?

You can authenticate a Python bot account on a MediaWiki wiki via mwclient by using its built-in support for standard login or OAuth authentication methods.

Can I upload files and images to a wiki using the MediaWiki API?

Yes, you can upload files and images to a wiki using the MediaWiki API through mwclient by utilizing its Image object abstraction to handle file uploads.

How does Python handle MediaWiki API errors during page edits?

Python handles MediaWiki API errors during page edits through mwclient's structured exception hierarchy, which catches and organizes API errors systematically.

What do I need to install to start querying MediaWiki listings in Python?

To start querying MediaWiki listings in Python, you need to install mwclient via pip, which provides the necessary Site object to connect and retrieve data.