Skip to main content
Glama
PhillypHenning

foundry-rest-api-mcp-server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
FOUNDRY_API_KEYYesSent as the x-api-key header. Must include all five v1 scopes.
FOUNDRY_USER_IDNoScope actions to a Foundry user's permissions. Omit for GM access.
FOUNDRY_CLIENT_IDNoWhich connected world to target. Auto-resolves when exactly one world is online.
FOUNDRY_RELAY_URLNoRelay base URL. Default: https://foundryrestapi.comhttps://foundryrestapi.com

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
foundry_list_worldsA

List all Foundry VTT worlds/clients connected to the relay, including their online status, system, and version info.

foundry_searchA

Search for Foundry entities by name. Returns UUID, documentType, subType, and package. This is the primary way to turn a name into a UUID for use with other tools. Use filter to narrow results, e.g. "Actor" or "documentType:Item,subType:weapon".

foundry_get_entityA

Retrieve a Foundry entity by UUID, or the currently selected token/actor. Returns the full document including system data and embedded items.

foundry_create_entityA

Create a new Foundry entity (Actor, Item, JournalEntry, etc.) with a raw Foundry document. Returns the new entity UUID and document.

foundry_update_entityA

Update an existing Foundry entity by UUID or current selection. Pass only the fields to change.

foundry_delete_entityA

Permanently delete a Foundry entity by UUID or current selection. This action is irreversible.

foundry_modify_actorA

Give/remove items, increase/decrease numeric attributes, or kill (set HP to 0) an actor. Use action to select the operation.

foundry_create_creatureA

Build a dnd5e 5th-edition NPC actor from a friendly schema and create it in Foundry. Returns the new actor UUID and document. Only available when the connected world is dnd5e. ⚠️ Attack schema targets dnd5e v5.2.2 activities model — verify against a live NPC if attacks look wrong.

foundry_manage_folderA

Create or delete a Foundry folder. After creating a folder, pass the returned uuid as the folder argument when creating entities. Limitation: finding existing folders requires structure:read (not in v1 scope) — only freshly-created folder UUIDs are known.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/PhillypHenning/foundry-rest-api-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server