J

JayArrowz

@JayArrowz/mcp-osrs
Hosted
0 Stars 42 次浏览 JayArrowz 更新于 2026-08-23

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

{
  "mcpServers": {
    "osrs": {
      "args": [
        "-y",
        "@jayarrowz/mcp-osrs"
      ],
      "command": "npx"
    }
  }
}

可用工具 (19 个)

该服务在 MCP 协议中暴露的工具,AI 可按需调用

osrs_wiki_search

Search the OSRS Wiki for pages matching a search term.

该工具无需必填参数,直接调用即可

osrs_wiki_get_page_info

Get information about specific pages on the OSRS Wiki.

该工具无需必填参数,直接调用即可

osrs_wiki_parse_page

Get the parsed HTML content of a specific OSRS Wiki page.

该工具无需必填参数,直接调用即可

search_varptypes

Search the varptypes.txt file for player variables (varps) that store player state and progress.

该工具无需必填参数,直接调用即可

search_varbittypes

Search the varbittypes.txt file for variable bits (varbits) that store individual bits from varps.

该工具无需必填参数,直接调用即可

search_iftypes

Search the iftypes.txt file for interface definitions used in the game s UI.

该工具无需必填参数,直接调用即可

search_invtypes

Search the invtypes.txt file for inventory type definitions in the game.

该工具无需必填参数,直接调用即可

search_loctypes

Search the loctypes.txt file for location/object type definitions in the game world.

该工具无需必填参数,直接调用即可

search_npctypes

Search the npctypes.txt file for NPC (non-player character) definitions.

该工具无需必填参数,直接调用即可

search_objtypes

Search the objtypes.txt file for object/item definitions in the game.

该工具无需必填参数,直接调用即可

search_rowtypes

Search the rowtypes.txt file for row definitions used in various interfaces.

该工具无需必填参数,直接调用即可

search_seqtypes

Search the seqtypes.txt file for animation sequence definitions.

该工具无需必填参数,直接调用即可

search_soundtypes

Search the soundtypes.txt file for sound effect definitions in the game.

该工具无需必填参数,直接调用即可

search_spottypes

Search the spottypes.txt file for spot animation (graphical effect) definitions.

该工具无需必填参数,直接调用即可

search_spritetypes

Search the spritetypes.txt file for sprite image definitions used in the interface.

该工具无需必填参数,直接调用即可

search_tabletypes

Search the tabletypes.txt file for interface tab definitions.

该工具无需必填参数,直接调用即可

search_data_file

Search any file in the data directory for matching entries.

该工具无需必填参数,直接调用即可

get_file_details

Get details about a file in the data directory.

该工具无需必填参数,直接调用即可

list_data_files

List available data files in the data directory.

该工具无需必填参数,直接调用即可

服务介绍

OSRS MCP 服务器 smithery 徽章

用于与《老学校 RuneScape》(OSRS)Wiki API 和数据文件交互的 MCP 服务器。此服务器通过模型上下文协议提供了搜索 OSRS Wiki 和访问游戏数据定义的工具。

image

image

image

工具

此服务器实现了以下工具:

OSRS Wiki 方法

  1. osrs_wiki_search - 在 OSRS Wiki 中搜索与搜索词匹配的页面
  2. osrs_wiki_get_page_info - 获取 OSRS Wiki 上特定页面的信息
  3. osrs_wiki_parse_page - 获取特定 OSRS Wiki 页面的解析 HTML 内容

游戏数据搜索方法

  1. search_varptypes - 搜索 varptypes.txt 文件,查找存储玩家状态和进度的玩家变量(varps)
  2. search_varbittypes - 搜索 varbittypes.txt 文件,查找从 varps 中存储单个位的变量位(varbits)
  3. search_iftypes - 搜索 iftypes.txt 文件,查找游戏中 UI 使用的界面定义
  4. search_invtypes - 搜索 invtypes.txt 文件,查找游戏中的库存类型定义
  5. search_loctypes - 搜索 loctypes.txt 文件,查找游戏世界中的位置/对象类型定义
  6. search_npctypes - 搜索 npctypes.txt 文件,查找 NPC(非玩家角色)定义
  7. search_objtypes - 搜索 objtypes.txt 文件,查找游戏中的对象/物品定义
  8. search_rowtypes - 搜索 rowtypes.txt 文件,查找在各种界面中使用的行定义
  9. search_seqtypes - 搜索 seqtypes.txt 文件,查找动画序列定义
  10. search_soundtypes - 搜索 soundtypes.txt 文件,查找游戏中的音效定义
  11. search_spottypes - 搜索 spottypes.txt 文件,查找点动画(图形效果)定义
  12. search_spritetypes - 搜索 spritetypes.txt 文件,查找界面中使用的精灵图像定义
  13. search_tabletypes - 搜索 tabletypes.txt 文件,查找界面标签定义

通用数据文件方法

  1. search_data_file - 搜索数据目录中的任何文件以查找匹配项
  2. get_file_details - 获取数据目录中文件的详细信息
  3. list_data_files - 列出数据目录中可用的数据文件

安装

通过 Smithery 安装

要通过 Smithery 自动为 Claude Desktop 安装 mcp-osrs:

bash
npx @smithery/cli@latest install @jayarrowz/mcp-osrs --client claude

先决条件

  • Node.js (v16 或更高版本)
  • npm 或 yarn

安装包

bash

克隆仓库

git clone https://github.com/jayarrowz/mcp-osrs.git
cd mcp-osrs

安装依赖

npm install

构建包

npm run build

与 Claude Desktop 一起使用

将以下内容添加到您的 claude_desktop_config.json 中:

使用 npx

json
{
"mcpServers": {
"osrs": {
"command": "npx",
"args": ["-y", "@jayarrowz/mcp-osrs"]
}
}
}

直接使用 Node.js

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

/path/to/mcp-osrs 替换为您实际的仓库路径。

示例

搜索 OSRS Wiki

javascript
// 搜索关于 Abyssal whip 的信息
const result = await callTool("osrs_wiki_search", {
search: "Abyssal whip"
});

获取页面信息

javascript
// 获取特定 wiki 页面的信息
const pageInfo = await callTool("osrs_wiki_get_page_info", {
titles: "Abyssal_whip"
});### 搜索游戏数据
javascript
// 在对象定义中搜索项目
const items = await callTool("search_objtypes", {
query: "dragon",
page: 1,
pageSize: 10
});

列出可用的数据文件

javascript
// 获取所有数据文件的列表
const files = await callTool("list_data_files", {});

开发

bash

安装依赖

npm install

在开发模式下启动服务器

npm start

构建服务器

npm run build

许可证

此MCP服务器根据MIT许可证授权。这意味着您可以自由使用、修改和分发该软件,但需遵守MIT许可证的条款和条件。更多详情,请参阅项目仓库中的LICENSE文件。

相关 MCP 服务