GW2 MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
GW2 MCP Server
A Model Context Protocol server that gives Claude access to Guild Wars 2 game data — Trading Post prices, account info, crafting recipes, wiki lookups, and more.
Built with FastMCP (Python). Runs over stdio, designed for Claude Desktop and Claude Code.
Features
Trading Post
Tool | Description |
| Fuzzy search items by name (supports |
| Current buy/sell prices for an item |
| Order book depth (top N buy and sell listings) |
| Flip profitability after 15% TP tax (margin, ROI) |
| Your open orders and transaction history |
Items & Crafting
Tool | Description |
| Full item metadata (stats, rarity, type, description) |
| Crafting recipe with ingredients and estimated cost |
| Batch resolve up to 200 item IDs to names and details |
Wiki
Tool | Description |
| Search the GW2 Wiki |
| Retrieve wiki page content as plain text |
Account (requires API key)
Tool | Description |
| Account name, world, guilds, creation date, expansions |
| Bank contents with resolved item names |
| Material storage inventory |
| All characters with details |
| Wallet currencies (gold, karma, gems, etc.) |
| Progress on a specific achievement |
Dailies & Events
Tool | Description |
| Today's world bosses (marks completed ones if API key is set) |
| Daily craftable items (marks completed ones if API key is set) |
Resources
Read-only data the LLM can consult for context:
gw2://tp/tax-info— Trading Post tax structure (5% listing + 10% exchange)gw2://currencies— All GW2 currenciesgw2://worlds— Server/world listgw2://professions— Professions with specializations
Prompt Templates
Pre-built workflows that chain multiple tools:
market_analysis— Full market report for an item (price, order book, flip analysis)crafting_cost— Craft vs. buy comparison with ingredient pricingdaily_checklist— Daily world boss and crafting activity tracker
Related MCP server: warframe-mcp
Prerequisites
Python 3.11+
uv (recommended) or pip
Setup
1. Clone the repository
git clone https://github.com/your-username/gw2-mcp-server.git
cd gw2-mcp-server2. Create your configuration
cp .env.example .env3. Get a GW2 API key
Create a new API key with these permissions:
accountcharactersinventoriestradingpostprogressionwallet
Paste the key into your
.envfile:
GW2_API_KEY=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
GW2_LANG=en
LOG_LEVEL=INFOThe API key is optional. Without it, account-related tools are unavailable but everything else works (Trading Post, wiki, items, events).
4. Install dependencies
uv sync5. Test locally
uv run python -m gw2_mcp.serverUsage with Claude Desktop
Add the server to your Claude Desktop configuration (claude_desktop_config.json):
{
"mcpServers": {
"gw2": {
"command": "uv",
"args": [
"run",
"--directory", "/absolute/path/to/gw2-mcp-server",
"python", "-m", "gw2_mcp.server"
]
}
}
}Usage with Claude Code
Add the server to your Claude Code settings (.claude/settings.json):
{
"mcpServers": {
"gw2": {
"command": "uv",
"args": [
"run",
"--directory", "/absolute/path/to/gw2-mcp-server",
"python", "-m", "gw2_mcp.server"
]
}
}
}Configuration
All configuration is done through the .env file:
Variable | Default | Description |
| (none) | Your ArenaNet API key. Optional — account tools require it |
|
| Language for item names and descriptions ( |
|
| Directory for the persistent item index cache |
|
| Logging level ( |
Architecture
gw2_mcp/
├── server.py # FastMCP entry point, wires everything together
├── config.py # .env loading and validation
├── cache.py # In-memory TTL cache manager
├── item_index.py # Persistent item name index (~90k items, disk JSON)
├── clients/
│ ├── gw2_api.py # GW2 API v2 async client (rate limiting, retry, caching)
│ └── wiki.py # GW2 Wiki MediaWiki client (wikitext cleanup)
├── tools/
│ ├── commerce.py # Trading Post tools
│ ├── items.py # Item & recipe tools
│ ├── account.py # Account-authenticated tools
│ ├── events.py # World bosses, dailies
│ └── wiki.py # Wiki search & retrieval
├── resources/
│ └── static.py # Read-only data resources
├── prompts/
│ └── templates.py # Prompt templates
└── utils/
├── converters.py # Copper to gold/silver/copper conversion
└── validators.py # Input validationKey design decisions
Async-first: All API calls use
httpx.AsyncClientwithasyncio.gatherfor batch operations.Dual caching: In-memory with TTL for API responses (5 min to 24h), persistent JSON on disk for the item index.
Rate limiting: Internal cap at 300 req/min with exponential backoff on 429/5xx errors.
Graceful degradation: Works without an API key (account tools return a descriptive error instead of crashing).
Stale-while-revalidate: On API errors, returns expired cache data with a warning rather than failing.
Development
# Install dev dependencies
uv sync
# Run tests
uv run pytest
# Run with debug logging
LOG_LEVEL=DEBUG uv run python -m gw2_mcp.serverLicense
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Live TCG card and decklist prices for AI assistants. 22+ games, no account, ready-to-buy links.
Live crypto + IDX stock market intelligence for AI agents — 19 tools, no API key.
Query your Twitch streams, events, supporters, raids & rankings from an AI assistant via OAuth.
Connect assistants to your workspace knowledge, skills, and work tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with RuneScape 3 and OSRS ecosystems through tools for Grand Exchange prices, player stats, and server data.Apache 2.0
- FlicenseAqualityDmaintenanceProvides AI assistants with real-time access to Warframe game data including world state, item stats, market prices, drop tables, builds, crafting, and farming optimization through 19 tools.191-
- FlicenseAqualityDmaintenanceProvides AI assistants with real-time access to Warframe market data and game information, including item search, orders, statistics, and liquidity estimates.191-
- AlicenseNot gradedqualityCmaintenanceEnables querying Guild Wars 2 game data including items and achievements via natural language, part of the Pipeworx MCP gateway.62 npmMIT