Labsco
AlyxPink logo

GW2 MCP Server

โ˜… 5

from AlyxPink

Connects Large Language Models (LLMs) with Guild Wars 2 data sources. Requires a Guild Wars 2 API key for wallet functionality.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup

GW2 MCP Server

Add MCP Server gw2-mcp to LM Studio Add MCP Server gw2-mcp to LM Studio

A Model Context Provider (MCP) server for Guild Wars 2 that bridges Large Language Models (LLMs) with Guild Wars 2 data sources.

Features

  • Wiki Search: Search and retrieve content from the Guild Wars 2 wiki
  • Wallet Information: Access user wallet and currency data via GW2 API
  • Smart Caching: Efficient caching with appropriate TTL for static and dynamic data
  • Rate Limiting: Respectful API usage with built-in rate limiting
  • Extensible Architecture: Modular design for easy feature additions

Caching Strategy

The server implements intelligent caching:

  • Static Data (currencies, wiki content): Cached for 24 hours to 1 year
  • Dynamic Data (wallet balances): Cached for 5 minutes
  • Search Results: Cached for 24 hours

Architecture

The project follows Clean Architecture principles:

internal/
โ”œโ”€โ”€ server/          # MCP server implementation
โ”œโ”€โ”€ cache/           # Caching layer
โ”œโ”€โ”€ gw2api/          # GW2 API client
โ””โ”€โ”€ wiki/            # Wiki API client

Development

Code Standards

  • Format code with gofumpt
  • Lint with golangci-lint
  • Write unit tests for core functionality
  • Follow conventional commit messages

Running Tests

go test ./...

Linting

golangci-lint run

Formatting

gofumpt -w .