Package Information
Documentation
š n8n-nodes-mediawiki
A powerful n8n community node for seamless MediaWiki integration. Connect your n8n workflows to any MediaWiki instance (like Wikipedia) and manage collaborative knowledge with ease.
⨠Features
š§ Regular Workflow Nodes
- MediaWiki Page: Complete page operations (get, edit, delete) for any MediaWiki instance
- MediaWiki Search: Powerful search functionality for finding pages within MediaWiki
- Flexible Authentication: Support for both authenticated and anonymous operations
š¤ AI-Compatible Tools
All nodes support AI integration with the "Let AI fill this in" functionality:
- MediaWiki Page: AI-compatible tool for all page operations with intelligent parameter filling
- MediaWiki Search: AI-powered search with contextual query generation
- LangChain Integration: Seamlessly works with n8n AI agents and workflows
- Smart Parameter Detection: AI automatically determines page titles, content, and search terms
š¦ Installation
For n8n Users (GUI Installation)
To install this community node in your self-hosted n8n instance:
Open n8n Settings: Go to Settings ā Community Nodes
Start Installation: Click Install
Find Package:
- Option A: Type
n8n-nodes-mediawikidirectly in the Enter npm package name field - Option B: Click Browse to search the npm registry for community nodes, then find
n8n-nodes-mediawiki
- Option A: Type
Accept Risks: Check "I understand the risks of installing unverified code from a public source"
Install: Click Install
Ready to Use: The MediaWiki nodes will now appear in your nodes panel with a package icon
Managing the Package
- Update: When updates are available, an Update button will appear in Settings ā Community Nodes
- Uninstall: Go to Settings ā Community Nodes, click Options ā Uninstall package
Note: Community nodes can only be installed on self-hosted n8n instances by the instance owner. This feature is not available on n8n Cloud.
š Usage
š Credentials
Configure the MediaWiki API credentials with:
- Base URL: The base URL of your MediaWiki instance (e.g.,
https://en.wikipedia.org) - Username: (Optional) Username for authenticated operations
- Password: (Optional) Password for authenticated operations
šÆ Available Nodes
š MediaWiki Page
Complete page management with support for:
- Get: Retrieve the content of any page
- Edit: Create new pages or update existing pages with content (automatically detects if page exists)
- Delete: Remove pages with optional deletion reason
š MediaWiki Search
- Search: Find pages matching your search query with configurable result limits
š¤ AI Integration
Both nodes work seamlessly with n8n's AI Agent nodes:
- Add nodes to your workflow - Use MediaWiki Page and MediaWiki Search as regular nodes
- Connect to AI Agents - These nodes automatically become available as AI tools when connected to AI Agent nodes
- "Let AI fill this in" buttons - Parameters show toggle buttons allowing AI to automatically fill values based on context
- Intelligent automation - AI agents can read, edit, delete, and search MediaWiki content autonomously
Example AI Usage:
- AI Research Assistant: "Find information about quantum computing on Wikipedia and create a summary page"
- Content Management: "Update the company wiki page with the latest product information"
- Knowledge Discovery: "Search for pages related to machine learning and extract key concepts"
š” Parameter Configuration
MediaWiki Page Node
- Operation: Select get, edit, or delete
- Page Title: The title of the page to operate on (AI can fill automatically)
- Page Content: Content for edit operations (AI can generate) - creates page if it doesn't exist, updates if it does
- Delete Reason: Optional reason for deletion (AI can suggest)
MediaWiki Search Node
- Search Term: Query to find matching pages (AI can formulate)
- Limit: Maximum number of results (1-500, defaults to 10)
š ļø Development
š Setup
- Clone:
git clone https://github.com/matheusfillipe/n8n-mediawiki - Install:
npm install - Build:
npm run build - Link:
npm link(for local development)
š³ Testing with Docker
A compose.yaml file is included for easy testing:
docker compose up
This will start n8n on http://localhost:5678 with AI tool support enabled.
āļø Environment Variables
For AI tool functionality in production, ensure this environment variable is set:
N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true
This enables community nodes to be used as AI tools with the "Let AI fill this in" functionality.
š Project Structure
n8n-nodes-mediawiki/
āāā nodes/
ā āāā MediaWikiPage/ # Main page operations node
ā ā āāā MediaWikiPage.node.ts
ā ā āāā mediawiki.svg
ā āāā MediaWikiSearch/ # Search functionality node
ā āāā MediaWikiSearch.node.ts
ā āāā mediawiki.svg
āāā credentials/
ā āāā MediaWikiApi.credentials.ts
āāā src/
ā āāā MediaWikiClient.ts # Shared MediaWiki API client
āāā compose.yaml # Docker development environment
Each node functions as both a regular workflow node and an AI tool, eliminating code duplication and ensuring consistency.
š License
MIT