MediaWiki MCP Server
आपका AI एजेंट किसी भी MediaWiki wiki, Wikipedia सहित, पर पेज पढ़, खोज और संपादित कर सकता है।
147 GitHub स्टारद्वारा Professional Wikiलाइसेंस MITअपडेट 18 दिन पहले
कैसे इंस्टॉल करें
यह MCP लोकल है: आपके कंप्यूटर पर चलता है।
यह PC पर लगे ऐप्स में काम करता है (Claude Desktop, Claude Code, Cursor, VS Code…)। अपना ऐप चुनें:
टर्मिनल में पेस्ट करें:
claude mcp add mediawiki -- npx -y @professional-wiki/mediawiki-mcp-server
क्या भरना है
| नाम | यह क्या है | ज़रूरी |
|---|---|---|
CONFIG | Path to your configuration file | नहीं |
MCP_ALLOW_STATIC_FALLBACK | 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 | 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 was left out. | नहीं |
MCP_FILE_DATA_MAX_BYTES | 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 | Minimum severity for logger output (stderr telemetry and sendLoggingMessage broadcast). Invalid values fail loudly on first log call. | नहीं |
MCP_MAX_REQUEST_BODY | Maximum HTTP request body size on the StreamableHTTP transport. Accepts size strings like 1mb or 512kb. | नहीं |
MCP_METRICS | 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 | 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 first-party clients (ChatGPT, Cursor, VS Code) are always allowed; unset means no additional clients. | नहीं |
MCP_OAUTH_CIMD_ALLOWED_HOSTS | 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 | 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 | 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 | 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 | 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 | Maximum milliseconds to wait for in-flight /mcp calls to drain on SIGTERM/SIGINT before exiting. Capped at 600000. | नहीं |
MCP_TRANSPORT | Type of MCP server transport | नहीं |
MCP_UPLOAD_MAX_BYTES | 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. Guards this server's memory, not the wiki's $wgMaxUploadSize. | नहीं |
MCP_USER_AGENT | Replaces 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)'. | नहीं |
PORT | Port used for StreamableHTTP transport | नहीं |
तैयार! अब टेस्ट करें
ऐप दोबारा खोलें और इनमें से कोई एक अनुरोध चैट में पेस्ट करें:
Wiki में release process के बारे में पेज खोजो।
Installation पेज के आखिरी 10 संपादन दिखाओ।
यह क्या है
यह server आपके AI एजेंट को किसी भी ऐसे wiki से जोड़ता है जो MediaWiki पर चलता है। एजेंट पेज खोज और पढ़ सकता है, संशोधनों की तुलना कर सकता है, categories और files ब्राउज़ कर सकता है, और जब आप साइन इन करें, तब पेज बना, संपादित, स्थानांतरित और अपलोड कर सकता है। यह कई wikis के साथ काम कर सकता है, और NeoWiki, Semantic MediaWiki, Cargo, Bucket और Wikibase के लिए अतिरिक्त टूल हैं।
यह क्या कर सकता है
search-page: wiki में पूरे टेक्स्ट की खोजget-page: पेज लाएँget-page-history: हाल के संशोधन सूचीबद्ध करेंcompare-pages: दो संस्करणों का अंतरget-category-members: किसी category के पेज सूचीबद्ध करेंcreate-page: पेज बनाएँ (साइन इन चाहिए)update-page: पेज संपादित करें (साइन इन चाहिए)upload-file: फ़ाइल अपलोड करें (साइन इन चाहिए)
कब इस्तेमाल करें
- ›जब आप चाहें कि आपका एजेंट wiki में कुछ खोजे
- ›जब आप wiki बनाए रखते हैं और पेज संपादित या स्थानांतरित करने में मदद चाहते हैं
- ›जब आप किसी पेज के दो संस्करणों की तुलना करना चाहें
आपको क्या चाहिए
साथ में जमने वाली skills
MCP या skill?
MCP एजेंट को हाथ देता है। Skill सिखाती है कि उन्हें सही तरह कैसे इस्तेमाल करें। साथ में नतीजा बेहतर आता है और टोकन कम लगते हैं।
siyuanआपके एजेंट को आपके स्व-होस्ट किए SiYuan ज्ञान आधार में नोट्स खोजने, पढ़ने, बनाने, बदलने और हटाने देती है, उसके API से।mini-context-graphयह knowledge graph और AI-generated wiki pages को मिलाकर एक स्थायी knowledge base बनाता है। समय के साथ जानकारी जमा होती है और आपस में जुड़ती जाती है।llm-wikiआपके एजेंट को Obsidian में निजी या टीम की knowledge base बनाने में मदद करती है, जिसमें स्रोत जुड़ें और links, index व notes अद्यतन रहें।अक्सर पूछे जाने वाले सवाल
क्या यह मुफ़्त है?
हाँ। पैकेज npm पर है और README में खुले लाइसेंस का badge है।
क्या मुझे लॉग इन करना होगा?
सार्वजनिक wikis पढ़ने के लिए नहीं। ताला लगे चिह्न वाले टूल को authentication चाहिए।
क्या यह एक से ज़्यादा wiki के साथ काम कर सकता है?
हाँ। हर टूल में वैकल्पिक wiki argument होता है, और config फ़ाइल में wikis सूचीबद्ध होते हैं।
क्या मैं इसे बदलाव करने से रोक सकता हूँ?
हाँ। जिस wiki में readOnly को true सेट है, वहाँ लिखने वाले टूल मना होते हैं।
कौन-से extensions सपोर्ट होते हैं?
NeoWiki, Semantic MediaWiki, Bucket, Cargo और Wikibase के टूल केवल उन wikis पर दर्ज होते हैं जहाँ वह extension इंस्टॉल है।
क्या इसे MediaWiki ने बनाया है?
नहीं। इसे Professional Wiki ने बनाया है।
अगर काम न करे
- ›निजी wiki के लिए config.json बनाएँ, और अगर वह कहीं और हो तो CONFIG को उसके path पर सेट करें।
- ›बिना browser वाले server पर OAuth के लिए MCP_OAUTH_NO_BROWSER=1 सेट करें और लॉग हुआ URL खोलें।
- ›जवाब कट रहे हों तो MCP_CONTENT_MAX_BYTES बढ़ाएँ।
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।