wow-site-mcp

wow-site-mcp

Enables querying World of Warcraft character equipment, talents, profile, achievements, and realm lists via Blizzard's API, backed by shared caches and audit logging.

Category
访问服务器

README

wow-site

wow-site is a personal World of Warcraft fan site served at https://wow.batserver.au. It uses hand-authored HTML, CSS and JavaScript with no framework or build step, plus a small dependency-free Node server for the Blizzard character equipment API.

Contents

  • site/index.html — landing page and tool index
  • site/gear-advisor.html — gear advisor tool
  • site/styles.css — shared site theme
  • site/gear-advisor.css / site/gear-advisor.js — gear advisor only
  • site/season-data.js — shared season tracks and Blizzard bonus-ID mapping
  • site/assets/ — favicon and images
  • server.mjs — static delivery, Blizzard API adapter and in-memory caches
  • mcp_server.py — official SDK v2 MCP surface backed by the same character API
  • Dockerfile.mcp / requirements-mcp.txt — isolated MCP sidecar image
  • test/ — Node's built-in test suite

Tools

Gear advisor

Compares the season's gear upgrade tracks against your item level. Move the slider and each rank re-colours as an upgrade, sidegrade or downgrade; each track also reports the first rank that beats you and what it costs in crests.

Season numbers and Blizzard upgrade bonus IDs are patch-specific and live in one place: site/season-data.js.

The character lookup uses Blizzard's server-to-server client credentials flow. Character equipment is cached in memory for five minutes. Simultaneous requests for the same character are coalesced, and Refresh now can bypass the normal cache after a one-minute cooldown. Blizzard media responses and the OAuth token have their own longer-lived caches. Region-specific realm dropdowns come from Blizzard's Realm Index API and are cached for one day. The selector starts with a safe placeholder and a short useful option list, fills in during browser idle time, and keeps the fetched list plus the visitor's last regional selection in browser storage for immediate subsequent visits.

Current Season 2 tracks are resolved from Blizzard's item bonus_list, not inferred from item level. Items without a known current-season bonus are shown as legacy/unknown, while special Ascendant items get an explicit special state. Independently of that provenance, every equipped slot compares its item level with each Season 2 track and shows the first rank on that track that would be a strict item-level upgrade. This detailed comparison is collapsed independently on each item card so the current-path summary remains the primary view.

MCP v2

The public Streamable HTTP endpoint at /mcp uses the official Python SDK v2 and exposes five read-only structured tools:

  • get_character_equipment returns the same character, item, current-path, replacement-threshold, fetch-time, and cache data used by the site.
  • get_character_talents returns the active specialization, hero tree, current class/spec/hero talent selections, and in-game import code.
  • get_character_profile returns compact identity and progression context, including item levels, achievement points, current-season Mythic+ rating, and best runs.
  • get_character_achievements returns completion totals, points, and up to 25 recent achievements without emitting the full multi-thousand-entry history.
  • list_realms returns Blizzard realm IDs, display names, and slugs for a region so an agent can validate lookup inputs.

All tools call the existing internal JSON API, so they share its 60-request per-minute caller limit, five-minute character cache, one-day realm cache, request coalescing, and forced-refresh cooldown. Every tool call, including validation, upstream, and rate-limit errors, is written as structured JSON to container logs and /data/queries.jsonl. Audit records include the query, outcome, duration, cache status, protocol/client metadata, and caller address; they never contain Blizzard credentials or access tokens. The persistent file is created with mode 0640 inside a 0750 state directory.

Run locally

npm test
docker build -t wow-site .
docker run --rm --env-file /path/to/wow-site.env -p 8080:80 wow-site

Then open http://localhost:8080.

Deployment

Production is defined in the infrastructure repository's canonical Compose file at /mnt/docker/infra/config/dockerconfigs/docker-compose.yml, as the wow-site and wow-site-mcp services. Both build from this directory, so a full deploy is:

docker compose -p config -f /mnt/docker/infra/config/dockerconfigs/docker-compose.yml \
  up -d --build wow-site wow-site-mcp

Traefik routes wow.${DOMAIN_PRIMARY} to the site on port 80 and gives the path-specific /mcp route to the MCP sidecar on port 8767.

Production loads ${MOUNT_STATE}/secrets/wow-site.env, containing:

BLIZZARD_CLIENT_ID=...
BLIZZARD_CLIENT_SECRET=...

Optional tuning variables are CHARACTER_CACHE_TTL_SECONDS (default 300), REFRESH_COOLDOWN_SECONDS (default 60), MEDIA_CACHE_TTL_SECONDS (default 86400), REALM_CACHE_TTL_SECONDS (default 86400), and BLIZZARD_TIMEOUT_MS (default 10000).

Notes

  • The site is currently public — no authentication. *.batserver.au resolves to the WAN address, so anything served here is internet-reachable.
  • The public lookup neither saves nor presets a personal character. Persistent personal character state belongs under the reserved /my/ URL prefix, which remains empty and can be put behind auth later.
  • robots.txt disallows crawling.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
mcp-server-qdrant

mcp-server-qdrant

这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。

官方
精选
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选