FantasyGen MCP Server: Make D&D Maps from Your AI Assistant
The FantasyGen MCP server connects the FantasyGen AI fantasy map generator to Claude, ChatGPT, Cursor, VS Code and any other app that speaks the Model Context Protocol (MCP). Ask for a battle map, dungeon, city or world map in the chat, and the assistant prepares it on FantasyGen for you. It is free, read-only and needs no API key.
Server URL
https://fantasygen.net/api/mcp- Transport
- Streamable HTTP (remote)
- Authentication
- None, no API key
- Tools
- create_map, search_map_examples, list_map_styles
- MCP Registry name
- net.fantasygen/fantasygen
- Cost
- Free to connect; 1 free map on sign-up
- Version
- 1.0.0
What the FantasyGen MCP server can do
The server gives your assistant three tools. They only read public FantasyGen information and build links; they never spend credits or change anything in your account.
| Tool | What it does | Example request |
|---|---|---|
| create_map | Turns your description into a ready-to-generate map. Returns a FantasyGen link with the description and art style already filled in. | “Make a battle map of a goblin camp in a misty pine forest.” |
| search_map_examples | Searches the FantasyGen gallery of finished battle, cave, tavern, ship, city and world maps. Returns images, the prompt each map was made with and a “make one like this” link. | “Show me some ice cave maps I could use tonight.” |
| list_map_styles | Lists the 20 map types and 8 art styles, with pricing basics. | “What map styles does FantasyGen have for world maps?” |
How to connect FantasyGen to your AI app
Claude (web and desktop)
- Open Settings → Connectors and choose Add custom connector.
- Name it FantasyGen and paste the server URL:
https://fantasygen.net/api/mcp - Leave the authentication settings empty, save, and turn the connector on in a chat.
Claude Code
Run this in your terminal:
claude mcp add --transport http fantasygen https://fantasygen.net/api/mcpCursor
Add this to ~/.cursor/mcp.json (or the project’s .cursor/mcp.json):
{
"mcpServers": {
"fantasygen": {
"url": "https://fantasygen.net/api/mcp"
}
}
}VS Code
Add this to .vscode/mcp.json in your workspace:
{
"servers": {
"fantasygen": {
"type": "http",
"url": "https://fantasygen.net/api/mcp"
}
}
}ChatGPT and other MCP clients
ChatGPT accepts custom MCP servers when developer mode is turned on: add a new connector with the server URL above and choose no authentication. Other clients that support remote MCP servers over Streamable HTTP, such as Windsurf, work the same way: give them the server URL.
Example prompts to try
- “Use FantasyGen to make a battle map of a flooded dwarven forge with lava channels and a collapsed bridge.”
- “I’m running a pirate one-shot tonight. Find me a ship map, then make one for a ghost ship at night.”
- “Create a parchment-style world map for my campaign: two continents, an inland sea and a frozen north.”
- “Make a watercolor city map of a desert trade city built around an oasis, with a walled palace district.”
- “Which FantasyGen style is best for a printable black-and-white dungeon?”
How map creation works
When you ask for a map, the assistant writes a detailed description, picks one of the 20 map types and a matching art style, and calls create_map. You get a link to the right FantasyGen generator, such as the battle map generator or the world map generator, with the description and style already filled in. Click Generate, sign in if needed, and the map is ready in about 30 seconds to 4 minutes.
Because the map is made on FantasyGen, it is saved to your account. From there you can change it with plain-language edits, add a grid, export it for Roll20 or Foundry VTT, or upscale it to 4K for print. New accounts get 1 free map; after that, maps use credits (1 credit for a 1K map). See FantasyGen pricing for credit packs and plans.
The search_map_examples tool reads the same public gallery you can browse on the FantasyGen inspiration page, so the assistant can show finished maps before you make your own.
FantasyGen MCP server FAQ
Is the FantasyGen MCP server free?
Yes. Connecting the server and using its tools is free and needs no API key or account. Generating the map itself happens on fantasygen.net with a normal account: new accounts get 1 free map, and credit packs start at $4.90.
Does the AI assistant draw the map inside the chat?
No. In this first version the assistant writes the map description and picks a style, then gives you a link. The link opens the FantasyGen generator with everything filled in, and you click Generate there. The finished map stays in your FantasyGen account, where you can edit it, add a grid or export it for a VTT.
Which AI apps work with it?
Any MCP client that supports remote servers over Streamable HTTP: Claude (web, desktop and Claude Code), ChatGPT in developer mode, Cursor, VS Code, Windsurf and others.
What data does the server see?
Only the arguments of each tool call, such as the map description or a search keyword. It does not see the rest of your conversation, does not ask for sign-in and does not store what you send.
What kinds of maps can I ask for?
Battle maps, dungeons, caves, taverns, castles, mansions, temples, libraries, prisons, sewers, ships, villages, cities, kingdoms, islands, continents, hex maps and full world maps, in styles from full-color battlemaps to black-and-white classic plans and parchment atlases.
More FantasyGen map tools
Prefer the website? Browse all fantasy map tools, start with the D&D map generator, or make VTT character tokens with the free token maker. Questions about the MCP server: [email protected].