Foundryvtt MCP
F

Foundryvtt MCP

The FoundryVTT MCP Server is a Model Context Protocol server integrated with FoundryVTT, allowing AI assistants to interact with tabletop game sessions via natural language, including rolling dice, querying data, generating content, and managing the game world.
2 points
6.5K

What is the FoundryVTT MCP Server?

This is a Model Context Protocol (MCP) server that allows AI assistants to interact with FoundryVTT game sessions. You can use natural language to query characters, roll dice, generate content, and manage the game world.

How to Use the FoundryVTT MCP Server?

Install and configure the server, then connect it to your FoundryVTT game server. After that, you can use an AI assistant to interact with the game via natural language, such as rolling dice, querying data, or generating content.

Use Cases

Suitable for game masters (GMs) or players who need AI assistance to manage the game, generate content, perform rule lookups, and update the game state in real - time.

Main Features

Dice Rolling
Supports standard RPG dice expressions, such as 1d20+5 or 4d6 drop lowest.
Data Query
Can search for characters, items, scenes, and log entries to obtain relevant information in the game.
Game State Access
Provides real - time access to the current scene, combat state, and world information.
Content Generation
Can generate NPCs, loot, and random encounters to enrich the game experience.
Rule Query
Quickly find game rules and mechanical information, such as spell descriptions or combat rules.
Advantages
Enhance the game experience and make the AI assistant a useful helper for game masters
Support natural language interaction, reducing the technical threshold
Limitations
Requires certain technical setup and configuration
Some advanced features may depend on specific modules

How to Use

Install the Server
Clone the repository and install dependencies: git clone <repository-url> && cd foundry-mcp-server && npm install
Configure Environment Variables
Copy the.env.example file and fill in the relevant parameters according to your FoundryVTT settings, such as FOUNDRY_URL and API key.
Start the Server
Run the npm start command to start the MCP server.

Usage Examples

Rolling Dice
In the game, you can ask an AI assistant to roll dice for you to determine if an attack hits.
Generating an NPC
During the game, you can ask an AI assistant to generate a random NPC merchant.

Frequently Asked Questions

What do I need to use this server?
How to test my settings?
What if I encounter connection problems?

Related Resources

GitHub Repository
Project source code and documentation
FoundryVTT API Documentation
FoundryVTT API reference documentation
MCP Protocol Specification
Official documentation for the Model Context Protocol

Installation

Copy the following command to your Client for configuration
{
  "mcpServers": {
    "foundry": {
      "command": "node",
      "args": ["/path/to/foundry-mcp-server/dist/index.js"],
      "env": {
        "FOUNDRY_URL": "http://localhost:30000",
        "FOUNDRY_API_KEY": "your_api_key_here"
      }
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

K
Klavis
Klavis AI is an open-source project that provides a simple and easy-to-use MCP (Model Context Protocol) service on Slack, Discord, and Web platforms. It includes various functions such as report generation, YouTube tools, and document conversion, supporting non-technical users and developers to use AI workflows.
TypeScript
8.8K
5 points
D
Devtools Debugger MCP
The Node.js Debugger MCP server provides complete debugging capabilities based on the Chrome DevTools protocol, including breakpoint setting, stepping execution, variable inspection, and expression evaluation.
TypeScript
5.5K
4 points
M
Mcpjungle
MCPJungle is a self-hosted MCP gateway used to centrally manage and proxy multiple MCP servers, providing a unified tool access interface for AI agents.
Go
0
4.5 points
N
Nexus
Nexus is an AI tool aggregation gateway that supports connecting multiple MCP servers and LLM providers, providing tool search, execution, and model routing functions through a unified endpoint, and supporting security authentication and rate limiting.
Rust
0
4 points
Z
Zen MCP Server
Zen MCP is a multi-model AI collaborative development server that provides enhanced workflow tools and cross-model context management for AI coding assistants such as Claude and Gemini CLI. It supports seamless collaboration of multiple AI models to complete development tasks such as code review, debugging, and refactoring, and can maintain the continuation of conversation context between different workflows.
Python
15.3K
5 points
O
Opendia
OpenDia is an open - source browser extension tool that allows AI models to directly control the user's browser, perform automated operations using existing login status, bookmarks and other data, support multiple browsers and AI models, and focus on privacy protection.
JavaScript
12.5K
5 points
N
Notte Browser
Certified
Notte is an open-source full-stack network AI agent framework that provides browser sessions, automated LLM-driven agents, web page observation and operation, credential management, etc. It aims to transform the Internet into an agent-friendly environment and reduce the cognitive burden of LLMs by describing website structures in natural language.
16.3K
4.5 points
B
Bing Search MCP
An MCP server for integrating Microsoft Bing Search API, supporting web page, news, and image search functions, providing network search capabilities for AI assistants.
Python
16.3K
4 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
15.7K
4.3 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
15.9K
4.5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
45.3K
4.3 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
24.9K
5 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
20.3K
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
45.1K
4.5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
16.0K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
29.8K
4.8 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2025AIBase