AG

alyxpink/gw2-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

6 stars 4 forks 품질 56 트렌드 14AGPL-3.0

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

개요

A Model Context Provider (MCP) server for Guild Wars 2 that bridges Large Language Models (LLMs) with Guild Wars 2 data sources. - : Search and retrieve content from the Guild Wars 2 wiki - : Access user wallet and currency data via GW2 API - : Efficient caching with appropriate TTL for static and dynamic data - : Respectful API usage with built-in rate limiting - : Modular design for easy feature additions - Go 1.24 or higher - Guild Wars 2 API key (for wallet functionality) The MCP server communicates via stdio (standard input/output): You can configure Claude Desktop, LM Studio, or other LLM tools to interact with the server using this configuration: The server provides the following tools for LLM interaction: Search the Guild Wars 2 wiki for information. - query (required): Search query string - limit (optional): Maximum number of results (default: 5)

README

원문 README의 일부입니다. 원문 보기.

GW2 MCP Server

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

Requirements

  • Go 1.24 or higher
  • Guild Wars 2 API key (for wallet functionality)

Installation

  1. Clone the repository:
git clone https://github.com/AlyxPink/gw2-mcp.git
cd gw2-mcp
  1. Install dependencies:
go mod tidy
  1. Build the server:
go build -o gw2-mcp ./cmd/server

Usage

Running the Server

The MCP server communicates via stdio (standard input/output):

./gw2-mcp

You can configure Claude Desktop, LM Studio, or other LLM tools to interact with the server using this configuration:

{
  "mcpServers": {
    "gw2-mcp": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "alyxpink/gw2-mcp:v1"
      ]
    }
  }
}

MCP Tools

The server provides the following tools for LLM interaction:

1. Wiki Search (wiki_search)

Search the Guild Wars 2 wiki for information.

Parameters:

  • query (required): Search query string
  • limit (optional): Maximum number of results (default: 5)

Example:

{
  "tool": "wiki_search",
  "arguments": {
    "query": "Dragon Bash",
    "limit": 3
  }
}

2. Get Wallet (get_wallet)

Retrieve user’s wallet information including all currencies.

Parameters:

  • api_key (required): Guild Wars 2 API key with account scope
GitHub에서 전체 README 보기

설치

docker run --rm -i alyxpink/gw2-mcp:v1
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "gw2-mcp": { "command": "docker", "args": [ "run", "--rm", "-i", "alyxpink/gw2-mcp:v1" ] } } }