Foundry VTT MCP桥接器 logo

Foundry VTT MCP桥接器

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

Publisheradambdooley
Repositoryfoundry-vtt-mcp
LanguageTypeScript
Forks
90
Stars
70
Available tools
0
Transport typestdio
Categories
Links
  • Connect tools to AI workflows

    Foundry VTT MCP桥接器 exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    70 stars and 90 forks from the linked repository.

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)

Installation

TypingMind
Prerequisites:

Node.js 18+

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

Use Foundry VTT MCP桥接器 MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Foundry VTT MCP桥接器 is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Foundry VTT MCP桥接器 as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Foundry VTT MCP桥接器 MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "adambdooley-foundry-vtt-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "foundry-mcp-integration"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Foundry VTT MCP桥接器 MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Foundry VTT MCP桥接器 MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Foundry VTT MCP桥接器 to help me with this task?
Foundry VTT MCP桥接器
Sure. I read it.
Here is what I found using Foundry VTT MCP桥接器.

Frequently asked questions

What is the Foundry VTT MCP桥接器 MCP server used for?

Foundry VTT MCP桥接器 is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Foundry VTT MCP桥接器 MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Foundry VTT MCP桥接器 with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Foundry VTT MCP桥接器 MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Foundry VTT MCP桥接器 connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Foundry VTT MCP桥接器 MCP to TypingMind?

Foundry VTT MCP桥接器 runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Foundry VTT MCP桥接器 MCP provide in TypingMind?

Foundry VTT MCP桥接器 exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Foundry VTT MCP桥接器 MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Foundry VTT MCP桥接器 requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