ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

MediaWiki MCP Server

โดย ProfessionalWikiรุ่น 0.21.0i★ –iรันบนเครื่อง
ชื่อใน registryio.github.ProfessionalWiki/mediawiki-mcp-server

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

MCP server enabling AI clients to interact with any MediaWiki wiki through standard tools

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: อื่น ๆ

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

  • ผลตรวจเบื้องต้น: ผ่าน 1 จาก 1 ข้อ
  • รันในเครื่องคุณด้วยสิทธิ์ของผู้ใช้คุณ (ไฟล์ อินเทอร์เน็ต แอปต่าง ๆ)
  • ค่าที่คุณต้องใส่เอง: CONFIG, MCP_ALLOW_STATIC_FALLBACK, MCP_CONTENT_MAX_BYTES, MCP_FILE_DATA_MAX_BYTES, MCP_LOG_LEVEL, MCP_MAX_REQUEST_BODY, MCP_METRICS, MCP_OAUTH_ALLOWED_REDIRECTS, MCP_OAUTH_CIMD_ALLOWED_HOSTS, MCP_OAUTH_CREDENTIALS_FILE, MCP_OAUTH_NO_BROWSER, MCP_OAUTH_PROXY_STORE_FILE, MCP_PUBLIC_URL, MCP_SHUTDOWN_GRACE_MS, MCP_TRANSPORT, MCP_UPLOAD_MAX_BYTES, MCP_USER_AGENT, PORT

ต้องเตรียมก่อน

  • npmติดตั้ง Node.js (มีคำสั่ง npx) ในเครื่อง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

ดาวน์โหลดไฟล์ .mcpb ของผู้ทำ

ลิงก์ไปที่ไฟล์ของผู้ทำเอง เราไม่ได้เก็บหรือแพ็กใหม่ เปิดไฟล์แล้ว Claude Desktop จะติดตั้งให้

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add mediawiki --env CONFIG='ใส่ค่าของคุณ' --env MCP_ALLOW_STATIC_FALLBACK='ใส่ค่าของคุณ' --env MCP_CONTENT_MAX_BYTES='ใส่ค่าของคุณ' --env MCP_FILE_DATA_MAX_BYTES='ใส่ค่าของคุณ' --env MCP_LOG_LEVEL='ใส่ค่าของคุณ' --env MCP_MAX_REQUEST_BODY='ใส่ค่าของคุณ' --env MCP_METRICS='ใส่ค่าของคุณ' --env MCP_OAUTH_ALLOWED_REDIRECTS='ใส่ค่าของคุณ' --env MCP_OAUTH_CIMD_ALLOWED_HOSTS='ใส่ค่าของคุณ' --env MCP_OAUTH_CREDENTIALS_FILE='ใส่ค่าของคุณ' --env MCP_OAUTH_NO_BROWSER='ใส่ค่าของคุณ' --env MCP_OAUTH_PROXY_STORE_FILE='ใส่ค่าของคุณ' --env MCP_PUBLIC_URL='ใส่ค่าของคุณ' --env MCP_SHUTDOWN_GRACE_MS='ใส่ค่าของคุณ' --env MCP_TRANSPORT='ใส่ค่าของคุณ' --env MCP_UPLOAD_MAX_BYTES='ใส่ค่าของคุณ' --env MCP_USER_AGENT='ใส่ค่าของคุณ' --env PORT='ใส่ค่าของคุณ' -- npx -y @professional-wiki/mediawiki-mcp-server

