Логотип Foundry VTT MCP桥接器

Foundry VTT MCP桥接器

Спільнота
adambdooley

An MCP (Model Context Protocol) server that bridges Foundry VTT data with Claude Desktop, enabling users to chat with their game world data using their own Claude subscription.

Видавецьadambdooley
Репозиторійfoundry-vtt-mcp
МоваTypeScript
Форки
90
Зірки
70
Доступні інструменти
0
Тип транспортуstdio
Категорії
Посилання
  • Підключайте інструменти до робочих процесів із ШІ

    Foundry VTT MCP桥接器 надає можливості MCP, які можуть використовувати сумісні клієнтські ШІ-застосунки та агенти.

  • Доступні інструменти: 0

    Нижче ви можете переглянути дії, які можна викликати, а також їхні назви й описи, якщо сервер їх надає.

  • Готова конфігурація для копіювання

    Скористайтеся прикладами конфігурації, щоб налаштувати цей сервер у вибраному клієнті MCP.

  • Показники інтересу до проєкту з відкритим кодом

    У пов’язаному репозиторії: зірки — 70, форки — 90.

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
  3. At the bottom of the window, add the Manifest URL as: https://github.com/adambdooley/foundry-vtt-mcp/blob/master/packages/foundry-module/module.json and click install
  4. Enable "Foundry MCP Bridge" in Module Management
    • Do not change the module ID or folder name. The MCP backend and the Claude integration both expect the module to live in a directory called foundry-mcp-bridge. Renaming the ID in module.json breaks socket routing and stops Claude from seeing the backend.

Install the MCP Server

bash
# Clone repository
git clone https://github.com/adambdooley/foundry-vtt-mcp.git
cd foundry-vtt-mcp

# Install dependencies and build
npm install
npm run build

Configure Claude Desktop

Add this to your Claude Desktop configuration (claude_desktop_config.json) file:

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

Starting Claude Desktop will start the MCP Server.

Windows Store / MSIX installs: If you installed Claude Desktop from the Microsoft Store, it reads its config from a virtualised path, not %APPDATA%\Claude\. Edit claude_desktop_config.json here instead: %LOCALAPPDATA%\Packages\<...Claude...>\LocalCache\Roaming\Claude\claude_desktop_config.json The automated Windows installer (v0.8.1+) writes to both locations for you. Note that a major Claude Desktop update can reset this container — if your tools disappear after an update, re-run the installer or re-add the mcpServers block at that path.

Getting Started

  1. Start Foundry VTT and load your world
  2. Open Claude Desktop
  3. Chat with Claude about your currently loaded Foundry World

Example Usage

Once connected, ask Claude Desktop:

  • "Show me my character Clark's stats"
  • "Find all CR 12 humanoid creatures for an encounter"
  • "Create a quest about investigating missing villagers"
  • "Roll a stealth check for Tulkas"
  • "What's in the current Foundry scene?"
  • "Create me a small map of a Riverside Cottage in Foundry"

Features

  • 48 MCP Tools that allow Claude to interact with Foundry
  • D&D 5e NPC Creation Suite: Build complete NPCs from prompts — stat block, attacks, saves, auras, and spellcasting
  • Mongoose Traveller 2e (mgt2e) Support: Full actor lifecycle — create/update/delete travellers, NPCs, creatures, and spacecraft with skill shorthand normalisation; creature compendium index with characteristic DMs; weapon-trait enum reference
  • WFRP4e Support: Character reading plus editing — update characteristics, wounds, skills and careers, and add or remove items on existing actors
  • Generic Actor CRUD: manage-actors creates, updates, and deletes actors of any type on any system; also updates and deletes embedded items
  • Character Management: Access stats, abilities, inventory, and detailed entity information
  • Token Manipulation: Move, update, delete tokens and manage status conditions
  • Enhanced Compendium Search: Instant filtering by CR, type, abilities, and more
  • Content Creation: Generate actors, NPCs, and quest journals (with optional folder organisation)
  • World Item Management: Create, list, and update world-level Items; attach items directly to actors
  • Campaign Management: Multi-part quest tracking with progress dashboards
  • Interactive Dice System: Send different dice roll requests to players from Claude
  • Actor Ownership: Manage player permissions for characters and tokens
  • GM-Only: MCP Bridge only connects to Game Master users
  • Map Generation: A portable ComfyUI backend that generates battlemaps from prompts
  • Remote Connections: WebRTC connections initiated through browser (Tested with Google Chrome) to MCP server and ComfyUI
  • Windows and Mac Installers Automated installation of Foundry MCP Server for Claude Dekstop, Foundry MCP Bridge Foundry VTT Module, and ComfyUI backend with dependencies

