wow-api-mcp

wow-api-mcp

MCP server that exposes structured World of Warcraft API data (functions, deprecated replacements, enums, events, widget methods) to AI agents, enabling querying and exploration of WoW API without wiki parsing.

Category
访问服务器

README

wow-api-mcp

npm version npm downloads License: MIT

MCP server for World of Warcraft API data. Parses the ketho.wow-api VS Code extension's annotations and exposes structured WoW API data through queryable tools — including deprecated functions, replacements, parameter types, return types, game version compatibility, enums, events, and widget methods.

Built to give AI agents (Claude Code, Claude Desktop, etc.) accurate, structured WoW API data without relying on wiki template parsing.

Quick Start

1. Install the VS Code extension

The server reads WoW API data from the ketho.wow-api VS Code extension. Install it first:

code --install-extension ketho.wow-api

2. Add to your MCP client

Claude Code — add to your project's .mcp.json:

macOS / Linux:

{
  "mcpServers": {
    "wow-api": {
      "command": "npx",
      "args": ["wow-api-mcp"]
    }
  }
}

Windows:

{
  "mcpServers": {
    "wow-api": {
      "command": "cmd",
      "args": ["/c", "npx", "wow-api-mcp"]
    }
  }
}

3. Restart your MCP client

Restart Claude Code (or whichever client you're using) and the tools will be available.

Features

  • Deprecated function tracking — know instantly if an API is deprecated, what replaced it, and which patch changed it
  • Full function signatures — parameters with types, optional flags, defaults, and return values
  • Game version awareness — see if a function exists in Mainline, Vanilla, or Mists
  • Namespace browsing — explore all 260+ C_ namespaces
  • Widget API — look up methods for any UI widget class (Frame, Button, etc.)
  • Enum resolution — get actual values for any WoW enum
  • Event payloads — see what parameters each frame event passes

Tools

Tool Description
lookup_api(name) Look up a function by exact or partial name
search_api(query) Full-text search across API names and descriptions
list_deprecated(filter?) List deprecated functions with replacements
get_namespace(name) Get all functions in a C_ namespace (or "list" for all)
get_widget_methods(widget_type) Get widget class methods (or "list" for all)
get_enum(name) Look up enum values
get_event(name) Look up event payload parameters

Usage Examples

> lookup_api("IsSpellKnown")

[DEPRECATED] IsSpellKnown
  Replaced by: C_SpellBook.IsSpellInSpellBook
  Replacement docs: https://warcraft.wiki.gg/wiki/API_C_SpellBook.IsSpellInSpellBook
  Parameters:
    spellID: number
    isPet: boolean
  Returns:
    isInSpellBook: boolean

> lookup_api("C_SpellBook.IsSpellKnown")

C_SpellBook.IsSpellKnown
  Description: Returns true if a player knows a spell...
  Wiki: https://warcraft.wiki.gg/wiki/API_C_SpellBook.IsSpellKnown
  Game versions: Mainline, Vanilla, Mists
  Parameters:
    spellID: number
    spellBank?: Enum.SpellBookSpellBank -- Default = Player
  Returns:
    isKnown: boolean

> list_deprecated("Spell")

9 deprecated function(s) matching "Spell":
IsSpellOverlayed -> C_SpellActivationOverlay.IsSpellOverlayed [patch 11.2.0]
IsPlayerSpell -> C_SpellBook.IsSpellKnown
IsSpellKnown -> C_SpellBook.IsSpellInSpellBook
...

> get_enum("SpellBookSpellBank")

Enum.SpellBookSpellBank:
  Player = 0
  Pet = 1

Data

Indexes the full WoW API from the extension's LuaLS annotations:

  • 8,000+ functions with full signatures, parameters, return types, and wiki links
  • 90+ deprecated functions with replacement function, replacement URL, and deprecation patch version
  • 260 C_ namespaces (C_SpellBook, C_Item, C_Spell, etc.)
  • 860+ widget types with methods (Frame, Button, ScriptRegion, etc.)
  • 843 enums with values (Enum.SpellBookSpellBank, etc.)
  • 1,716 events with payload parameters (ADDON_LOADED, PLAYER_LOGIN, etc.)
  • 1,591 CVars
  • Game version compatibility per function (Mainline, Vanilla, Mists)

Other MCP Clients

Claude Desktop

Add to your config file:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

macOS / Linux:

{
  "mcpServers": {
    "wow-api": {
      "command": "npx",
      "args": ["wow-api-mcp"]
    }
  }
}

Windows:

{
  "mcpServers": {
    "wow-api": {
      "command": "cmd",
      "args": ["/c", "npx", "wow-api-mcp"]
    }
  }
}

VS Code (Copilot / Other MCP Clients)

Add to your workspace .vscode/mcp.json:

macOS / Linux:

{
  "servers": {
    "wow-api": {
      "command": "npx",
      "args": ["wow-api-mcp"]
    }
  }
}

Windows:

{
  "servers": {
    "wow-api": {
      "command": "cmd",
      "args": ["/c", "npx", "wow-api-mcp"]
    }
  }
}

Configuration

Extension Discovery

The server auto-discovers the ketho.wow-api extension from these locations:

  • ~/.vscode/extensions/ (VS Code)
  • ~/.vscode-insiders/extensions/ (VS Code Insiders)
  • ~/.vscode-oss/extensions/ (VS Code OSS / VSCodium)
  • ~/.cursor/extensions/ (Cursor)

If your extension is installed elsewhere, set the WOW_API_EXT_PATH environment variable:

{
  "mcpServers": {
    "wow-api": {
      "command": "cmd",
      "args": ["/c", "npx", "wow-api-mcp"],
      "env": {
        "WOW_API_EXT_PATH": "/path/to/ketho.wow-api-0.22.1"
      }
    }
  }
}

Auto-allow Tools (Claude Code)

To skip permission prompts, add to .claude/settings.local.json:

{
  "permissions": {
    "allow": ["mcp__wow-api__*"]
  }
}

Updating

The server reads from the installed VS Code extension at startup. When the extension updates (typically with major WoW patches):

  1. Update the extension in VS Code
  2. Restart your MCP client

The server picks up the latest data automatically.

Development

To run from source:

git clone https://github.com/Wutname1/wow-api-mcp.git
cd wow-api-mcp
npm install
node src/index.mjs

License

MIT

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选