Gaming & Gamification · AI Chatbot

Foundryvtt MCP

laurigates/foundryvtt-mcp

A Model Context Protocol (MCP) server that integrates with FoundryVTT, allowing AI assistants to interact with your tabletop gaming sessions through natural language.

Install

bunx foundryvtt-mcp

Client configuration

{
  "mcpServers": {
    "foundryvtt": {
      "command": "bunx",
      "args": [
        "foundryvtt-mcp"
      ],
      "env": {
        "FOUNDRY_URL": "<FOUNDRY_URL>",
        "FOUNDRY_USERNAME": "<FOUNDRY_USERNAME>",
        "FOUNDRY_PASSWORD": "<FOUNDRY_PASSWORD>"
      }
    }
  }
}

Environment variables

FOUNDRY_URLFOUNDRY_USERNAMEFOUNDRY_PASSWORD
Category
Gaming & Gamification, AI Chatbot
License
MIT
Updated
Oct 6, 2026

Features

  • Dice Rolling — standard RPG notation with any formula

  • Data Querying — search and inspect actors, items, scenes, journals

  • Game State — combat tracking, chat messages, user presence

  • Content Generation — NPCs, loot tables, rule lookups

  • World Search — full-text search across all game entities

  • Live Connection — Socket.IO loads complete world state on connect

  • MCP Resources — foundry:// URIs for direct data access

  • Diagnostics — optional server health monitoring (requires REST API module)

Tools (31)

  • search_actors

    find characters, NPCs, monsters

  • get_actor_details

    detailed character information

  • search_items

    find equipment, spells, consumables

  • get_scene_info

    current scene details

  • search_journals

    search notes and handouts

  • get_journal

    retrieve a specific journal entry

  • get_combat_state

    combat state and initiative order

  • get_chat_messages

    recent chat history

  • start_combat

    begin a new encounter, seeding combatants from tokens (does not check for an existing combat — calling it during an active one creates a second encounter)

  • next_turn

    advance the active combat to the next turn (wraps to the next round)

  • end_combat

    end (delete) the active combat encounter

  • set_initiative

    set a combatant's initiative in the active combat, moving the turn marker with the acting combatant if the reorder shifts them

  • move_token

    move a token to new x/y coordinates on its scene

  • apply_status_effect

    apply or remove a status condition (e.g. prone, stunned) on a token's actor

  • update_actor_attributes

    patch an actor's system attributes (HP, currency, spell slots, …)

  • create_actor_item

    add an inline item to an actor

  • update_actor_item

    apply a JSON merge patch to an actor's item

  • delete_actor_item

    remove an item from an actor

  • create_journal_entry

    create a journal entry with one or more text pages (GM-only by default; pass visibility to let players read it)

  • search_world

    full-text search across all game entities

  • get_world_summary

    overview of the current world state

  • refresh_world_data

    reload world data from FoundryVTT; needed after a dropped connection, whose missed updates are never replayed into the cache

  • roll_dice

    roll dice; dice terms (NdS) and whole numbers joined by +/-, with unsupported notation (4d6kh3, 1d20r1, *) rejected rather than dropped.

  • lookup_rule

    stub: returns a templated placeholder, consults no rules source

  • generate_npc

    generate NPC text (not written to the world)

  • generate_loot

    generate treasure text for a level (not written to the world)

  • get_recent_logs

    retrieve filtered FoundryVTT logs

  • search_logs

    search logs by pattern, listing the matching entries

  • get_system_health

    server health status with versions, user/module counts, memory and log error counts (no CPU or disk metrics)

  • diagnose_errors

    stub: returns a fixed "no errors detected" summary

  • get_health_status

    comprehensive health diagnostics; flags the world snapshot when the cache has stopped following live changes

Details on this page are taken from the project's README. Open README

Supported clients

Clients mentioned in this server's README:

View all
Claude Desktop logo

Claude Desktop

Desktop · Freemium · Proprietary

Anthropic's official Claude AI desktop application. Supports MCP servers to extend functionality.

WindowsMacOS
VS Code GitHub Copilot logo

VS Code GitHub Copilot

Desktop · Freemium · MIT

VS Code integrates MCP with GitHub Copilot through agent mode, allowing direct interaction with MCP-provided tools in your agentic coding workflow. Configure servers in Claude Desktop, workspace, or user settings, with guided MCP installation and secure handling of secrets in input variables to avoid leaking hardcoded keys.

WindowsMacOSLinuxWeb

Related MCP servers

More servers
HAN JIE logo

HAN JIE

hedge-dev/XenonRecomp

6k

XenonRecomp is a tool that converts Xbox 360 executables into C++ code, which can then be recompiled for any platform.

Gaming & Gamification
Unity MCP logo

Unity MCP

justinpbarnett/unity-mcp

1.8k

Create your Unity apps with LLMs. MCP for Unity bridges AI assistants — Claude, Codex, VS Code, local LLMs, and more — with your Unity Editor via Model Context Protocol. Give your LLM the tools to manage assets, control scenes, edit scripts, run tests, and automate your game dev workflows.

Gaming & Gamification
Unreal MCP logo

Unreal MCP

chongdashu/unreal-mcp

542

This project enables AI assistant clients like Cursor, Windsurf and Claude Desktop to control Unreal Engine through natural language using the Model Context Protocol (MCP).

Gaming & Gamification
MCP Unity logo

MCP Unity

codergamester/mcp-unity

435

MCP Unity is an implementation of the Model Context Protocol for Unity Editor, allowing AI assistants to interact with your Unity projects.

Gaming & Gamification
Unity logo

Unity

arodoid/unitymcp

422

UnityMCP is a powerful Unity Editor plugin that implements the Model Context Protocol (MCP), enabling seamless integration between Unity and AI assistants. It provides real-time editor state monitoring, remote command execution, and comprehensive logging capabilities.

Gaming & Gamification
Godot logo

Godot

coding-solo/godot-mcp

329

Godot MCP enables AI agents to launch the Godot editor, run projects, capture debug output, and control project execution. This direct feedback loop helps agents understand what works and what doesn't in real Godot projects, leading to better code generation and debugging assistance.

Gaming & Gamification