MCP Tools

  • 1 get-world-info
  • 2 list-scenes
  • 3 get-current-scene
  • 4 get-available-conditions
  • 5 list-compendium-packs
  • 6 list-characters
  • 7 get-character
  • 8 search-character-items
  • 9 get-character-entity
  • 10 get-token-details
  • 11 toggle-token-condition (add / remove)
  • 12 update-token
  • 13 delete-tokens
  • 14 search-compendium
  • 15 get-compendium-item
  • 16 get-compendium-entry-full
  • 17 list-creatures-by-criteria
  • 18 list-journals
  • 19 create-quest-journal
  • 20 update-quest-journal
  • 21 search-journals
  • 22 replace-journal-page
  • 23 link-quest-to-npc
  • 24 list-actor-ownership
  • 25 assign-actor-ownership
  • 26 remove-actor-ownership
  • 27 move-token
  • 28 use-item
  • 29 request-player-rolls
  • 30 generate-map
  • 31 check-map-status
  • 32 cancel-map-job
  • 33 switch-scene
  • 34 update-scene-music
  • 35 manage-playlists (create / update / delete / describe — any system)
  • 36 control-playlist (play / stop / cycle-mode / play-sound / stop-sound)
  • 37 create-actor-from-compendium
  • 38 list-dsa5-archetypes (DSA5 Only)
  • 39 create-dsa5-character-from-archetype (DSA5 Only)
  • 40 create-campaign-dashboard
  • 41 manage-world-items (create / list / update world items, add items to actor, describe system enum schema)
  • 42 manage-effects (create / update / delete ActiveEffects on actors or their items)
  • 43 dnd5e-create-npc (D&D 5e Only)
  • 44 dnd5e-add-feature (D&D 5e Only)
  • 45 dnd5e-add-features-from-compendium (D&D 5e Only)
  • 46 manage-actors (create / update / delete / place actors; update / delete embedded items — any system)
  • 47 wfrp4e-update-actor (WFRP4e Only)
  • 48 wfrp4e-add-items (WFRP4e Only)

Settings

  • Enhanced Creature Index Configure Enhanced Index button leads to Enhanced Creature Index sub-menu (Details below)
  • Map Generation Service Configuration Configure Map Generation button leads to Map Generation Service sub-menu (Details below)
  • Enable MCP Bridge This should be checked by default and the status should show as connected. It can be used to turn off the MCP Bridge connection within the game without the need to disable the add-on itself.
  • Connection Type Can be set to Auto for automatic detection of connection type. Can also be set to force either WebRTC for Internet connections or Websocket for Local connections.
  • Websocket Server Host IP Address of Claude Desktop MCP Server location. Only used for local network websocket connections. Remote Servers use WebRT. Defaults to localhost.
  • Allow Write Operations This will prevent Claude from making any changes to world content and restrict it to reading only
  • Max Actors Per Request This is a failsafe to stop a massive amount of actors being created from one single request. It does not limit the amount of characters being created by multiple requests
  • Show Connection Messages This can turn off the banner messages for connections for Foundry MCP Bridge
  • Auto-Reconnect on Disconnect Will automatically attempt to reconnect if the connection is lost
  • Connection Check Frequency How often it will check connection status

Enhanced Creature Index Sub-menu

  • Rebuild Creature Index This button will rebuild the creature index if there is an issue or it is out of sync with changes in your compendiums
  • Enable Enhanced Creature Index This should be left on as Claude builds additional metadata in the world files to give it better searches
  • Auto-Rebuild Index on Pack Changes Experimental feature that hasn't been fully tested yet

