RuneScape Wiki MCP Server

RuneScape Wiki MCP Server

Enables access to RuneScape 3 data including real-time Grand Exchange prices, item information, historical price trends, and player statistics. Supports multiple game modes and provides comprehensive RuneScape Wiki API integration through natural language.

Category
访问服务器

README

RuneScape Wiki MCP Server

A Model Context Protocol (MCP) server that provides access to RuneScape Wiki APIs, including real-time Grand Exchange prices, item data, and player statistics for RuneScape 3 (RS3).

Features

  • Real-time Grand Exchange Prices: Get current, 5-minute, and 1-hour average prices for all items
  • Item Database: Access complete item mappings with metadata (names, IDs, examine text, etc.)
  • Price Time Series: Historical price data with configurable time intervals
  • Player Statistics: Lookup player stats from RuneScape 3 hiscores
  • Multiple Game Modes: Support for normal, ironman, and hardcore ironman accounts
  • MCP Resources: Direct access to price and item data through MCP resource URIs

Installation

Prerequisites

  • Node.js 18.0.0 or higher
  • npm or yarn

Install Dependencies

npm install

Build the Project

npm run build

Development Mode

npm run dev

This will start the TypeScript compiler in watch mode and automatically restart the server when files change.

Usage

With Claude Desktop

Add the following configuration to your Claude Desktop config file:

{
  "mcpServers": {
    "runescape-wiki": {
      "command": "node",
      "args": ["/path/to/runescape-wiki-mcp/dist/index.js"]
    }
  }
}

With MCP Inspector

Test the server using the MCP Inspector:

# Using npm script (recommended)
npm run inspector

# Or manually with npx
npx @modelcontextprotocol/inspector node dist/index.js

Quick Test

Verify the server is working correctly:

npm test

Available Tools

get_latest_prices

Get the latest Grand Exchange prices for all items or a specific item.

Parameters:

  • itemId (optional): Item ID to get price for specific item

Example:

{
  "itemId": 4151
}

get_item_mapping

Get the complete mapping of all items with their IDs, names, and metadata.

Parameters: None

Returns: Array of items with:

  • id: Item ID
  • name: Item name
  • examine: Examine text
  • members: Whether it's a members-only item
  • lowalch: Low alchemy value
  • highalch: High alchemy value
  • limit: Grand Exchange buy limit
  • value: Item value
  • icon: Icon filename

get_5m_prices

Get 5-minute average prices for all items.

Parameters:

  • timestamp (optional): Unix timestamp to get prices for specific time

get_1h_prices

Get 1-hour average prices for all items.

Parameters:

  • timestamp (optional): Unix timestamp to get prices for specific time

get_timeseries

Get price time series data for a specific item.

Parameters:

  • itemId (required): Item ID to get time series for
  • timestep (required): Time interval - one of: 5m, 1h, 6h, 24h

Example:

{
  "itemId": 4151,
  "timestep": "1h"
}

get_player_stats

Get player statistics from RuneScape 3 hiscores.

Parameters:

  • username (required): Player username to lookup
  • gameMode (optional): Game mode - one of: normal, ironman, hardcore

Example:

{
  "username": "Zezima",
  "gameMode": "normal"
}

Returns: Parsed statistics including:

  • Overall rank and total level
  • Individual skill levels, experience, and ranks
  • Formatted data for all 30 skills (including Summoning, Dungeoneering, Divination, Invention, Archaeology, and Necromancy)

Item Category Mapping

Category Name Category Number
Ammo 1
Arrows 2
Bolts 3
Construction materials 4
Cooking ingredients 5
Costumes 6
Crafting materials 7
Familiars 8
Fletching materials 9
Food and Drink 10
Herblore materials 11
Hunting equipment 12
Jewellery 13
Mage armour 14
Mage weapons 15
Melee armour - low 16
Melee armour - mid 17
Melee armour - high 18
Melee weapons - low 19
Melee weapons - mid 20
Melee weapons - high 21
Mining and Smithing 22
Potions 23
Prayer armour 24
Prayer materials 25
Range armour 26
Range weapons 27
Runecrafting 28
Runes, Spells, Teleports 29
Seeds 30
Summoning scrolls 31
Tools and containers 32
Woodcutting product 33
Pocket items 34
Stone spirits 35
Firemaking products 36
Archaeology materials 37-43

Refer to this table when using tools that require a category number, such as search_items.

Available Resources

runescape://prices/latest

Direct access to the latest Grand Exchange prices for all items.

runescape://items/mapping

Direct access to the complete item mapping data.

API Endpoints

This server uses the following RuneScape Wiki APIs:

  • RS3 Prices API: https://prices.runescape.wiki/api/v1/rs
    • Latest prices, 5-minute averages, 1-hour averages, time series data
  • RS3 Hiscores API: https://secure.runescape.com/m=hiscore
    • Player statistics for different game modes

Rate Limits

The RuneScape Wiki APIs have the following guidelines:

  • Use a descriptive User-Agent (automatically handled by this server)
  • Avoid excessive requests that could impact API stability
  • The server implements proper error handling and respects API limitations

Error Handling

The server includes comprehensive error handling:

  • API request failures are caught and returned as error responses
  • Invalid parameters are validated before making API calls
  • Network timeouts and connection issues are handled gracefully
  • Player not found errors are properly reported

Development

Project Structure

src/
├── index.ts          # Main server implementation
├── types/            # TypeScript type definitions
└── utils/            # Utility functions

dist/                 # Compiled JavaScript output

Scripts

  • npm run build: Compile TypeScript to JavaScript
  • npm run watch: Watch for changes and recompile
  • npm start: Start the server in production mode
  • npm run dev: Start in development mode with auto-restart
  • npm test: Run a simple test to verify the server is working
  • npm run inspector: Launch the MCP Inspector to test the server

Adding New Tools

  1. Define the tool in the tools array with proper schema
  2. Add a case handler in the CallToolRequestSchema handler
  3. Implement the API logic with proper error handling
  4. Update this README with documentation

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

License

MIT License - see LICENSE file for details.

Acknowledgments

Support

For issues, questions, or feature requests, please open an issue on the GitHub repository.


Note: This is an unofficial tool and is not affiliated with Jagex or the RuneScape Wiki. Please respect the API usage guidelines and terms of service.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选