Skip to main content
Glama
@mistereman22/osrs-wiki-mcp-server

@mistereman22/osrs-wiki-mcp-server

by mistereman22

@mistereman22/osrs-wiki-mcp-server

MCP server for the Old School RuneScape Wiki (https://oldschool.runescape.wiki). Serves the full tool surface of @professional-wiki/mediawiki-mcp-server against a pinned, read-only wiki definition.

Capability

Details

MediaWiki tools

Full upstream tool surface (page reads, search, bucket queries, wikitext parsing, categories, siteinfo, ...) with wiki fixed to oldschool.runescape.wiki. Read-only — write and wiki-management tools are gated off.

MCP resources

Guidance resources (context://...) covering tool selection, bucket schemas, query patterns, search strategy, namespace/category workflows, and verified data-retrieval templates.

Quick start (users)

Requirement: Node.js >= 22.19.0

Before you start: Replace the empty MCP_CONTACT values below with your own email or name + URL. The server requires this and will exit if not set.

OpenCode

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "servers": {
      "osrs-wiki": {
        "type": "local",
        "command": ["npx", "@mistereman22/osrs-wiki-mcp-server"],
        "environment": { "MCP_CONTACT": "" }
      }
    }
  }
}

Cursor

{
  "mcpServers": {
    "osrs-wiki": {
      "command": "npx",
      "args": ["@mistereman22/osrs-wiki-mcp-server"],
      "env": { "MCP_CONTACT": "" }
    }
  }
}

Claude Code

/plugin marketplace add mistereman22/osrs-wiki-mcp-server
/plugin install osrs-wiki-mcp-server@osrs-wiki-mcp-server

Then set your contact:

# Add to your shell profile (e.g., ~/.bashrc, ~/.zshrc)
export MCP_CONTACT="your-contact@example.com"

Run directly

MCP_CONTACT="" npx @mistereman22/osrs-wiki-mcp-server

Related MCP server: osrs-wiki-mcp

Configuration

Variable

Required

Meaning

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.

Composed User-Agent

osrs-wiki-mcp-server/<version> (https://github.com/mistereman22/osrs-wiki-mcp-server) you@example.com

MCP Resources

The server exposes guidance resources via context:// URIs. Read these before using the corresponding tools:

Resource

Purpose

context://tool-selection

Decision tree mapping query types to tools. Read first.

context://bucket-catalog

All known buckets with their fields.

context://bucket-query-guide

Bucket query syntax, best practices, common patterns, troubleshooting.

context://search-guide

Search strategy, section discovery, canonical page heuristic.

context://namespace-category-guide

Category structure, namespace IDs, DPL/template discovery.

context://template-reference

Verified data-retrieval templates for parse-wikitext (GE prices, quest reqs, drop tables, etc.).

Rate limits

Two independent sliding-window budgets (tuned in src/server.ts):

Surface

Budget

Counted per

MediaWiki API

30 requests / 60 s

each upstream tool call

External APIs

30 requests / 60 s

each HTTP request by external API tool

Over budget: waits up to 10s for a slot, then returns rate-limit error with retry hint.

Development

Requirements

  • Node.js >= 22.19.0

  • npm install in this directory

Commands

npm run build   # TypeScript -> dist/
npm start       # Run built server (requires MCP_CONTACT)
npm run dev     # Build + run

Repository layout

.
+-- src/
|   +-- index.ts          # Entry point: env gate, stdio transport, lifecycle
|   +-- env.ts            # MCP_CONTACT fail-fast gate + User-Agent composition
|   +-- server.ts         # McpServer assembly + tool gating + wiki config + rate limiting
|   +-- resources.ts      # MCP resource loader (guidance documents)
|   +-- external.ts       # HTTP utilities (callHttp) for future external APIs
|   +-- declarations.d.ts # Type declarations for upstream JS-only package
+-- resources/
|   +-- tool-selection.md        # Query-type → tool decision tree
|   +-- bucket-catalog.md        # Bucket index with field names
|   +-- bucket-query-guide.md    # Bucket query patterns and troubleshooting
|   +-- search-guide.md          # Search and section discovery strategy
|   +-- namespace-category-guide.md # Categories, namespaces, DPL
|   +-- template-reference.md    # Verified data-retrieval templates
+-- .claude-plugin/
|   +-- marketplace.json  # Claude Code marketplace manifest
+-- dist/                 # Compiled output (generated by build)
+-- package.json
+-- tsconfig.json
+-- README.md
+-- LICENSE

Rate limit constants

Tuned in src/server.ts:

  • WINDOW_MS = 60_000 (60s window)

  • MAX_WAIT_MS = 10_000 (max 10s wait)

  • WIKI_MAX_REQUESTS = 30

  • EXTERNAL_MAX_REQUESTS = 30

Contact

License

Code: MIT

Wiki content: This server fetches content from the Old School RuneScape Wiki at runtime. That content is licensed under CC BY-NC-SA 3.0 with additional terms. This server does not store or redistribute wiki content — it is a read-only proxy. Downstream users are responsible for complying with the wiki's license when reusing retrieved content, including providing attribution to the source pages.

Available Tools

19 tools
bucket-queryA
Read-onlyIdempotent

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 Bucket: namespace (id 9592). The bucket(...) argument is the page title lowercased with spaces replaced by underscores — page Bucket:Combat achievement is queried as bucket("combat_achievement"). Discover with search-page-by-prefix (namespace 9592 plus a starting-letter prefix), then get-page to read the schema. Field names appear already lowercase-underscored in the schema; pass them verbatim.

Examples:

  • Lookup: bucket("exchange").select("name","high_alch").where("name","Abyssal whip").run()

  • Sort: bucket("exchange").select("name","value").orderBy("value","desc").limit(10).run()

  • Comparator: bucket("exchange").select("name","value").where({"value",">",1000000}).run()

Where syntax: shorthand where("field","value") for equality; table form where({"field","op","value"}) for =, !=, >, <, >=, <=. Compose with Bucket.And/Or/Not. Full Lua reference: https://meta.weirdgloop.org/w/Extension:Bucket/Usage.

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.

Inputs: query (required), wiki, limit, continueFrom.

compare-pagesA
Read-onlyIdempotent

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.

Inputs: wiki, toText, toTitle, fromText, +4 more.

get-category-membersA
Read-onlyIdempotent

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).

