osrs-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@osrs-mcp Check my current stats and inventory."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
osrs-mcp
MCP server for Old School RuneScape. Gives an AI agent eyes and knowledge for OSRS by combining:
Screen vision — captures the RuneLite window and uses Claude or a local vision LLM to analyze game state
RuneLite HTTP API — reads exact skill levels, inventory, and equipment directly from the game client (no vision needed)
Click coordinates — resolves pixel positions for inventory slots, sidebar tabs, and UI regions
OSRS Wiki — item, NPC, quest, and page lookups
Grand Exchange prices — real-time prices, history, and profit calculator
Skill training tools — XP calculations and items-to-level planning
Setup
cp .env.example .env
# Edit .env — set ANTHROPIC_API_KEY and optionally VISION_PROVIDER
npm install
npm run buildVision provider
The vision tools support two backends, configured via .env:
Option A — Anthropic API (default)
ANTHROPIC_API_KEY=your-api-key-hereOption B — Local AI via LM Studio (or any Anthropic-compatible server)
Your local model must be vision/multimodal capable (e.g. qwen2-vl-7b-instruct, gemma-4, llava). Text-only models cannot analyze screenshots.
VISION_PROVIDER=local
LOCAL_AI_BASE_URL=http://localhost:1234
LOCAL_AI_API_KEY=lmstudio
LOCAL_AI_DETAIL_MODEL=your-vision-model-name
LOCAL_AI_FAST_MODEL=your-vision-model-name
LOCAL_AI_THINKING=0 # set to 1 if your model supports reasoningRuneLite HTTP Server plugin
The get_stats, get_inventory, and get_equipment tools read live game data directly from RuneLite without using vision. To enable them:
Open RuneLite → Plugin Hub → search HTTP Server → install and enable it
The plugin exposes
http://localhost:8080/stats,/inv, and/equipNo extra configuration needed — the MCP connects on startup
These tools are more reliable and faster than their vision equivalents. Use them when you need ground-truth data (skill XP, exact item IDs, equipment slots).
macOS window capture
The screenshot tools use screencapture -l <CGWindowID> to capture just the RuneLite window. Window ID detection uses Swift + CGWindowListCopyWindowInfo — no extra tools required.
Fallback: If window ID detection fails, the full screen is captured. Vision analysis still works as long as RuneLite is visible.
Related MCP server: my-own-vision-mcp
Claude Desktop / Claude Code config
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"osrs": {
"command": "node",
"args": ["/absolute/path/to/osrs-mcp/dist/index.js"]
}
}
}The server reads .env from the project root for ANTHROPIC_API_KEY / VISION_PROVIDER. You can also inline env vars in the config:
{
"mcpServers": {
"osrs": {
"command": "node",
"args": ["/absolute/path/to/osrs-mcp/dist/index.js"],
"env": { "ANTHROPIC_API_KEY": "sk-..." }
}
}
}Or with tsx for development (no build step needed):
{
"mcpServers": {
"osrs": {
"command": "npx",
"args": ["tsx", "/absolute/path/to/osrs-mcp/src/index.ts"]
}
}
}Tools
RuneLite HTTP API
Requires the HTTP Server plugin running on port 8080. Faster and more reliable than vision for these reads.
Tool | Description |
| All skill levels (base + boosted) and XP from |
| Inventory items — item ID, quantity, slot 0-27 — from |
| Equipped items by slot name (weapon, head, body…) from |
Screen capture
Tool | Description |
| Check if RuneLite is running and get its window ID |
| Take a screenshot of the RuneLite window |
Vision analysis
Uses Claude vision (Opus for detail, Haiku for fast reads). Falls back to local model if VISION_PROVIDER=local.
Tool | Description |
| Analyze the screen with vision (focus: |
| List all items in the 28-slot inventory |
| Extract all visible chat messages |
| Read HP, Prayer, Run energy, Special attack from status bars |
| Read compass bearing and nearby entity counts |
| Full composite game state in one call |
| Read NPC dialog, option menus, or level-up popups |
| Read combat indicators: XP drops, enemy HP bar, poison/venom, overhead prayers |
| Identify ground items visible after a kill |
Click coordinates
Returns pixel positions for UI elements. Layout is auto-detected from screenshot dimensions by default.
Tool | Description |
| Detect whether RuneLite is in fixed (765×503) or resizable mode |
| Pixel coordinates to click a sidebar tab ( |
| Pixel center of an inventory slot 0–27 |
| Bounding boxes for major UI panels: minimap, inventory, chat box, compass |
| Locate a named NPC in the current screenshot, returns |
| Locate an interactable object (bank chest, tree, ladder…), returns |
Layout detection: fixed mode is identified by the exact dimensions 765×503 (or 1530×1006 on Retina). All other sizes are treated as resizable. Resizable coordinates are edge-anchored (inventory to bottom-right, chat to bottom-left) and computed from the actual captured dimensions.
Tab names (top row): combat_options · skills · quests · inventory · equipment · prayer · magic
Tab names (bottom row): clan_chat · friends · account_management · logout · settings · emotes · music
OSRS Wiki
Tool | Description |
| Search the OSRS wiki |
| Get the intro/summary of a wiki page |
| Item details (alch values, members, weight, GE limit, etc.) |
| NPC details (combat level, HP, attack styles, aggressive/poisonous) |
| Quest details (difficulty, length, members, requirements, rewards) |
Grand Exchange
Tool | Description |
| Current GE price by item name or ID |
| Price chart data (timestep: |
| Full item name→ID mapping, filterable by name substring |
| Flip profit calculator — applies 1% GE tax, returns per-item and total profit + ROI |
Utilities
Tool | Description |
| XP required for a target level, or current level from an XP value |
| How many actions/items to reach a target level given XP per action |
Development
npm run dev # Run directly via tsx (no build needed)
npm run build # Compile TypeScript → dist/
npm run inspect # Interactive tool tester via MCP Inspector
npm test # Run test suite (vitest)
npm run test:watch # Watch modeRelated
Available Tools
31 toolsanalyze_inventoryB
Read all items in the player inventory (28 slots)
Inputs: fresh_screenshot.
analyze_screenC
Analyze a screenshot of the OSRS client using Claude vision. Can focus on inventory, stats, chat, minimap, bank, shop, NPCs, or give a full analysis
Inputs: focus, question, fresh_screenshot.
calc_items_to_levelA
Calculate how many items/actions are needed to reach a target skill level given XP per action
Inputs: skill (required), target_level (required), xp_per_item (required), current_level, +1 more.
calculate_profitA
Calculate GE flip profit after 1% tax given buy/sell prices and quantity
Inputs: item_name (required), buy_price (required), sell_price (required), quantity (required).
capture_screenA
Capture a screenshot of the OSRS/RuneLite client window
Inputs: force_refresh.
detect_combat_stateB
Read combat indicators: XP drops, enemy HP bar, poison/venom status, overhead prayers
Inputs: fresh_screenshot.
detect_dialogA
Read any NPC dialog box, option menu, or level-up popup currently on screen
Inputs: fresh_screenshot.
detect_layoutA
Detect whether RuneLite is in fixed (765×503) or resizable mode by reading screenshot pixel dimensions
Inputs: fresh_screenshot.
detect_lootB
Identify ground items visible on the floor after a kill
Inputs: fresh_screenshot.
find_npc_on_screenB
Locate a named NPC in the current screenshot and return its screen coordinates
Inputs: npc_name (required), fresh_screenshot.
find_object_on_screenB
Locate a named interactable object (tree, chest, bank, etc.) and return its screen coordinates
Inputs: object_name (required), fresh_screenshot.
find_osrs_windowA
Check if RuneLite is running and get its window ID
Inputs: no named parameters.
ge_mappingA
Get the full item name-to-ID mapping, optionally filtered by name
Inputs: filter, limit.
ge_priceA
Get the current Grand Exchange price for an item
Inputs: item_name, item_id.
ge_price_historyB
Get GE price history for an item over time
Inputs: item_name, item_id, timestep.
get_clickable_regionsA
Get bounding boxes for key UI elements: minimap, inventory, chat, compass. Auto-detects layout.
Inputs: layout.
get_equipmentA
Get currently equipped items via RuneLite HTTP Server plugin (/equip). More reliable than vision.
Inputs: no named parameters.
get_game_stateB
Get a comprehensive analysis of the current game state (all elements in one call)
Inputs: fresh_screenshot.
get_inventoryA
Get inventory items (id, quantity, slot 0-27) via RuneLite HTTP Server plugin (/inv). More reliable than vision.
Inputs: no named parameters.
get_statsA
Get all skill levels and XP via RuneLite HTTP Server plugin (/stats). More reliable than vision.
Inputs: no named parameters.
get_tab_coordsA
Get pixel coordinates to click a sidebar tab (prayer, inventory, skills, combat_options, magic, etc.). Auto-detects layout.
Inputs: tab (required), layout.
inventory_slot_coordsB
Get pixel center coordinates for an inventory slot (0-27). Auto-detects layout.
Inputs: slot (required), layout.
read_chatB
Extract all visible chat messages from the chat box
Inputs: fresh_screenshot.
read_minimapA
Analyze the minimap for compass bearing and nearby entities
Inputs: fresh_screenshot.
read_statsB
Read HP, Prayer, Run energy, and Special attack values from the status bars
Inputs: fresh_screenshot.
skill_xp_infoA
Get XP required for a level, or current level from XP
Inputs: level, current_xp.
wiki_item_infoA
Get detailed information about an OSRS item from the wiki
Inputs: item_name (required).
wiki_npc_infoB
Get information about an NPC from the OSRS wiki
Inputs: npc_name (required).
wiki_pageB
Get the summary/intro of an OSRS wiki page
Inputs: title (required).
wiki_quest_infoC
Get information about a quest from the OSRS wiki
Inputs: quest_name (required).
wiki_searchB
Search the OSRS wiki for pages
Inputs: query (required), limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 31 tools
Most tools have distinct purposes, but a few pairs (e.g., analyze_inventory vs get_inventory, analyze_screen vs capture_screen) are similar in goal, differentiated mainly by method. The wiki tools also collectively aim at wiki lookups but target different entities.
Tool names largely follow a verb_noun snake_case pattern (e.g., analyze_inventory, capture_screen). Minor inconsistencies include calc_items_to_level vs calculate_profit, and get_clickable_regions vs get_tab_coords.
With 31 tools, the server exceeds the recommended 15-tool threshold for typical MCPs. Many tools are redundant (e.g., visual vs plugin methods), and the set feels bloated for a single-purpose server.
The tool set covers essential game state reading: inventory, stats, combat, dialog, NPCs, objects, wiki, and GE. Missing are direct action tools (e.g., click, keypress), but those may be handled externally. Gaps are minor.
Related MCP Connectors
AI Agent Utility Layer for agent safety, web monitoring, crypto research and tool discovery.
Web data for agents: YouTube transcripts, screenshots, Google News, WHOIS, jobs, tech stack, more.
Give your agent eyes: screenshots of any web page it can see, pages as markdown, and PDFs.
Shared scratchpad, coordination and free utility tools for AI agents. No account or API key.
Related MCP Servers
- AlicenseBqualityDmaintenanceEmpowers AI agents to see, reason, and control computers via VNC, providing advanced vision features like OCR and image search, human-like input control, and optional SSH remote command execution.211MIT
- AlicenseNot gradedqualityBmaintenanceEnables text-only AI agents to see images on demand by calling any OpenAI-compatible vision API for OCR, image analysis, structured extraction, image comparison, and GUI screenshot-to-accessibility-tree conversion.1MIT
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to see and operate a Windows PC through mouse, keyboard, screenshots, OCR, window control, and shell commands.-
- AlicenseNot gradedqualityBmaintenanceGives AI agents eyes and hands inside Minecraft, letting them capture screenshots from any camera angle, read and click GUIs and menus, chat, press keys and read the HUD on a Fabric client. On a Paper server it also runs console commands and JavaScript against the Bukkit API, reads and edits the world, spawns player-like bots, profiles lag, and builds, deploys and tests plugins.4MIT