Skip to main content
Use the MediaWiki Connector to ingest pages from MediaWiki sites into the mAItion knowledge base.

What It Does

  • reads pages from a MediaWiki instance by namespace
  • converts content to Markdown for indexing
  • optionally filters out redirect pages
  • runs ingestion on configurable schedules

Authentication

For public wikis, no authentication is required. For private wikis, provide a username and password via environment variables — see the config example below.
It is recommended to use Bot passwords instead of your wiki account credentials. Bot passwords are scoped, revocable tokens that limit access to only the API actions the connector needs.

Environment Variables

Set these in .env.rag: Required:
  • MEDIAWIKI1_HOST: hostname of the MediaWiki instance (example: en.wikipedia.org)
Optional:
  • MEDIAWIKI1_SCHEDULES: ingestion interval in seconds (default: 3600)
  • MEDIAWIKI1_USERNAME: username for private wiki authentication
  • MEDIAWIKI1_PASSWORD: password for private wiki authentication

config.yaml Example

Configuration Reference

Multiple MediaWiki Sources

Add more sources entries (wiki2, wiki3, etc.) with separate env vars per source.