mcp服务器运行逃逸
](https://badge.fury.io/js/mcp-server-runescape) ](https://smithery.ai/server/@stefan-xyz/mcp-server-runescape)
这是一个MCP服务器,带有与RuneScape(RS)和老派RuneScapes(OSRS)数据交互的工具,包括物品价格、玩家核心等。
https://github.com/user-attachments/assets/7c141575-443b-4b76-8b33-6d48ec82fbe7
特性
MCP服务器提供了几个工具,用于在游戏过程中使用来自准确来源的数据回答您的问题。
1.项目详细信息(get_item_details)
检索有关可交易物品的全面信息,包括:
- Grand Exchange的当前价格
- 价格趋势(24小时、30天、90天和180天)
- 名字
- 类别
- 说明(检查文本)
- 图像
- 成员
- 身份证件
https://runescape.wiki/w/Application_programming_interface#detail
2.项目价格历史(get_item_price_history)
访问过去180天内商品的价格历史记录,包括:
- 给定日期的价格(时间戳)
- 给定日期的平均价格(时间戳)
https://runescape.wiki/w/Application_programming_interface#Graph
3.球员Hiscore(get_player_hiscore)
获取任何玩家的技能和活动的排名和经验,包括:
- 玩家排名
- 技能水平
- 经验点数
- 活动评分
https://runescape.wiki/w/Application_programming_interface#Hiscores_Lite_2
4.排名靠前(get_top_rankings)
查看特定技能或活动的前50名玩家,包括:
- 名字
- 分数(用于技能和活动)
- 排名
https://runescape.wiki/w/Application_programming_interface#ranking
5.玩家数量(get_player_count)
获取RuneScape和老派RuneScapes中当前在线的玩家数量,包括:
- 实时玩家计数
https://runescape.wiki/w/Application_programming_interface#player_count
6.账户总计(get_rsuser_total)
获取当前创建的可以访问任何形式的RuneScape的帐户数量。这包括在FunOrb或特定版本的RuneScape上创建的帐户,包括:
- 历史账户创建数据
https://runescape.wiki/w/Application_programming_interface#rsusertotal
备注
为了保持一致性,我尝试只使用同时支持RS和OSRS数据的API端点。
示例用例
目标是让你在浏览的同时,有一种简单的方法从源代码中获取更准确的数据。
以下是使用此MCP服务器时可以向AI询问的一些示例查询:
物品详情
"What is the price of a dragon scimitar in the Grand Exchange?"
"Torva full helm price"
"Current price of a dragon pickaxe"
"How much percentage has the price of a dragon pickaxe changed in the past 30 days?"
"How much percentage has the price of a dragon pickaxe changed in the past 90 days?"
"How much percentage has the price of a dragon pickaxe changed in the past 180 days?"
"Give me the description of an armadyl godsword"
"Give me the icon of a dragon scimitar"
"What is the id of an abbyssal whip?"商品价格历史
"Give me the price history of a dragon scimitar"
"Rune scimitar price on 1 april 2025?"球员Hiscore
"What rank is Zezima?"
"What rank is Zezima on runescape?"
"How much experience does Lynx Titan have overall?"
"Iron Hyger ironman rank?"顶级排名
"Top 10 players overall?"
"Give me the top 50 attack rankings"
"Number one agility on runescape?"
"Most zulrah kills?"
"Give me the top 5 jad rankings"入门指南
您可以在许多客户端中使用MCP服务器,例如:
- 克劳德桌面
- 光标
1.在配置中添加MCP服务器(NPM包)
将此代码段粘贴到客户端正在使用的mcp配置中
{
"mcpServers": {
"mcp-server-runescape": {
"command": "npx",
"args": ["-y", "mcp-server-runescape"]
}
}
}您可以在(mac)中找到配置文件:
- 克劳德桌面:
~/Library/Application Support/Claude/claude_desktop_config.json
- 光标:
/Users/name/.cursor/mcp.json
2.来源
必需 安装在您的系统上
- 克隆此存储库
- 安装依赖项:
yarn或
npm install- 然后用以下命令更新您的Claude桌面或光标:
{
"mcpServers": {
"mcp-server-runescape": {
"command": "node",
"args": ["/Users/path/to/mcp-server-runescape/src/server.js"]
}
}
}- 可选的:运行调试器/检查器
yarn dev或
npm run build确保:
- 替换
/path/to/mcp-server-runescape安装的实际路径。
更新配置后,重新启动Claude桌面或Cursor以使更改生效。
个人偏好
你可以使用任何你想要的客户端,我个人目前更喜欢Cursor与deepseek-v3.1结合使用,表现非常好。
API文档
有关此MCP服务器使用的Runescape API终结点的详细信息,请访问: RS/Wiki API
非常感谢。
我在周末构建了这个,以了解更多关于MCP服务器的信息。Runescape是尝试它的完美主题。
- 向rs/wiki团队大声呼喊文档和API。
如果这在任何情况下都能帮助你,并且你想支持我,请随时