Inputs: category (required), wiki, limit, types, +2 more.

get-fileA
Read-onlyIdempotent

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.

Inputs: title (required), wiki.

get-file-dataA
Read-onlyIdempotent

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.

Inputs: title (required), wiki, width, format.

get-pageA
Read-onlyIdempotent

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.

Inputs: title (required), wiki, content, section, +1 more.

get-page-historyA
Read-onlyIdempotent

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.

Inputs: title (required), wiki, filter, newerThan, +1 more.

get-pagesA
Read-onlyIdempotent

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.

Inputs: titles (required), wiki, content, metadata, +1 more.

get-random-pagesA
Read-onlyIdempotent

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.

Inputs: wiki, limit, filter, namespace.

get-recent-changesA
Read-onlyIdempotent

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.

Inputs: tag, user, wiki, since, +11 more.

get-revisionA
Read-onlyIdempotent

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.

Inputs: revisionId (required), wiki, content, metadata.

get-site-infoA
Read-onlyIdempotent

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.

Inputs: wiki, includeStatistics.

oauth-logoutA
DestructiveIdempotent

Removes stored OAuth tokens. With no argument, removes all stored tokens; with wiki, removes only that wiki. Stdio only.

Inputs: wiki.

oauth-statusA
Read-onlyIdempotent

Lists wikis with stored OAuth tokens, their scopes, and expiry. Stdio only. Never returns token values.

Inputs: no named parameters.

parse-wikitextA
Read-onlyIdempotent

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.

Inputs: wikitext (required), wiki, title, applyPreSaveTransform.

search-pageA
Read-onlyIdempotent

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.

Inputs: query (required), wiki, limit, namespaces.

search-page-by-prefixA
Read-onlyIdempotent

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.

Inputs: prefix (required), wiki, limit, namespace.

whoamiA
Read-onlyIdempotent

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.

Inputs: wiki, includeRights.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 19 tools

    Disambiguation5/5

    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.

    Naming Consistency4/5

    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.

    Tool Count4/5

    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.

    Completeness3/5

    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.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      C
      maintenance
      Enables interaction with Old School RuneScape game data and Wiki through the Model Context Protocol, providing tools to search the OSRS Wiki and access game definitions for items, NPCs, locations, and game mechanics.
      23
      67 npm
      40
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Provides read-only access to Old School RuneScape Wiki data, returning structured content with source provenance via MCP tools for searching pages, items, monsters, quests, shops, and drop sources.
      10
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables LLM clients to search, read, compare, and edit pages on any MediaWiki wiki, including multi-wiki setups with OAuth-authenticated writes. It also queries extension data such as Wikibase entities, Semantic MediaWiki and Cargo results, and Bucket Lua queries.
      8 npm
      MIT