OSRS MCP Server

OSRS MCP 服务器

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

工具

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

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:

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

先决条件

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

安装包

# Clone the repository git clone https://github.com/jayarrowz/mcp-osrs.git cd mcp-osrs # Install dependencies npm install # Build the package npm run build

与 Claude Desktop 一起使用

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

使用 npx

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

直接 Node.js

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

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

示例

搜索 OSRS Wiki

// Search for information about the Abyssal whip const result = await callTool("osrs_wiki_search", { search: "Abyssal whip" });

获取页面信息

// Get information about a specific wiki page const pageInfo = await callTool("osrs_wiki_get_page_info", { titles: "Abyssal_whip" });

搜索游戏数据

// Search for items in the object definitions const items = await callTool("search_objtypes", { query: "dragon", page: 1, pageSize: 10 });

列出可用的数据文件

// Get a list of all data files const files = await callTool("list_data_files", {});

发展

# Install dependencies npm install # Start the server in development mode npm start # Build the server npm run build

执照

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

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

通过模型上下文协议实现与 Old School RuneScape 游戏数据和 Wiki 的交互,提供搜索 OSRS Wiki 和访问物品、NPC、位置和游戏机制的游戏定义的工具。

  1. Tools
    1. OSRS Wiki Methods
    2. Game Data Search Methods
    3. Generic Data File Methods
  2. Installation
    1. Installing via Smithery
    2. Prerequisites
    3. Installing the package
  3. Usage with Claude Desktop
    1. Using npx
    2. Direct Node.js
  4. Examples
    1. Search the OSRS Wiki
    2. Get Page Information
    3. Search Game Data
    4. List Available Data Files
  5. Development
    1. License

      Related MCP Servers

      • A
        security
        A
        license
        A
        quality
        This server allows users to interact with their Zotero library through the Model Context Protocol, providing tools for searching items, retrieving metadata, and accessing full text using natural language queries.
        Last updated -
        3
        44
        Python
        MIT License
        • Apple
        • Linux
      • -
        security
        F
        license
        -
        quality
        Model Context Protocol server that enables LLMs and AI assistants to retrieve real-time Dota 2 statistics, match data, player information, and game metrics through a standardized interface.
        Last updated -
        4
        Python
        • Linux
      • -
        security
        A
        license
        -
        quality
        A Model Context Protocol server that enables web search, scraping, crawling, and content extraction through multiple engines including SearXNG, Firecrawl, and Tavily.
        Last updated -
        35
        11
        TypeScript
        MIT License
      • -
        security
        A
        license
        -
        quality
        A community-developed Model Context Protocol server that integrates with the Riot Games API to provide League of Legends data, enabling AI assistants to retrieve player information, ranked stats, champion mastery, and match summaries through natural language queries.
        Last updated -
        3
        Python
        MIT License
        • Apple

      View all related MCP servers

      ID: ctkzx8ysig