Logotipo de Foundry VTT MCP桥接器

Foundry VTT MCP桥接器

Comunidad
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.

Editoradambdooley
Repositoriofoundry-vtt-mcp
IdiomaTypeScript
Forks
90
Estrellas
70
Herramientas disponibles
0
Tipo de transportestdio
Categorías
Enlaces
  • Conecta herramientas a flujos de trabajo con IA

    Foundry VTT MCP桥接器 ofrece funciones MCP que pueden usar los clientes y agentes de IA compatibles.

  • 0 herramientas disponibles

    Explora a continuación las acciones que se pueden invocar, con sus nombres y descripciones cuando el servidor los proporcione.

  • Configuración lista para copiar

    Usa los ejemplos de instalación para configurar este servidor en tu cliente MCP preferido.

  • Indicadores de interés de la comunidad en el repositorio

    70 estrellas y 90 forks en el repositorio enlazado.

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)

Instalación

TypingMind
Requisitos:

Node.js 18+

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

Usa el MCP de Foundry VTT MCP桥接器 con varios modelos de IA

TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que, una vez conectado Foundry VTT MCP桥接器, puedes usarlo con distintos modelos de IA en TypingMind sin tener que configurarlo por separado para cada modelo. Esta integración MCP se ejecuta localmente en tu dispositivo a través del conector MCP de TypingMind.

Guía de configuración para usar el conector local

Usa esta opción si el servidor MCP necesita acceder a archivos locales, aplicaciones o recursos privados de tu ordenador.

1

Abre los ajustes de MCP

En TypingMind, ve a Ajustes, luego a Ajustes avanzados y a Model Context Protocol, y elige Configurar conector.

  1. Abre TypingMind en tu navegador.
  2. Haz clic en el icono de Ajustes.
  3. Ve a Ajustes avanzados.
  4. Abre la sección Model Context Protocol.
  5. Haz clic en Configurar conector y elige Este dispositivo.
Pantalla de configuración del conector MCP de TypingMind con «Este dispositivo» seleccionado
2

Ejecuta el comando del conector

Elige Este dispositivo, copia el comando de TypingMind y ejecútalo en Terminal. Mantén el proceso en ejecución mientras uses MCP.

  1. Copia el comando de configuración que muestra TypingMind.
  2. Abre Terminal en macOS o Windows Terminal en Windows.
  3. Pega y ejecuta el comando.
  4. Acepta la instalación del paquete si Terminal te pide confirmación para continuar.
  5. Mantén el proceso en ejecución en la ventana de Terminal mientras uses las herramientas MCP.
3

Añade Foundry VTT MCP桥接器 como servidor

Cuando el estado del conector sea «Listo», haz clic en «Editar servidores» y pega la configuración del servidor MCP.

  1. Espera hasta que el estado del conector indique «Listo».
  2. Haz clic en «Editar servidores».
  3. Pega la configuración del servidor MCP de Foundry VTT MCP桥接器.
  4. Guarda la lista de servidores.
  5. Actualiza si quieres comprobar que el conector sigue listo.
Ajustes de MCP de TypingMind con un servidor activo y el botón «Editar servidores»
{
  "mcpServers": {
    "adambdooley-foundry-vtt-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "foundry-mcp-integration"
      ]
    }
  }
}
4

Usa la conexión con distintos modelos

Guarda la lista de servidores, abre Plugins, activa las herramientas MCP de Foundry VTT MCP桥接器 y selecciona cualquier modelo de IA compatible en TypingMind para usar las herramientas en el chat o asignárselas a un agente de IA.

  1. Abre la página Plugins en TypingMind.
  2. Activa las herramientas MCP de Foundry VTT MCP桥接器.
  3. Inicia un chat y elige el modelo de IA que quieras usar.
  4. Usa las herramientas MCP en el chat o asígnalas a un agente de IA.
  5. Cambia a otro modelo de IA cuando lo necesites sin volver a conectar MCP.
Chat de TypingMind que usa herramientas MCP activadas con un modelo de IA seleccionado
¿Puedes usar Foundry VTT MCP桥接器 para ayudarme con esta tarea?
Foundry VTT MCP桥接器
Claro. Lo he leído.
Esto es lo que he encontrado con Foundry VTT MCP桥接器.

Preguntas frecuentes

¿Para qué sirve el servidor MCP Foundry VTT MCP桥接器?

Foundry VTT MCP桥接器 es un servidor MCP que permite a los clientes de IA compatibles conectarse a herramientas externas y acceder a información de contexto de fuentes externas. En TypingMind, basta con añadir este servidor MCP una vez para que sus herramientas estén disponibles en tu espacio de trabajo de IA.

¿Puedo usar el servidor MCP Foundry VTT MCP桥接器 con varios modelos de IA en TypingMind?

Sí. TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que puedes usar Foundry VTT MCP桥接器 con distintos modelos de IA, como Claude, ChatGPT, Gemini u otros que hayas configurado en TypingMind, sin configurar el servidor MCP por separado para cada modelo.

¿Por qué usar el servidor MCP Foundry VTT MCP桥接器 con TypingMind?

TypingMind es una de las mejores interfaces de chat con LLM porque reúne varios modelos de IA, prompts, plugins, agentes de IA, claves API y herramientas MCP en un solo espacio de trabajo. Con Foundry VTT MCP桥接器 conectado, puedes usar sus herramientas MCP con tus modelos preferidos y mantener organizado tu trabajo con los chats en TypingMind.

¿Cómo conecto el servidor MCP Foundry VTT MCP桥接器 a TypingMind?

Foundry VTT MCP桥接器 funciona a través del conector MCP local de TypingMind. Es la mejor opción cuando el servidor MCP necesita acceder a archivos locales, aplicaciones de escritorio, herramientas de línea de comandos o recursos privados de tu ordenador.

¿Qué herramientas ofrece el servidor MCP Foundry VTT MCP桥接器 en TypingMind?

Foundry VTT MCP桥接器 ofrece funciones MCP que puedes activar desde la página Plugins de TypingMind y usar en el chat o asignar a agentes de IA.

¿Tengo que compartir mis claves API con TypingMind para usar el servidor MCP Foundry VTT MCP桥接器?

No. TypingMind prioriza el funcionamiento local y te permite mantener el control de tus proveedores de modelos, claves API, prompts y configuración MCP. Si Foundry VTT MCP桥接器 requiere autenticación, añade las cabeceras, los ajustes de OAuth o la configuración local necesarios para ese servidor MCP al crear la conexión.

Servidores MCP relacionados

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