Hk Mcp

by Abowlchen

232 downloads
Not rated
GitHub

About

Hk Mcp is a third-party MCP (Modular Capability Protocol) server that enables AI agents to query Honor of Kings (王者荣耀) game data, including hero lists, match records, skins, and abilities. It provides a standardized JSON API interface for LLM or agent tools to consume, making…

Details

Author
Abowlchen
Downloads
232
Categories
Other

- Query hero lists, skins, and abilities
- Access match records via unified MCP interface
- Standard JSON format for function calling / LangChain
- No login or authentication needed for public data
- Future support for authorized data (e.g., personal stats)

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Hk Mcp
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Copy the provided JSON configuration into your MCP client (e.g., LangChain Agent, OpenAI Tools UI, AutoGen) and the server is ready to use. No additional parameters are required for current interfaces.

get_hk_list

获取王者荣耀的英雄列表

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "hk mcp": {
            "hk-mcp": {
                "command": "npx",
                "args": [
                    "-y",
                    "hk-mcp"
                ]
            }
        }
    }
}

McpServers

{
    "hk-mcp": {
        "command": "npx",
        "args": [
            "-y",
            "hk-mcp"
        ]
    }
}

💡 为什么需要王者荣耀 MCP Server?

MCP(Modular Capability Protocol)是一种用于智能体调用外部工具的协议,它定义了统一的接口格式,便于语言模型(LLM)或智能体通过工具增强能力。

王者荣耀 MCP Server 的目标是:

🌟 让 AI 智能体可以查询王者荣耀的数据,例如 英雄列表、战绩、皮肤、技能 等。

🧩 提供统一格式的 API 接口,供模型调用(如 LangChain / OpenAI function-calling)。

🔌 未来支持扩展成智能化问答、推荐(如“哪个英雄适合上单?”)。

适合使用场景:

Agent 生成战绩分析报告。

AI 助手自动推荐英雄。

游戏类机器人基于 MCP 实现语音交互等。

-------

🧠 为什么使用王者荣耀 MCP Server?

对于接入 MCP 的 Agent 来说:

| 场景 | 传统方式 | 使用 MCP Server |
| ---------- | ----------- | ------------------------------------------- |
| 查询英雄 | 网页爬取、手动整理 | 一行 JSON,直接调用 |
| 查询战绩 | 无 API 或繁琐抓包 | MCP Server 封装好,智能体直接使用 |
| Agent 工具集成 | 无结构化接口 | 标准 MCP 格式,支持 function calling / LangChain 等 |

简而言之 —— 让智能体可以像调用天气预报一样轻松调用游戏数据。

---

🚀 如何使用 MCP 接口?

你只需要复制如下 JSON 粘贴到你的 MCP Client(如 LangChain Agent、OpenAI Tools UI、AutoGen、ChatGPT Plugins 工具注册器)即可开始使用:
{
  "mcpServers": {
    "hk-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "hk-mcp"
      ]
    }
  }
}
🔧 当前接口无需参数,Agent 可以直接调用。

---

🔐 关于身份验证(未来)


未来若添加以下功能:

玩家战绩

历史战局详情

个人信息/战力数据

由于涉及到用户隐私或授权访问,可能需要传入 API key、openid、session 等参数。

接口定义中可能会变成这样:

{
"name": "get_match_history",
"description": "根据用户ID查询最近战绩",
"method": "GET",
"url": "http://localhost:3000/api/match-history",
"parameters": {
"type": "object",
"properties": {
"openid": {
"type": "string",
"description": "用户 openid,用于查找战绩"
},
"key": {
"type": "string",
"description": "用户授权 token"
}
},
"required": ["openid", "key"]
}
}

---

❓ 常见问题(Q&A)

Q1:只要粘贴 JSON 就能用吗?

✅ 是的,只要你的客户端支持 MCP(如 LangChain Agent、ChatGPT Function、AutoGen),只需粘贴 JSON 注册工具即可。

Q2:目前接口是否需要登录?

❌ 不需要。英雄列表是公开数据。

Q3:未来查战绩是否安全?

✅ 若使用需要授权的数据,接口会设计为仅通过用户提供密钥使用,不会公开调用。

Q4:这个 MCP Server 是官方的吗?

❌ 不是官方,是第三方基于网页公开数据构建,适合开发测试或个人项目使用。
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.