Map Generation Service Sub-menu

  • Service Status There are three buttons for Check Status, Start Service, and Stop Service. These buttons help monitor and control the connection from the Foundry MCP Bridge to the ComfyUI backend which is started by the Claude Desktop application.
  • Auto-start Map Generation Service Controls whether ComfyUI service connection is automatically connected at startup of the Foundry world.
  • Generation Quality Controls the quality of the maps generated by the SDXL checkpoints wiht ComfyUI. Low uses 8 steps of generation, Medium uses 20 steps of generation, and High uses 35 steps. The D&D Battlemaps SDXL Upscale v1.0 Checkpoint used in this image generation recommends using 35 steps but on low end GPUs or GPUs with out CUDA, this generation will take several minutes. These options can give you a trade off to have maps generated faster at the expense of quality.

Architecture

Claude Desktop ↔ MCP Protocol ↔ MCP Server ↔ WebSocket ↔ Foundry Module ↔ Foundry VTT
                                     ↓
                              ComfyUI Service
                              (AI Map Generation)
  • Foundry Module: Provides secure data access within Foundry VTT
  • MCP Server: External Node.js server handling Claude Desktop communication
  • Map Generation Service: A headless ComfyUI backend that is spawned by Claude Desktop
  • No API Keys Required: Uses your existing Claude Desktop subscription

Security & Permissions

  • GM-Only Access: All functionality restricted to Game Master users
  • Configurable Permissions: Control what data Claude can access and modify
  • Session-Based Authentication: Uses Foundry's built-in authentication system

System Requirements

  • Foundry VTT: Version 13
  • Claude Desktop: Latest version with MCP support
  • Claude Pro/Max Plan: Required to connect to MCP servers
  • Operating System: Windows 10/11 (installer), or other OSes/manual Windows install with Node.js 18+ (manual)
  • GPU Requirements: A GPU with at least 8GB of VRAM

Schema Smoke Test

The MCP schema smoke test verifies that tool schemas load correctly and do not enforce overly strict additionalProperties defaults.

bash
npm -w @foundry-mcp/server run build
npm run test:mcp:schema

Support & Development

  • Issues: Report bugs on GitHub Issues
  • YouTube Channel: Subscribe for updates and tutorials
  • Documentation: Built with TypeScript, comprehensive documentation included
  • License: MIT License (Additional Third Party licenses are included for bundled components for the installers)

Встановлення

TypingMind
Передумови:

Node.js 18+

{
  "mcpServers": {
    "adambdooley-foundry-vtt-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "foundry-mcp-integration"
      ]
    }
  }
}

Використовуйте MCP Foundry VTT MCP桥接器 з різними моделями ШІ

TypingMind підключає інструменти MCP на рівні робочого простору, тож після підключення Foundry VTT MCP桥接器 ви можете використовувати це підключення з різними моделями ШІ в TypingMind, не налаштовуючи його окремо для кожної моделі. Ця інтеграція MCP працює локально через конектор MCP TypingMind на вашому пристрої.

Інструкція з налаштування локального конектора

Виберіть цей варіант, якщо серверу MCP потрібен доступ до локальних файлів, програм або приватних ресурсів на вашому комп’ютері.

1

Відкрийте налаштування MCP

У TypingMind перейдіть до розділу «Налаштування», відкрийте «Розширені налаштування», потім «Протокол контексту моделі» й виберіть «Налаштувати конектор».

  1. Відкрийте TypingMind у браузері.
  2. Натисніть значок налаштувань.
  3. Перейдіть до розділу «Розширені налаштування».
  4. Відкрийте розділ «Протокол контексту моделі».
  5. Натисніть «Налаштувати конектор» і виберіть «Цей пристрій».
Екран налаштування конектора MCP у TypingMind з вибраним варіантом «Цей пристрій»
2

Виконайте команду конектора

Виберіть «Цей пристрій», скопіюйте команду з TypingMind і виконайте її в терміналі. Не зупиняйте процес, поки користуєтеся MCP.

  1. Скопіюйте команду налаштування, показану в TypingMind.
  2. Відкрийте «Термінал» у macOS або Windows Terminal у Windows.
  3. Вставте й виконайте команду.
  4. Підтвердьте встановлення пакета, якщо в терміналі з’явиться запит на підтвердження.
  5. Не закривайте вікно термінала й не зупиняйте процес, поки користуєтеся інструментами MCP.
3

Додайте Foundry VTT MCP桥接器 як сервер

