@mistereman22/osrs-wiki-mcp-server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_CONTACT | Yes | Your contact (email or name + URL), appended to the server's base User-Agent on every OSRS wiki request. Example: you@example.com. Server fails fast at startup if missing. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Tools and resources for the Old School RuneScape Wiki at https://oldschool.runescape.wiki, served by osrs-wiki-mcp-server. The wiki target is fixed by the package: no tool can add, remove, or switch wikis. Deployment is read-only and anonymous. Outbound calls use User-Agent osrs-wiki-mcp-server/1.0.0 (https://github.com/mistereman22/osrs-wiki-mcp-server) <MCP_CONTACT>. MediaWiki tools follow upstream behavior from @professional-wiki/mediawiki-mcp-server. TOOL SELECTION — DECIDE FIRST, THEN READ THE RELEVANT RESOURCE: | If the user asks for... | Use this tool | Read this resource first | |-------------------------|---------------|--------------------------| | Structured data: item stats, GE metadata, monster stats, drop rates, quest requirements, gear recommendations, varbits, shop info | bucket-query | context://bucket-catalog (find bucket + fields), then context://bucket-query-guide (usage patterns) | | Rendered values (live GE price, alch values, drop values) | parse-wikitext | context://template-reference (verified templates with inputs/returns) | | Canonical lists: all bosses, all quests, all items, all updates, all monsters in category | get-category-members | context://namespace-category-guide (category structure, namespace IDs) | | Pages in a custom namespace (e.g., Update: game updates) | get-site-info + get-category-members | context://namespace-category-guide (DPL/template discovery workflow) | | Unstructured content: lore, mechanics, walkthroughs, guides | search-page / get-page | context://search-guide (broad-first, canonical page heuristic) | | Exact page title known | get-page | context://search-guide (section discovery) | | Backlinks / transclusions / file usage | get-links-here | context://namespace-category-guide | START HERE: Read context://tool-selection first for the complete decision tree and quick patterns. MANDATORY: Read the relevant resource BEFORE using each tool: For search-page, search-page-by-prefix: 1. context://search-guide — tool selection, broad-first search, canonical page heuristic, rate limits For get-page: 1. context://search-guide — section discovery via metadata=true + section=N For get-category-members, get-site-info, get-links-here: 1. context://namespace-category-guide — category structure, namespace IDs, DPL/template discovery workflow For bucket-query: 1. context://bucket-catalog — find correct bucket name and fields (costs no API traffic) 2. context://bucket-query-guide — mandatory best practices, exact-match rules, common patterns, limitations For parse-wikitext (rendered values like live GE prices): 1. context://template-reference — verified data-retrieval templates with inputs and returns PREFER TEMPLATES OVER BARE #invoke: Call templates like {{GEPrice|}} rather than {{#invoke:Exchange|...}} — templates handle argument parsing; bare #invoke requires frame:getParent().args and is error-prone. VIEW-PAGE RULE: If get-page returns source that is mostly {{...}} transclusions (transclusion soup), do NOT parse the raw wikitext — render it with parse-wikitext instead. SIZE CHECK: Before fetching full page content, call get-page "" metadata=true. If page size >75KB, use section-based reading (section=N) instead of full fetch. DO NOT search Template: or Module: namespaces unless you are explicitly looking for template/module documentation — these contain plumbing, not data. FIELD SEMANTICS: A bucket field named "value" is the item static Value stat (from the infobox), NOT its live GE price. When a value looks wrong, render the canonical page (parse-wikitext "{{GEPrice|}}" or get-page "Exchange:") and match the number to its labeled row. Check context://bucket-catalog for field names before querying — all known buckets are listed there. Only fetch Bucket: schema if the bucket is not listed or you need type info. CRITICAL: ALWAYS use .select() and .where() in bucket-query. NEVER run unfiltered queries - they return thousands of rows, bloat context, and strain the wiki. ALWAYS use .select("field1","field2") to limit columns and .where("field","value") to filter rows. Use .limit(N) for pagination. bucket-query uses EXACT MATCH ONLY - no wildcards. To find exact values: 1) search-page for the term, 2) use exact result in bucket-query. Example: "Bob's Axe Shop" -> search-page "bob axe" -> gets "Bob's Brilliant Axes" -> bucket("infobox_shop").where("shop_name","Bob's Brilliant Axes") If a bucket query returns 0 rows: FIRST suspect name variant (e.g., "Obligator (uncharged)" vs "Obligator"), THEN check field names in context://bucket-catalog. If a value looks wrong, render the canonical page and match the number to its labeled row. Common bucket-query patterns (ALWAYS include .select() and .where()): * Gear -> bucket("recommended_equipment").select("item","slot").where("activity","hydra").run() * GE metadata -> bucket("exchange").select("name","value","high_alch").where("name","Abyssal whip").run() (value = static Value stat) * LIVE GE price -> parse-wikitext "{{GEPrice|}}" (see context://template-reference) * Monster stats -> bucket("infobox_monster").select("name","combat_level","hitpoints").where("name","Hydra").run() * Item stats -> bucket("infobox_item").select("item_name","value","high_alch").where("item_name","Abyssal whip").run() * Drop sources for an item -> bucket("dropsline").select("item_name","drop_json").where("item_name","Abyssal whip").run() (drop_json contains "Dropped from" as JSON text) * What drops from a source (boss/chest/activity) -> bucket CANNOT do this; use get-page on the source page directly (see context://bucket-query-guide for patterns) * Money making at a boss/method -> search-page "money making " -> get-page "Money making guide/..." (bucket not queryable by method name) * Quest requirements -> parse-wikitext "{{Questreq||quests}}" + "{{Questreq||skills}}" (or get-page on the quest page) * Varbits -> bucket("varbit").select("name","value").where("name","hydra_task").run() * Shop lookup -> bucket("infobox_shop").select("shop_name","location","owner").where("shop_name","Bob's Brilliant Axes").run() Use page reads ('get-page', 'search-page') ONLY for unstructured content: lore, mechanics, walkthroughs. For large pages: first call get-page with metadata=true to get section outline, then fetch only the relevant section with section=N. Avoid full-page reads. Outbound traffic is rate-limited; calls over budget wait or return rate-limit error.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get-pageA | Returns a single wiki page (wikitext source, rendered HTML, or metadata only). If the title does not exist, an error is returned. Use metadata=true to retrieve the revision ID (for edit-conflict detection), page size, and section outline. Set content="none" to fetch only metadata. Large content is truncated at 75000 bytes by default, with a marker reporting how much of it was returned and which sections a narrower read can target; a follow-up call with section=N fetches a specific section. For more than one page at a time, use get-pages. For a specific historical revision, use get-revision. |
| get-pagesA | Returns multiple wiki pages in one call (wikitext source or metadata only). Suited to reading a cluster of related pages, diffing a page family, or syncing pages to local storage. Accepts up to 50 titles; missing pages are reported inline (not as errors). One byte budget covers the whole response, 75000 bytes by default: pages come back whole in the order asked for until it is spent, and the pages past that point are named rather than returned, so a follow-up call for those names fetches the rest. Only a first page larger than the budget on its own is truncated, with a marker reporting how much of it was returned and which sections a narrower read can target. For a single page or HTML output, use get-page. requestedTitle is included only when it differs from the resolved title. |
| get-page-historyA | Returns revision metadata (revision ID, timestamp, user, comment, size, minor flag) for a wiki page, in segments of 20 revisions, newest first. Paginate with olderThan or newerThan (mutually exclusive). If the title does not exist, an error is returned. Boolean flags appear only when true. |
| get-recent-changesA | Returns recent change events, newest first, in segments of 50. Defaults to edits and page creations; set types to include log actions, categorizations, or external changes. Each row includes title, timestamp, user, revision IDs, size change, flags (minor/bot/new/anon), tags, and change type. Filter by timestamp window, namespaces, user, change tag, or hide flags (hideBots/hideMinor/hideAnon/hideRedirects/hidePatrolled). Pass showPatrolStatus to include per-row patrol state (requires patrol rights). Paginate with the continue token from the truncation marker. For a single page's revision history, use get-page-history. Boolean flags appear only when true; rows report the size delta, not raw old/new lengths. |
| search-pageA | Searches wiki page titles and page content (full-text) for the provided terms. Returns matching pages with a snippet, size, timestamp, and the namespace the match came from. Covers the namespaces the wiki counts as content unless namespaces names the namespace IDs to search; get-site-info lists a wiki's namespaces and flags which of them hold content. Accepts up to 100 matches per call (default 10); additional matches beyond the cap are flagged in the response — narrow the query to surface more. For title-prefix lookup (e.g. autocomplete), use search-page-by-prefix. |
| search-page-by-prefixA | Returns wiki page titles beginning with a given prefix (suited to autocomplete and title lookup). Only titles are returned — no snippets, sizes, or IDs. Accepts up to 500 titles per call (default 10); additional matches beyond the cap are flagged in the response. For full-text content search, use search-page. |
| parse-wikitextA | Renders wikitext through the live wiki without saving. Returns HTML, parse warnings, categories, wikilinks, templates, external URLs, and display title. Suited to dry-running a planned edit before create-page or update-page, or previewing standalone wikitext (template combinations, sanitizer checks) with no target page. HTML output is truncated at 75000 bytes by default, with a marker reporting how much of it was returned; a smaller wikitext fragment in a follow-up call returns the rest. |
| compare-pagesA | Returns the changes between two versions of a wiki page as a compact text diff. Each side accepts a revision ID, page title (latest revision), or supplied wikitext; text-vs-text is rejected. Only the changes are returned over the wire. For the full text of both sides, fetch with get-page instead. If a title or revision ID does not exist, an error is returned. Set includeDiff=false for a cheap change-detection response that skips diff rendering and returns just the change flag, revision metadata, and size delta. Diff output is truncated at 75000 bytes by default, with a marker reporting how much of it was returned; a narrower revision range or includeDiff=false avoids truncation. |
| get-fileA | Returns metadata for a file (uploader, timestamp, size, MIME type) along with download URLs for the thumbnail, preview, and original. The File: prefix is added automatically if omitted. |
| get-file-dataA | Fetches a wiki file server-side and returns the image inline as a content block, for clients that cannot reach the wiki host (sandboxed or network-restricted) and need the image sent to the model for visual analysis. Returns a scaled rendition sized by width. Files MediaWiki can rasterize (images, SVG, PDF, DjVu) come back as an image; other types (audio, video, arbitrary binaries) error — for those, and for metadata or a download URL, use get-file. |
| get-revisionA | Returns a specific historical revision of a wiki page by revision ID (wikitext source, rendered HTML, or metadata only). If the revision ID does not exist, an error is returned. Content is truncated at 75000 bytes by default; a past revision has no narrower read, so for a large one use compare-pages to see what changed. For the latest revision plus metadata, use get-page with metadata=true. |
| get-site-infoA | Returns key facts about the targeted wiki from its MediaWiki siteinfo: general settings (sitename, MediaWiki version, content language, page-title case-sensitivity, live read-only state, and maxarticlesize in bytes), the namespace map with localized names and aliases, the list of installed extension names, and the content license. Set includeStatistics to also return page, article, edit, image, user, active-user, and admin counts. |
| get-category-membersA | Lists members of a category, returning each member's page ID, namespace ID, and wiki page title. Optionally filter by member type (page, file, subcat) or by namespace ID — filters apply server-side before the cap. Returns up to 500 members per call; paginate with continueFrom (opaque cursor echoed from the previous response). A member's type is omitted when it is an ordinary page (present only for files and subcategories). |
| get-links-hereA | Lists pages that reference a target wiki page, returning each referencing page's title, page ID, namespace ID, and whether it is a redirect. The type parameter selects the relationship — wikilinks (pages that link to the target), transclusions (pages that embed it, such as a template), or fileusage (pages that display it, for File pages) — one relationship per call. With expandRedirects, a referencing redirect also yields the pages that link through it (wikilinks and fileusage only), each tagged with the via redirect. Filter by namespace ID or by redirect status. For members of a category, use get-category-members; for full-text content search, use search-page. Returns up to 500 per call; paginate with continueFrom. The redirect flag appears only when the referencing page is a redirect. |
| get-random-pagesA | Returns randomly chosen wiki pages from one namespace, as each page's title, page ID, and namespace ID; the API counterpart of Special:Random. One call's pages are a fair random sample; separate calls can overlap because they read the same ordering from different starting points. There is no continuation; each call picks a new starting point. For page content, pass the titles to get-pages. |
| whoamiA | Returns the identity the current session is authenticated as on the targeted wiki: the username, whether the session is anonymous (no user is logged in), and the user groups it belongs to. Set includeRights to also return the full list of user rights. Use to confirm who edits and uploads will be attributed to before writing — for example, to resolve your own username before building a title under your own user namespace (User:/…). Reports anonymous access rather than failing when the session has no credentials. For which wikis have stored OAuth tokens and their scopes, use oauth-status instead. |
| oauth-statusA | Lists wikis with stored OAuth tokens, their scopes, and expiry. Stdio only. Never returns token values. |
| oauth-logoutA | Removes stored OAuth tokens. With no argument, removes all stored tokens; with |
| bucket-queryA | Runs a Bucket extension query against the targeted wiki. One row per match. Enabled only when the wiki has Bucket installed. Ground bucket and field names first: schemas are JSON pages in the Examples:
Where syntax: shorthand Up to 500 rows per call, and only the whole rows that fit in 75000 bytes by default; paginate with continueFrom. Bucket's API is not yet stable upstream — error wording may shift, but errors come through verbatim. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| tool-selection | Top-level routing: which tool to use for each question type. Decision tree mapping queries to tools + required resources. Read this FIRST. |
| bucket-catalog | Complete reference list of all known Bucket buckets on the OSRS Wiki with query names, page titles, and contents. For usage patterns, see bucket-query-guide. |
| bucket-query-guide | How to use bucket-query effectively: when to use it, mandatory best practices, exact-match rules, common patterns, limitations, and troubleshooting. |
| namespace-category-guide | Category structure, namespace IDs, DPL/template discovery workflow for get-category-members, get-site-info, get-links-here. When to use category vs search. |
| search-guide | Tool selection, broad-first search strategy, canonical page heuristic, section discovery for search-page, search-page-by-prefix, get-page. Includes decision tree and fallback chain. |
| template-reference | Verified data-retrieval templates for parse-wikitext: GE prices, alchemy values, currency formatting, quest requirements, drop tables, bucket rendering. Prefer templates over bare #invoke. |
TDQS
Scored across 19 tools
Every tool targets a distinct resource+action, and descriptions explicitly cross-reference the nearest neighbor (search-page vs search-page-by-prefix, get-page vs get-pages vs get-revision, get-file vs get-file-data, get-links-here vs get-category-members). The single/multi and metadata/content splits are clearly signposted, leaving little room for misselection.
Most tools follow a predictable verb_noun kebab-case pattern (search-page, get-page-history, compare-pages, get-category-members, parse-wikitext). A handful deviate with noun-only or namespace-prefixed names (whoami, oauth-status, oauth-logout, bucket-query), which is readable but not fully uniform.
19 tools is slightly above the comfortable 3-15 band but each earns its place across genuinely distinct sub-areas: search, page reads, revisions/diffs, files, categories/links, site metadata, auth, and Bucket queries. The breadth of the MediaWiki read surface justifies the count rather than padding it.
Read coverage is thorough, but the surface is read-only: parse-wikitext tells agents to dry-run edits before create-page/update-page, and whoami references confirming identity before writing/uploads, yet no create/update/delete/move/upload tools exist. These are dead ends for any write workflow the descriptions imply.