
艾泽拉斯核心的MCP服务器
概览
一个模型上下文协议(MCP)服务器,为像Claude这样的AI助手提供对AzerothCore数据库和维基文档的只读访问权限。这使AI支持理解生物脚本、SmartAI逻辑、数据库模式和游戏机制的辅助。 该MCP实现了减少令牌使用模式的模式:- : 数据库查询仅返回关键字段(减少75-90%)- : 仅在必要时加载SmartAI/条件类型定义 - : 维基和源代码搜索默认禁用(可通过配置启用) - : AI可以按需探索工具类别,而不必事先加载所有文档 与传统MCP服务器相比,代币使用量减少了96-98%,同时保持了完整功能。
概述(AI 翻译)
一个模型上下文协议(MCP)服务器,为像Claude这样的AI助手提供对AzerothCore数据库和维基文档的只读访问权限。这使AI支持理解生物脚本、SmartAI逻辑、数据库模式和游戏机制的辅助。
主要特色
渐进披露与代币优化
该MCP实施了渐进披露模式以最小化代币使用:
- 默认压缩数据:数据库查询仅返回关键字段(减少75-90%)
- 懒惰加载的参考数据:仅在需要时加载SmartAI/条件类型定义
- 禁用可选工具:维基和源代码搜索默认禁用(可通过配置启用)
- 发现层:AI可以按需探索工具类别,而无需一开始加载所有文档
结果:与传统MCP服务器相比,令牌使用减少了96-98%,同时保持了完整功能。
特色
数据库工具
- query_database - 对世界数据库、字符数据库或认证数据库执行只读SQL查询
- get_table_schema - 检索表结构/列定义
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
AzerothCore MCP Server
A Model Context Protocol (MCP) server that provides AI assistants like Claude with read-only access to AzerothCore databases and wiki documentation. This enables AI-powered assistance for understanding creature scripts, SmartAI logic, database schemas, and game mechanics.
Key Features
Progressive Disclosure & Token Optimization
This MCP implements progressive disclosure patterns to minimize token usage:
- Compacted data by default: Database queries return only essential fields (75-90% reduction)
- Lazy-loaded reference data: SmartAI/condition type definitions loaded only when needed
- Optional tools disabled: Wiki and source code search disabled by default (can enable via config)
- Discovery layer: AI can explore tool categories on-demand rather than loading all documentation upfront
Result: 96-98% reduction in token usage compared to traditional MCP servers while maintaining full functionality.
Features
Database Tools
- query_database - Execute read-only SQL queries against world, characters, or auth databases
- get_table_schema - Retrieve table structure/column definitions
- list_tables - List tables with optional pattern filtering
Creature/NPC Tools
- get_creature_template - Get creature data (compacted by default, use
full=Truefor all 61 fields) - search_creatures - Search creatures by name pattern
- get_creature_with_scripts - Get creature template with associated SmartAI scripts (compacted)
SmartAI Tools
- get_smart_scripts - Retrieve SmartAI scripts (compacted by default, use
full=Truefor all 33 fields) - explain_smart_script - Get documentation for event/action/target types
- trace_script_chain - Debug and visualize SmartAI execution flow, following links, timed action lists, and data triggers
- get_smartai_source - Get actual C++ implementation from SmartScript.cpp for any event/action/target type
- generate_sai_comments - Generate human-readable comments for existing creature/gameobject scripts
- generate_comment_for_script - Generate a comment for a single new script row before inserting
- generate_comments_for_scripts_batch - Generate comments for multiple script rows at once
Spell Lookup Tools
- get_spell_name - Look up a spell name by ID from Keira3’s offline database
- lookup_spell_names - Batch lookup multiple spell names at once
Source Code Tools (Optional - Disabled by Default)
- search_azerothcore_source - Search AzerothCore source code for patterns
- read_source_file - Read specific source files from AzerothCore
- Enable with
ENABLE_SOURCE_CODE=truein .env
Wiki/Documentation Tools (Optional - Disabled by Default)
- search_wiki - Search AzerothCore wiki documentation
- read_wiki_page - Read specific wiki pages
- Enable with
ENABLE_WIKI=truein .env
Additional Entity Tools
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"azerothcore": {
"url": "http://localhost:8080/sse"
}
}
}