AF

adambdooley/foundry-vtt-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

88 stars 112 forks 质量 76 趋势 15NOASSERTION

adambdooley/foundry-vtt-mcp 是从 https://github.com/adambdooley/foundry-vtt-mcp. 导入的 MCP 服务器候选

概览

adambdooley/foundry-vtt-mcp 是从 https://github.com/adambdooley/foundry-vtt-mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

通过模型上下文协议(MCP)将 Foundry VTT 连接到 Claude 桌面版,实现由 AI 驱动的战役管理。目前支持《龙与地下城》第五版、《探路者》第二版、《黑暗之谜》第五版、宇宙角色扮演系统、《战锤奇幻角色扮演》第四版和《猫鼬旅行者》第二版。大多数 MCP 工具与系统无关,或具备识别所用系统的功能,但部分 DSA 5 专用工具除外。

概述

Foundry MCP 桥接器支持与你的 Foundry VTT 游戏数据进行自然的 AI 对话:

  • 任务创建:根据提示创建任务,结合你世界和日志中的存在内容
  • 角色管理:查询角色属性、能力和信息
  • 汇编搜索:利用自然语言查找物品、法术和生物
  • 内容创作:根据简单提示生成演员、NPC和任务日志
  • 场景信息:访问当前场景数据和世界细节
  • 骰子协调:带玩家目标的互动掷骰请求
  • 战役管理:多部分任务与战役跟踪

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Foundry VTT MCP Bridge

Connect Foundry VTT to Claude Desktop for AI-powered campaign management through the Model Context Protocol (MCP). It currently supports Dungeons and Dragons Fifth Edition, Pathfinder Second Edition, Das Schwarze Augen Fifth Edition, Cosmere RPG System, Warhammer Fantasy Roleplay 4th Edition, & Mongoose Traveller 2nd Edition. The majority of MCP tools are system agnostic or have features that are aware of the system it is working with, excluding some DSA 5 specific tools.

Overview

The Foundry MCP Bridge enables natural AI conversations with your Foundry VTT game data:

  • Quest Creation: Create quests from prompts that incorporate what exists in your world and journals
  • Character Management: Query character stats, abilities, and information
  • Compendium Search: Find items, spells, and creatures using natural language
  • Content Creation: Generate actors, NPCs, and quest journals from simple prompts
  • Scene Information: Access current scene data and world details
  • Dice Coordination: Interactive roll requests with player targeting
  • Campaign Management: Multi-part quest and campaign tracking
  • Map Generation: Create maps from prompts and automatically upload them into scenes in Foundry VTT using the optional ComfyUI component

Installation

Prerequisites

  • Foundry VTT v13 or v14
  • Claude Desktop with MCP support
  • Windows (for automated installer) or Node.js 18+ for manual installation

Option 1: Windows Installer

Video guide for Windows Installer

  1. Download the latest FoundryMCPServer-Setup-vx.x.x.exe from Releases
  2. Run the installer - it will:
    • Install the MCP server with bundled Node.js runtime
    • Configure the Claude Desktop MCP server settings
    • Optionally install the Foundry module and ComfyUI Map Generation to your VTT installation
    • Choose Cuda version for your GPU type during install
  3. Restart Claude Desktop
  4. Enable “Foundry MCP Bridge” in your Foundry Module Management

Option 2: Mac Installer

  1. Download the latest FoundryMCPServer-vx.x.x.dmg from Releases
  2. Run the package installer inside the dmg - it will:
    • Open DMG and double-click the PKG installer
    • Configure the Claude Desktop MCP server settings
    • Optionally install the Foundry module and ComfyUI Map Generation to your Foundry VTT installation
  3. Restart Claude Desktop
  4. Enable “Foundry MCP Bridge” in your Foundry Module Management

Option 3: Manual Installation

Install the Foundry Module

  1. Open Foundry VTT (v13 or v14)
  2. Select install module in the Foundry Add-ons menu
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "foundry-mcp": { "command": "node", "args": ["path/to/foundry-vtt-mcp/packages/mcp-server/dist/index.js"] } } }