Коли статус конектора зміниться на «Готово», натисніть «Редагувати сервери» та вставте конфігурацію сервера MCP.

  1. Зачекайте, доки статус конектора зміниться на «Готово».
  2. Натисніть «Редагувати сервери».
  3. Вставте конфігурацію сервера MCP Foundry VTT MCP桥接器.
  4. Збережіть список серверів.
  5. Якщо хочете переконатися, що конектор досі готовий до роботи, оновіть дані.
Налаштування MCP у TypingMind з активним сервером і кнопкою «Редагувати сервери»
{
  "mcpServers": {
    "adambdooley-foundry-vtt-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "foundry-mcp-integration"
      ]
    }
  }
}
4

Використовуйте підключення з різними моделями

Збережіть список серверів, відкрийте «Плагіни», увімкніть інструменти MCP для Foundry VTT MCP桥接器, а потім виберіть будь-яку підтримувану модель ШІ в TypingMind і використовуйте інструменти в чаті або призначте їх агенту ШІ.

  1. Відкрийте сторінку «Плагіни» в TypingMind.
  2. Увімкніть інструменти MCP для Foundry VTT MCP桥接器.
  3. Почніть чат і виберіть модель ШІ, яку хочете використовувати.
  4. Використовуйте інструменти MCP у чаті або призначте їх агенту ШІ.
  5. За потреби перемикайтеся на іншу модель ШІ без повторного підключення MCP.
Чат TypingMind із використанням увімкнених інструментів MCP і вибраної моделі ШІ
Допоможете з цим завданням через Foundry VTT MCP桥接器?
Foundry VTT MCP桥接器
Звісно. Я це прочитав.
Ось що я знайшов за допомогою Foundry VTT MCP桥接器.

Поширені запитання

Для чого використовується сервер MCP Foundry VTT MCP桥接器?

Foundry VTT MCP桥接器 — це сервер MCP, який дає змогу сумісним клієнтам ШІ отримувати доступ до зовнішніх інструментів і контексту. У TypingMind ви можете додати цей сервер MCP один раз і зробити його інструменти доступними у своєму робочому просторі ШІ.

Чи можу я використовувати сервер MCP Foundry VTT MCP桥接器 з кількома моделями ШІ в TypingMind?

Так. TypingMind підключає інструменти MCP на рівні робочого простору, тому ви можете використовувати Foundry VTT MCP桥接器 з різними моделями ШІ, як-от Claude, ChatGPT, Gemini або іншими моделями, які ви налаштували в TypingMind, без окремого налаштування сервера MCP для кожної моделі.

Навіщо використовувати сервер MCP Foundry VTT MCP桥接器 із TypingMind?

TypingMind — один із найкращих інтерфейсів для чату з великими мовними моделями, адже він об’єднує різні моделі ШІ, промпти, плагіни, агентів ШІ, ключі API та інструменти MCP в одному робочому просторі. Підключивши Foundry VTT MCP桥接器, ви зможете використовувати його інструменти MCP з вибраними моделями та впорядковано працювати з чатами в TypingMind.

Як підключити сервер MCP Foundry VTT MCP桥接器 до TypingMind?

Foundry VTT MCP桥接器 працює через локальний конектор MCP TypingMind. Це найкращий варіант, коли серверу MCP потрібен доступ до локальних файлів, настільних застосунків, інструментів командного рядка або приватних ресурсів на вашому комп’ютері.

Які інструменти надає сервер MCP Foundry VTT MCP桥接器 у TypingMind?

Foundry VTT MCP桥接器 надає можливості MCP, які можна ввімкнути на сторінці «Плагіни» в TypingMind і використовувати в чаті або призначати агентам ШІ.

Чи потрібно ділитися своїми ключами API з TypingMind, щоб використовувати сервер MCP Foundry VTT MCP桥接器?

Ні. TypingMind орієнтований насамперед на локальну роботу й дає вам змогу самостійно обирати постачальників моделей і керувати ключами API, промптами та конфігурацією MCP. Якщо Foundry VTT MCP桥接器 потребує автентифікації, під час створення підключення додайте потрібні заголовки, налаштування OAuth або локальну конфігурацію для цього сервера MCP.

Схожі сервери MCP

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