เติมค่าที่เว้นว่างไว้ก่อนรัน

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "mediawiki": {
      "command": "npx",
      "args": [
        "-y",
        "@professional-wiki/mediawiki-mcp-server"
      ],
      "env": {
        "CONFIG": "ใส่ค่าของคุณ",
        "MCP_ALLOW_STATIC_FALLBACK": "ใส่ค่าของคุณ",
        "MCP_CONTENT_MAX_BYTES": "ใส่ค่าของคุณ",
        "MCP_FILE_DATA_MAX_BYTES": "ใส่ค่าของคุณ",
        "MCP_LOG_LEVEL": "ใส่ค่าของคุณ",
        "MCP_MAX_REQUEST_BODY": "ใส่ค่าของคุณ",
        "MCP_METRICS": "ใส่ค่าของคุณ",
        "MCP_OAUTH_ALLOWED_REDIRECTS": "ใส่ค่าของคุณ",
        "MCP_OAUTH_CIMD_ALLOWED_HOSTS": "ใส่ค่าของคุณ",
        "MCP_OAUTH_CREDENTIALS_FILE": "ใส่ค่าของคุณ",
        "MCP_OAUTH_NO_BROWSER": "ใส่ค่าของคุณ",
        "MCP_OAUTH_PROXY_STORE_FILE": "ใส่ค่าของคุณ",
        "MCP_PUBLIC_URL": "ใส่ค่าของคุณ",
        "MCP_SHUTDOWN_GRACE_MS": "ใส่ค่าของคุณ",
        "MCP_TRANSPORT": "ใส่ค่าของคุณ",
        "MCP_UPLOAD_MAX_BYTES": "ใส่ค่าของคุณ",
        "MCP_USER_AGENT": "ใส่ค่าของคุณ",
        "PORT": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "mediawiki": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@professional-wiki/mediawiki-mcp-server"
      ],
      "env": {
        "CONFIG": "ใส่ค่าของคุณ",
        "MCP_ALLOW_STATIC_FALLBACK": "ใส่ค่าของคุณ",
        "MCP_CONTENT_MAX_BYTES": "ใส่ค่าของคุณ",
        "MCP_FILE_DATA_MAX_BYTES": "ใส่ค่าของคุณ",
        "MCP_LOG_LEVEL": "ใส่ค่าของคุณ",
        "MCP_MAX_REQUEST_BODY": "ใส่ค่าของคุณ",
        "MCP_METRICS": "ใส่ค่าของคุณ",
        "MCP_OAUTH_ALLOWED_REDIRECTS": "ใส่ค่าของคุณ",
        "MCP_OAUTH_CIMD_ALLOWED_HOSTS": "ใส่ค่าของคุณ",
        "MCP_OAUTH_CREDENTIALS_FILE": "ใส่ค่าของคุณ",
        "MCP_OAUTH_NO_BROWSER": "ใส่ค่าของคุณ",
        "MCP_OAUTH_PROXY_STORE_FILE": "ใส่ค่าของคุณ",
        "MCP_PUBLIC_URL": "ใส่ค่าของคุณ",
        "MCP_SHUTDOWN_GRACE_MS": "ใส่ค่าของคุณ",
        "MCP_TRANSPORT": "ใส่ค่าของคุณ",
        "MCP_UPLOAD_MAX_BYTES": "ใส่ค่าของคุณ",
        "MCP_USER_AGENT": "ใส่ค่าของคุณ",
        "PORT": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าที่ต้องใส่เอง

  • CONFIG env
    Path to your configuration file
  • MCP_ALLOW_STATIC_FALLBACK env
    Set 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.
  • MCP_CONTENT_MAX_BYTES env
    Byte 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…
  • MCP_FILE_DATA_MAX_BYTES env
    Hard 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.
  • MCP_LOG_LEVEL env
    Minimum severity for logger output (stderr telemetry and sendLoggingMessage broadcast). Invalid values fail loudly on first log call.
  • MCP_MAX_REQUEST_BODY env
    Maximum HTTP request body size on the StreamableHTTP transport. Accepts size strings like 1mb or 512kb.
  • MCP_METRICS env
    Set to 'true' to expose Prometheus metrics at GET /metrics on the HTTP transport. Has no effect on the stdio transport.
  • MCP_OAUTH_ALLOWED_REDIRECTS env
    Additional 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…
  • MCP_OAUTH_CIMD_ALLOWED_HOSTS env
    Comma-separated additional client_id document hosts trusted for CIMD (bare host or host:port). Verified first-party hosts are always trusted.
  • MCP_OAUTH_CREDENTIALS_FILE env
    Override the default OAuth credentials store path. Default: ~/.config/mediawiki-mcp/credentials.json on Linux/macOS, %APPDATA%\mediawiki-mcp\credentials.json on Windows.
  • MCP_OAUTH_NO_BROWSER env
    Set 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.
  • MCP_OAUTH_PROXY_STORE_FILE env
    Path 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.
  • MCP_PUBLIC_URL env
    Override 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.
  • MCP_SHUTDOWN_GRACE_MS env
    Maximum milliseconds to wait for in-flight /mcp calls to drain on SIGTERM/SIGINT before exiting. Capped at 600000.
  • MCP_TRANSPORT env
    Type of MCP server transport
  • MCP_UPLOAD_MAX_BYTES env
    Memory 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. Gua…
  • MCP_USER_AGENT env
    Replaces the User-Agent header of every outbound request, which defaults to mediawiki-mcp-server/ (https://github.com/ProfessionalWiki/MediaWiki-MCP-Server). If you set it, give a name and an email o…
  • PORT env
    Port used for StreamableHTTP transport

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub ProfessionalWiki ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด อื่น ๆi

  • ดาวมากกว่า 0% ของอีก 32744 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 94% ของอีก 32744 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 32744 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

MediaWiki MCP Server ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.21.0) เข้า registry เมื่อวานซืน

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี MCPB, Node.js ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, Date Math

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Spec Driven Development

โดย formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

รันบนเครื่อง★ 440MITอัปเดต 14 เดือนที่ผ่านมา
ติดตั้ง

Remote Desktop Commander

โดย desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

รันบนคลาวด์★ 211อัปเดต เมื่อวานซืน
ติดตั้ง

Date Math

โดย JowenDelaPena

Exact date/time math for agents: business days, holidays, time zones, cron, RRULE, SLA. x402 paid.

รันบนคลาวด์อัปเดต วันนี้
ติดตั้ง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

MediaWiki MCP Server

An MCP (Model Context Protocol) server that enables Large Language Model (LLM) clients to interact with any MediaWiki wiki.

Features

Tools

Every tool that operates on a wiki accepts an optional wiki argument naming the wiki to act on (the wiki-management and OAuth tools do not) — pass a wiki key (e.g. en.wikipedia.org) or the full mcp://wikis/{wikiKey} URI. Omit it to use the configured default wiki (see Configuration). Each tool response reports the wiki the call ran against. Each successful response carries its payload as prose in content and as JSON in structuredContent; see response channels.

Page reads
NameDescription
compare-pagesDiff two versions of a wiki page by revision, title, or supplied wikitext.
get-category-membersList members of a category (up to 500 per call, paginated via continueFrom).
get-fileFetch a file page.
get-file-dataFetch a file's image bytes inline (base64) for visual analysis — for clients that can't reach the wiki host. Returns a scaled rendition (set width); non-renderable types (audio, video, binaries) error. For metadata or a download URL, use get-file.
get-links-hereList pages that reference a wiki page — pages that link to it, embed it as a template, or display it as a file (select via type), including pages that reach it through a redirect. Up to 500 per call, paginated via continueFrom.
get-pageFetch a wiki page.
get-page-historyList recent revisions of a wiki page.
get-pagesFetch multiple wiki pages in one call (up to 50).
get-random-pagesList a random sample of wiki pages from one namespace (main by default, redirects excluded by default, up to 500 per call).
get-recent-changesList recent change events across the wiki, filterable by timestamp, namespace, user, tag, type, and hide flags (up to 50 per call, paginated via continue).
get-revisionFetch a specific revision of a page.
get-site-infoGet a wiki's key settings: MediaWiki version, content language, title-case rules, namespaces, installed extensions, license, and (optionally) statistics.
list-wikisList every configured wiki — its key, sitename, server, whether it is read-only or the default, whether it is reachable, which extension-gated tools work on it, and, for an OAuth-configured wiki, its authorization server. Disabled when fewer than two wikis are configured.
parse-wikitextRender wikitext to HTML without saving. Returns parse warnings, wikilinks, templates, and external URLs.
search-pageSearch wiki page titles and contents (full-text). Searches the wiki's content namespaces unless given other namespace IDs.
search-page-by-prefixSearch page titles by prefix.
whoamiReport the identity the current session is authenticated as on the targeted wiki — username, whether it is anonymous, and group memberships (optionally user rights).
Page writes
NameDescriptionPermissions
create-page 🔐Create a new wiki page.Create, edit, and move pages
delete-page 🔐Delete a wiki page.Delete pages, revisions, and log entries
move-page 🔐Move (rename) a wiki page.Create, edit, and move pages
protect-page 🔐Protect or unprotect a wiki page.Protect and unprotect pages
undelete-page 🔐Undelete a wiki page.Delete pages, revisions, and log entries
update-file 🔐Upload a new revision of an existing file from local disk.Upload, replace, and move files
update-file-from-url 🔐Upload a new revision of an existing file from a URL.Upload, replace, and move files
update-page 🔐Update an existing wiki page: overwrite it, add to it, or rewrite one passage of it.Edit existing pages
upload-file 🔐Upload a file to the wiki from local disk.Upload new files
upload-file-from-url 🔐Upload a file to the wiki from a URL.Upload, replace, and move files
Wiki management
NameDescription
add-wikiAdd a wiki as an MCP resource from its URL. Disabled when allowWikiManagement is false.
remove-wikiRemove a wiki resource. Disabled when allowWikiManagement is false or fewer than two wikis are configured.
OAuth
NameDescription
oauth-logoutRemove stored OAuth tokens. Stdio only.
oauth-statusList stored OAuth tokens with scopes and expiry (no token values). Stdio only.
Extension packs

Each pack's tools register only on wikis where its extension is installed.

[NeoWiki](https://neowiki.ai/)

NameDescription
neowiki-list-schemasList schemas (entity types) and their property counts.
neowiki-get-schemaGet one schema's property definitions, relations, and select options.
neowiki-cypher-queryRun a read-only Cypher query against the knowledge graph.
neowiki-search-subjectsFind subject IDs by name, in one schema or all.
neowiki-get-subjectFetch one subject's structured data by ID.
neowiki-get-page-subjectsList the subjects attached to a wiki page.
neowiki-create-subjectCreate a subject (main or other) on a page. Requires the edit right.
neowiki-update-subjectReplace a subject's label and statements. Requires the edit right.
neowiki-delete-subjectDelete a subject by ID. Requires the edit right.
neowiki-set-main-subjectSet or clear a page's main subject. Requires the edit right.
neowiki-validate-subjectDry-run validate a proposed subject and return violations.
neowiki-mint-subject-idsMint unused subject IDs for dependent subjects written with their host.

[Semantic MediaWiki](https://www.mediawiki.org/wiki/Extension:Semantic_MediaWiki)

NameDescription
smw-list-propertiesList Semantic MediaWiki properties with copy-paste templates for smw-query.
smw-queryRun a Semantic MediaWiki #ask query.

[Bucket](https://github.com/weirdgloop/mediawiki-extensions-Bucket)

NameDescription
bucket-queryRun a Bucket Lua query.

[Cargo](https://www.mediawiki.org/wiki/Extension:Cargo)

NameDescription
cargo-list-tablesList Cargo tables defined on the wiki.
cargo-describe-tableList a Cargo table's fields with their types and list-flags.
cargo-queryRun a Cargo SQL-style query.

[Wikibase](https://www.mediawiki.org/wiki/Extension:Wikibase_Repository)

NameDescription
wikibase-search-entitiesFind items and properties by label or alias.
wikibase-get-entityRead one entity's terms and statements, with referenced IDs resolved to labels.
wikibase-queryRun a SPARQL query against the wiki's query service. Offered only for a repository whose siteinfo publishes one.
wikibase-edit-entityCreate or change an entity from Wikibase entity JSON. Requires the edit right.
wikibase-add-statementAdd one statement with an item, string, external-id or url value. Requires the edit right.
Resources

`mcp://wikis/{wikiKey}` — per-wiki resource exposing sitename, server (the wiki's public address), articlepath, scriptpath, and the private and readOnly flags.

  • Those fields are the whole of it: the resource publishes a fixed list, so credentials and server-side settings in your configuration file are never exposed in resource content.
  • After add-wiki or remove-wiki, the server sends notifications/resources/list_changed so clients refresh.

Example read result

{

"contents": [ { "uri": "mcp://wikis/en.wikipedia.org", "mimeType": "application/json", "text": "{ \"sitename\":\"Wikipedia\",\"server\":\"https://en.wikipedia.org\",\"articlepath\":\"/wiki\",\"scriptpath\":\"/w\",\"private\":false }" } ] }

</details>
Environment variables

The variables below are relevant to any setup. Variables that only apply when self-hosting the HTTP transport (ports, timeouts, Host/Origin and SSRF guards) or running the hosted OAuth proxy are in docs/deployment.md — environment variables. Config-file substitution and upload-directory variables are in docs/configuration.md.

NameDescriptionDefault
CONFIGPath to your configuration fileconfig.json
MCP_TRANSPORTType of MCP server transport (stdio or http)stdio
MCP_LOG_LEVELMinimum severity for logger output. One of debug, info, notice, warning, error, critical, alert, emergency, or silent.debug
MCP_CONTENT_MAX_BYTESByte cap for the content bodies and result blocks tools return (wikitext, rendered HTML, diffs, statement and row listings), applied once per response. Tune to the target LLM client's tool-response budget.75000
MCP_FILE_DATA_MAX_BYTESHard cap on the base64-encoded size of a get-file-data response. A transport/safety backstop; tune the actual size per call with the tool's width. Over-cap calls error rather than truncate.1000000
MCP_UPLOAD_MAX_BYTESMemory cap on the server-side fetch used by upload-file-from-url / update-file-from-url. Files larger than this are handed to the wiki's own copy-upload instead of being buffered by the server. Guards this server's memory, not the wiki's $wgMaxUploadSize.104857600
MCP_USER_AGENTReplaces the User-Agent header of every outbound request, so wiki operators can reach you. Give a name and an email or URL, e.g. ExampleBot/1.0 (bot@example.org).mediawiki-mcp-server/ (https://github.com/ProfessionalWiki/MediaWiki-MCP-Server)
MCP_OAUTH_CREDENTIALS_FILEOverride the default credentials store path. Default: ~/.config/mediawiki-mcp/credentials.json (Linux/macOS) or %APPDATA%\mediawiki-mcp\credentials.json (Windows).unset
MCP_OAUTH_NO_BROWSERSet to 1 to skip launching a browser during the OAuth flow; the auth URL is logged to stderr instead. Useful in headless environments.unset

Configuration

[!NOTE]

Config is only required when interacting with a private wiki or using authenticated tools.

Create a config.json file to configure wiki connections. Use the config.example.json as a starting point.

{

"defaultWiki": "en.wikipedia.org", "wikis": { "en.wikipedia.org": { "sitename": "Wikipedia", "server": "https://en.wikipedia.org", "articlepath": "/wiki", "scriptpath": "/w" } } }

Internal vs public address. The server you configure may be an internal hostname (e.g. http://mediawiki in Docker); URLs handed back to the caller are built from the wiki's public address, so internal hostnames don't leak into links, once the internal host is listed in MCP_TRUSTED_HOSTS. See docs/configuration.md — per-wiki fields.

For the full field reference, env-var substitution, secret sources, change tags, bot edits, upload directories, and authentication options, see docs/configuration.md.

Authentication

Tools marked 🔐 require authentication. Write tools (including extension-pack writes) are refused on a wiki that has readOnly: true, and hidden from tools/list when every configured wiki has it — see Deployment.

  • Browser-based OAuth (recommended). Sign in through a browse

ตัดมาแค่ช่วงต้น อ่านต่อใน repo

ถาม PopNx