Skip to main content

Secure MCP server for MediaWiki wikis — search, pages, categories, and more

Project description

mcp-mediawiki-crunchtools

Secure MCP server for MediaWiki wikis. Search, read, create, edit, and manage wiki pages, categories, files, and more. Works with any MediaWiki instance — public or private.

Installation

uvx (recommended)

uvx mcp-mediawiki-crunchtools

pip

pip install mcp-mediawiki-crunchtools
mcp-mediawiki-crunchtools

Container

podman run -e MEDIAWIKI_URL=https://en.wikipedia.org/w/ \
  quay.io/crunchtools/mcp-mediawiki

Usage with Claude Code

Read-only (public wiki, no auth needed)

claude mcp add mcp-mediawiki-crunchtools \
  --env MEDIAWIKI_URL=https://en.wikipedia.org/w/ \
  -- uvx mcp-mediawiki-crunchtools

With authentication (for write operations)

claude mcp add mcp-mediawiki-crunchtools \
  --env MEDIAWIKI_URL=https://your-wiki.com/w/ \
  --env MEDIAWIKI_USERNAME=BotUser \
  --env MEDIAWIKI_PASSWORD=BotPassword \
  -- uvx mcp-mediawiki-crunchtools

HTTP transport (systemd / container)

podman run -d --name mcp-mediawiki \
  -p 127.0.0.1:8016:8016 \
  -e MEDIAWIKI_URL=https://your-wiki.com/w/ \
  quay.io/crunchtools/mcp-mediawiki \
  --transport streamable-http --host 0.0.0.0

Claude Code config:

{"type": "http", "url": "http://127.0.0.1:8016/mcp"}

Environment Variables

Variable Required Description
MEDIAWIKI_URL Yes Wiki base URL (e.g., https://en.wikipedia.org/w/)
MEDIAWIKI_USERNAME No Bot/user account for write operations
MEDIAWIKI_PASSWORD No Bot/user password
MEDIAWIKI_HTTP_USER No HTTP Basic Auth username (.htaccess)
MEDIAWIKI_HTTP_PASS No HTTP Basic Auth password

Tools (19)

Category Tool Description
Pages search Full-text search across wiki
Pages get_page Get page wikitext content
Pages get_page_html Parse page to HTML
Pages list_pages List pages with prefix filter
Pages create_page Create a new page
Pages edit_page Edit an existing page
Pages delete_page Delete a page
Pages move_page Move/rename a page
Categories list_categories List all categories
Categories get_category_members Get pages in a category
Categories get_page_categories Get categories for a page
Recent Changes list_recent_changes List recent edits
Parsing parse_wikitext Parse raw wikitext to HTML
Site Info get_site_info Get wiki config and version
Site Info list_namespaces List wiki namespaces
Users get_user_info Get user details
Users list_user_contributions List user edits
Files get_file_info Get file/image metadata
Files list_files List files on the wiki

Development

# Install dev dependencies
uv sync --all-extras

# Quality gates
uv run ruff check src tests
uv run mypy src
uv run pytest -v
gourmand --full .
podman build -f Containerfile .

License

AGPL-3.0-or-later

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_mediawiki_crunchtools-0.1.2.tar.gz (41.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_mediawiki_crunchtools-0.1.2-py3-none-any.whl (32.4 kB view details)

Uploaded Python 3

File details

Details for the file mcp_mediawiki_crunchtools-0.1.2.tar.gz.

File metadata

File hashes

Hashes for mcp_mediawiki_crunchtools-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c3c75cd9a82000871982d31b0ead6cb89c416945fde4cc5ba7264050294819d0
MD5 70cdcd0ea87977ea41cda1ba08107b9e
BLAKE2b-256 12df6dcda9b13f93c63799fdaa3b102dc5c94b961ffce57c38e1365a9340ccf3

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_mediawiki_crunchtools-0.1.2.tar.gz:

Publisher: publish.yml on crunchtools/mcp-mediawiki

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_mediawiki_crunchtools-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_mediawiki_crunchtools-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e8d62b09001ca745f7ed2197cd64c8c4359fa1710ee1586e446bd24562480ac6
MD5 f34584172f1585b6bfcb6b0d310142b2
BLAKE2b-256 670d90c454ce6b8e60f3f30d2de7b034c80beeef0d3035c98966a2c482120085

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_mediawiki_crunchtools-0.1.2-py3-none-any.whl:

Publisher: publish.yml on crunchtools/mcp-mediawiki

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page