Langsung ke konten
Skillpedia
● Gratis dan open sourceπŸ’» LokalπŸ”“ Tanpa kunci APIKerja dan produktivitas

MediaWiki MCP Server

Memungkinkan agen AI Anda membaca, mencari, dan mengedit halaman di wiki MediaWiki mana pun, termasuk Wikipedia.

147 bintang di GitHuboleh Professional WikiLisensi MITDiperbarui 18 hari yang lalu

Cara memasang

MCP ini lokal: berjalan di komputermu.

Bekerja di aplikasi yang terpasang di PC (Claude Desktop, Claude Code, Cursor, VS Code…). Pilih aplikasimu:

Tempel di terminal:

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

Yang perlu diisi

NamaFungsinyaWajib
CONFIGPath to your configuration fileTidak
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.Tidak
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.Tidak
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.Tidak
MCP_LOG_LEVELMinimum severity for logger output (stderr telemetry and sendLoggingMessage broadcast). Invalid values fail loudly on first log call.Tidak
MCP_MAX_REQUEST_BODYMaximum HTTP request body size on the StreamableHTTP transport. Accepts size strings like 1mb or 512kb.Tidak
MCP_METRICSSet to 'true' to expose Prometheus metrics at GET /metrics on the HTTP transport. Has no effect on the stdio transport.Tidak
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.Tidak
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.Tidak
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.Tidak
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.Tidak
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.Tidak
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.Tidak
MCP_SHUTDOWN_GRACE_MSMaximum milliseconds to wait for in-flight /mcp calls to drain on SIGTERM/SIGINT before exiting. Capped at 600000.Tidak
MCP_TRANSPORTType of MCP server transportTidak
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.Tidak
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)'.Tidak
PORTPort used for StreamableHTTP transportTidak

Siap! Sekarang coba

Mulai ulang aplikasi dan tempel salah satu permintaan ini di chat:

Cari di wiki halaman tentang proses rilis kami.
Tampilkan 10 suntingan terakhir pada halaman Installation.

Apa ini

Server ini menghubungkan agen AI Anda ke wiki apa pun yang menjalankan MediaWiki. Agen dapat mencari dan membaca halaman, membandingkan revisi, menelusuri kategori dan file, serta, saat Anda masuk, membuat, mengedit, memindahkan, dan mengunggah. Ia dapat bekerja dengan beberapa wiki dan memiliki alat tambahan untuk NeoWiki, Semantic MediaWiki, Cargo, Bucket, dan Wikibase.

Yang bisa dilakukannya

  • search-page: pencarian teks penuh wiki
  • get-page: ambil sebuah halaman
  • get-page-history: daftar revisi terbaru
  • compare-pages: diff dua versi
  • get-category-members: daftar halaman dalam kategori
  • create-page: buat halaman (memerlukan masuk)
  • update-page: edit halaman (memerlukan masuk)
  • upload-file: unggah file (memerlukan masuk)

Kapan dipakai

  • β€ΊSaat Anda ingin agen mencari sesuatu di wiki.
  • β€ΊSaat Anda mengelola wiki dan menginginkan bantuan mengedit atau memindahkan halaman.
  • β€ΊSaat Anda ingin membandingkan dua versi sebuah halaman.

Yang kamu butuhkan

Node.js. File config.json hanya diperlukan untuk wiki privat atau alat yang memerlukan masuk. Penulisan memakai OAuth, yang Anda setujui di browser.

Skill yang cocok

⭐ MCP Skillpedia Β· gratisAgenmu menemukan skill yang tepat sendiriPasang MCP kami dan agenmu mencari di antara 15.000+ skill saat dibutuhkan.Pasang gratis β†’

Pertanyaan umum

Apakah gratis?

Ya. Paketnya ada di npm dan readme menampilkan lencana lisensi open source.

Apakah saya perlu masuk?

Tidak untuk membaca wiki publik. Alat yang bertanda gembok memerlukan autentikasi.

Bisakah ia bekerja dengan lebih dari satu wiki?

Bisa. Setiap alat menerima argumen wiki opsional, dan Anda mencantumkan wiki di file konfigurasi.

Bisakah saya menghentikannya membuat perubahan?

Bisa. Alat tulis ditolak pada wiki yang readOnly-nya diatur ke true.

Ekstensi apa saja yang didukung?

Alat NeoWiki, Semantic MediaWiki, Bucket, Cargo, dan Wikibase hanya terdaftar pada wiki yang memasang ekstensi tersebut.

Apakah ini dibuat oleh MediaWiki?

Tidak. Ini dibuat oleh Professional Wiki.

Kalau tidak berfungsi

  • β€ΊBuat config.json saat memakai wiki privat, dan atur CONFIG ke path-nya jika berada di tempat lain.
  • β€ΊUntuk OAuth di server tanpa browser, atur MCP_OAUTH_NO_BROWSER=1 dan buka URL yang dicatat.
  • β€ΊJika respons terpotong, naikkan MCP_CONTENT_MAX_BYTES.

5 skill baru setiap minggu. 1 menit baca.