osrs-data-hub

AI assistant

Ask Claude, Cursor or another AI assistant about your guild through the hub's MCP server.

The hub is an MCP server. Connect an AI assistant to it and ask "what did Stefan do all day?", "who has a Tumeken's shadow?", "how much am I worth compared to last week?" or "who killed the most Zulrah this month?". The assistant answers from the same read-only data the API serves, through a key you made.

Read-only, and never more than the key

Every tool only reads, and only what a REST endpoint also serves. The assistant sees what the key sees: your own key sees what you see, narrowed to its categories and accounts. Revoke the key and the assistant is cut off on its next question.

Connect

The address is https://<your hub>/api/v1/mcp.

  1. In Claude, open Settings → Connectors → Add custom connector.
  2. Enter a name and the address https://<your hub>/api/v1/mcp. Leave the rest empty.
  3. Claude sends you to your hub. Sign in with Discord as usual.
  4. The hub shows what the assistant asks for. Press Allow.

Allow adds a key named after the assistant to your API keys page, marked "Connected assistant", with the categories below on every account you can see. There is nothing to copy. Edit that key to let the assistant read more or less, and revoke it to disconnect. Connecting again replaces the key.

This needs your hub on public HTTPS.

A key for an assistant

On API keys, click Create key, then For an AI assistant. That names the key "AI assistant" and ticks stats, events, activity, location_history, equipment, inventory and hiscores. Add location_live for "where is X right now". Pick the accounts if the assistant should only see some. See API keys.

A key made on a hub from before gear and wealth were part of this (hub D-140), including one Claude.ai made when you connected, lacks equipment and inventory. Edit it on API keys, or connect again, and the assistant can answer gear and wealth questions.

When the key can't read something, the tool says so ("this key can't read Alpha Main's XP: it needs the stats category"), so the assistant can tell you why instead of guessing.

What it can answer

ToolAnswersNeeds
list_accountsthe accounts the key sees, who is online and on which world(activity for online)
get_accountlevels, online and world, gear, inventory, wealth, the slayer task, run energy, special attack, poison and running effectsthe section's category
get_gainsXP gained per skill over a day, week, month, year or datesstats
recent_eventsevents, newest first: drops, levels, deaths, log slotsevents
search_eventsthe drops of an item or from an NPC, deaths to itevents
leaderboardthe top gainers of a skill, the biggest drops, or the most boss kills per bossstats, events or hiscores
get_hiscoreskill counts, clues, minigames, ranks from the official hiscoreshiscores
collection_logan account's log: the total and the slots the hub sawevents or hiscores
who_haswho in the guild logged an item, and whenevents
sessionswhen an account playedactivity
locationswhere an account went: the places and the time spent therelocation_history
day_summaryone account's day in one call: playtime, XP, drops, placesany of activity, stats, events, location_history
wealthwealth over time: bank, inventory and gear now, the change since the start, the best and worst day, a value per dayinventory
progressan account's Progress page for today, 7, 30 or 90 days or a year: time online and active, where the time went, XP and XP/h per skill, loot, boss kills gained, the change in wealth, goalsper section: activity and stats for playtime, stats, events, hiscores, inventory
gear_historywhat an account wore, as trips with the kit brought for eachequipment

The assistant also gets the list of accounts (so it can match names) and four ready-made prompts: the guild's day, one player's day, one player's week, and who has an item.

Answers are short: a one-line summary first, names before ids, values like 35.2M, at most 50 rows. day_summary and progress take dates in your own time zone (your hub settings); the other tools take UTC dates.

Wealth counts the bank from the first time the plugin read it (open your bank once), plus what you carry and wear at Grand Exchange prices. Boss kills come from the official hiscores, which the hub reads after each session, so a kill shows up after the next read.

Limits

Every question the assistant sends is one request against the key's limit: 120 a minute for your own key. An assistant usually makes one to three calls per question.

On this page