Skip to main content
Glama

NWN MCP Server

License: MIT

An MCP (Model Context Protocol) server for Neverwinter Nights: Enhanced Edition module files (.mod). It wraps neverwinter.nim CLI tools to let AI assistants read, query, and modify NWN modules through structured tool calls.

Features

  • Load and inspect .mod files — areas, creatures, items, dialogs, scripts, placeables, and more

  • Create and edit areas, place objects, write dialogs, build quests

  • Compile scripts, manage journals, link area transitions, and validate modules

  • Bulk operations — rename tags, move or remove objects across areas, and orchestrate complex multi-step changes with natural language

  • Search blueprints across the full resource stack (base game + HAKs + module)

  • Spatial awareness — JSON payload of tile grids, walkable zones, and placed objects for AI reasoning

  • Query and update NWN SQLite campaign databases

  • HTML area reports — interactive visual maps of areas for human review

Bonus: A fully autonomous one-shot adventure creator. Give it a prompt, sit back, and get a playable module — areas painted, NPCs placed, quests written, loot balanced, all hands-free. Use /create-adventure and have fun. (Warning: spoiler-free by design — the DM gets surprised too.)

Designed for two workflows:

  1. AI-assisted module design — You stay in creative control while an AI helps build, modify, and extend your module via natural language.

  2. AI-driven adventure creation — A small, proof-of-concept tool that lets an LLM autonomously generate one-shot adventures for you and your friends — quests, dialogue, areas, and placed content from a high-level prompt. Spoiler-free by design, so the DM can be surprised too. Warning: Fully AI-generated content is best-effort, especially autonomous area painting. There may be dragons!

Related MCP server: rpgmaker-mz-mcp

Prerequisites

  • Node.js v18+

  • neverwinter.nim tools — nwn_erf, nwn_gff, nwn_script_comp, nwn_twoda, nwn_resman_cat

  • Neverwinter Nights: Enhanced Edition (for base game data)

  • MCP-compatible AI client (Claude Code, Claude Desktop, VS Code, etc.)

Installation

1. Clone and build

git clone https://github.com/Txpple/nwn-mcp.git
cd nwn-mcp
npm install
npm run build

2. Download neverwinter.nim tools

Download the latest release for your platform from neverwinter.nim releases and extract the binaries to a folder you'll reference below.

3. Configure your MCP client

Add the server to your MCP client config. The config location depends on your client:

Client

Config file

Claude Code

.claude/settings.json or .mcp.json in your project

Claude Desktop

claude_desktop_config.json

VS Code

MCP settings in .vscode/mcp.json

{
  "mcpServers": {
    "nwn-mcp": {
      "command": "node",
      "args": ["dist/index.js"],
      "cwd": "/path/to/nwn-mcp",
      "env": {
        "NIM_FOLDER_NWTOOLS": "/path/to/neverwinter-nim-tools",
        "NWN_FOLDER_DATA": "/path/to/Neverwinter Nights",
        "NWN_FOLDER_USER": "/path/to/Documents/Neverwinter Nights"
      }
    }
  }
}

Windows paths example:

{
  "NIM_FOLDER_NWTOOLS": "C:/tools/neverwinter.nim/bin",
  "NWN_FOLDER_DATA": "C:/Program Files (x86)/Steam/steamapps/common/Neverwinter Nights",
  "NWN_FOLDER_USER": "C:/Users/you/Documents/Neverwinter Nights"
}

Environment Variables

Variable

Required

Default

Description

NIM_FOLDER_NWTOOLS

Yes

Path to neverwinter.nim binaries

NWN_FOLDER_DATA

Yes

NWN game install directory (base game 2DA/TLK)

NWN_FOLDER_USER

Yes

NWN user documents directory (HAKs, overrides, modules)

MCP_FOLDER_TEMP

No

%TEMP%/nwn-mcp

Temp directory for extracted modules

MCP_FOLDER_USERREPORTS

No

Directory for exported reports

Usage

Once connected, call load_module with a module filename to begin:

load_module("mymodule.mod")

Then use any of the 110+ tools to inspect and modify the module. Ask your AI assistant things like:

  • "Load my module and show me a summary"

  • "Create a forest area with a river running through it"

  • "Place a merchant NPC near the tavern door and give her a shop"

  • "Write a quest where the player retrieves a stolen amulet from a goblin cave"

  • "Add wolves and a bear encounter to the wilderness area"

  • "Go through my custom classes and update descriptions"

  • "Add some new power scripts to my custom feats"

  • "Validate the module and check for broken references"

Changes are written back to the .mod file via repack_module.

Special Commands

  • export_area_report / export_module_report — Generate interactive HTML maps of individual areas or the entire module for visual review in a browser.

  • /create-adventure — Generate a complete one-shot adventure module from a creative prompt. Uses subagents to build areas, place NPCs, write quests, and populate the world autonomously.

Example /create-adventure prompts

/create-adventure I'd like to play an adventure in the wilderness where I fight off
animals and survive the elements. Give a somber tone. I'll be playing solo with a single level 2 character.
/create-adventure I'd like to play an adventure with city streets and thieves' guild
intrigue — sneaking, double-crosses, maybe a heist. Make it fun and cheeky. We'll be playing with a party of
3 level 5 characters.
/create-adventure I'd like to play an adventure where I'm an agent of a wizard society
sent to investigate the society's latest crisis. Classic tabletop style. Solo player,
level 4, lots of investigation and a climactic magical battle.
/create-adventure I'd like a classic dungeon crawl — an old crypt full of undead with
a powerful lich at the end. Make it old school classic gold box style. Party of 4 players around level 6.
/create-adventure Surprise me — you pick the setting, tone, and story. Solo player, level 3.

Just describe the kind of adventure you want to play and your party size and level — the skill takes it from there.

Available Tools

Areas

  • create_area — create a new area with terrain tiles

  • get_area_details — area properties, lighting, weather, music

  • set_area_properties — modify lighting, fog, music, weather

  • paint_tiles — set exact tile IDs on specific positions (direct placement)

  • paint_group — place multi-tile groups (temples, lodges, etc.)

  • adventure_apply_layout — apply a full layout atomically: zones + crossers + features via zone solver (adventure tool)

  • get_tileset_details — tileset info with summary mode (~2KB) or full tile catalog (~60-100KB)

Note: Terrain painting is best-effort — always open the module in the toolset to review painted areas and touch up as needed.

  • visualize_area — spatial JSON payload for AI reasoning

  • export_area_report / export_module_report — HTML visualizations for human review

Object Placement

  • place_creature / place_placeable / place_door / place_waypoint — place objects in areas

  • place_encounter / place_trigger / place_sound / place_store — encounters, triggers, sounds, stores

  • move_object / remove_object / bulk_remove_objects — reposition or remove objects

Blueprints

  • list_blueprints — search base game + HAK + module blueprints

  • create_creature_blueprint / create_item_blueprint — create new blueprints

  • create_encounter_blueprint / create_store_blueprint / create_trap_blueprint — encounters, stores, traps

Dialogs & Quests

  • create_dialog / flatten_dialog / add_dialog_node — write and inspect conversations

  • add_journal_quest / add_journal_entry — build quest journals

  • verify_quest_completability — trace quests from dialog to journal end entry

Scripts

  • write_script / compile_script / read_script_source — NWScript authoring

  • search_scripts / list_script_references — find and trace script usage

Analysis

  • validate_module — check for broken references across the module

  • check_area_connectivity — verify all areas are reachable via transitions

  • get_balance_report — creature difficulty and item values per area

  • suggest_encounter — advisory tool for encounter composition by party level

Module Management

  • load_module / repack_module — load and save modules

  • get_module_info / get_module_summary — module metadata and overview

  • undo_last_change / undo_history — revert recent changes

Adventure Creator

Tools specific to the /create-adventure pipeline for autonomous module building:

  • adventure_generate_layout — procedural area layout generation with feature suggestions (dungeon, cave, dwelling, forest, rural, city, plains, desert, castle, tundra)

  • adventure_apply_layout — atomically apply a generated layout (zones + crossers + features) via the zone solver

  • adventure_list_features — enumerate solver-compatible feature groups for a tileset and style

  • adventure_find_walkable — find guaranteed walkable coordinates in an area region

  • adventure_create_transition — bidirectional portal transitions (single call places lights + waypoints in both areas)

Architecture

.mod file --> nwn_erf (extract) --> temp dir --> nwn_gff (parse GFF to JSON)
  --> in-memory ModuleIndex (tags, scripts, areas, dialogs, creatures, items)
    --> MCP tool handlers serve queries & modifications
      --> nwn_gff (serialize back) --> nwn_erf (repack) --> .mod file

One module is loaded at a time. The server builds a full resource manager stack on load — base game BIFs, module HAKs, user overrides, and module resources — giving tools access to the complete data hierarchy.

All tools carry MCP annotations (readOnlyHint, destructiveHint, idempotentHint) so clients can understand tool behavior. Adventure-creator-specific tools are separated into src/tools/adventure-tools.ts; all other tools are base tools for general module editing.

Scope

Targets non-persistent world modules — single-player and small co-op campaigns. Focused on instanced objects placed in areas (GIT contents). Blueprint modification, palette-level changes, and deep 2DA/ruleset authoring are out of scope. That being said, these are all possible with careful prompts.

Development

npm run dev          # Run with tsx (hot reload)
npm run build        # Compile TypeScript
npm run start        # Run compiled output
npm run test         # Run tests (vitest)
npm run lint         # Lint with Biome
npm run format       # Format with Biome

Troubleshooting

  • neverwinter.nim tools not found — Verify NIM_FOLDER_NWTOOLS points to the directory containing the binaries, not a parent folder.

Support

Acknowledgments

  • Niv at neverwinter.nim for all the awesome stuff he's provided

  • The NWN Discord and Zulip communities

License

MIT License — see LICENSE for details.

Available Tools

125 tools
add_dialog_nodeA

Add a node to an existing dialog. If parentType is 'entry', adds a PC reply linked from that entry. If parentType is 'reply', adds an NPC entry linked from that reply. If parentType is 'dialog', adds a new NPC root entry to the StartingList (use for quest-stage branching with condition scripts). For 'dialog' mode, parentIndex controls insertion position: 0 inserts at the beginning (evaluated first), -1 or omit appends at the end (evaluated last).

Inputs: text (required), dialog (required), parentType (required), parentIndex (required), +2 more.

add_item_propertyB
Idempotent

Add a property to an item blueprint's PropertiesList. Use integer row from itempropdef.2da, or text name to search.

Inputs: resref (required), propertyName (required), param1, subType, +3 more.

add_items_to_containerA
Idempotent

Add items to a placeable container's inventory. Resolves item blueprints from module or base game.

Inputs: area (required), items (required), containerTag (required).

add_journal_entryA

Add an entry to an existing quest. Entries represent journal updates the player sees as the quest progresses.

Inputs: id (required), text (required), questTag (required), end.

add_journal_questC

Add a new quest category to the journal.

Inputs: tag (required), name (required), xp, comment, +1 more.

adventure_apply_layoutA
Idempotent

Apply a complete area layout atomically. Takes the full output of adventure_generate_layout (zones, crossers, suggestedFeatures) and paints everything in one call — terrain zones via the zone solver, crosser paths, and multi-tile feature groups.

Inputs: area (required), layout (required), autoRepack.

adventure_create_transitionA

Create a BIDIRECTIONAL area transition for adventure modules in a single call. Places a useable blue shaft of light (plc_solblue) AND a landing waypoint at BOTH positions simultaneously, guaranteeing the light and waypoint in each area are at the exact same coordinates. The A→B light's OnUsed script plays VFX_FNF_SUMMON_MONSTER_2 and jumps the PC to the waypoint in B. The B→A light does the same back to A. Both scripts are compiled and dialog resrefs are returned. Tag constraints: max 11 chars (resrefs are 'a_at_' and 'a_rt_', both max 16 chars).

Inputs: aX (required), aY (required), bX (required), bY (required), +3 more.

adventure_find_walkableA
Read-onlyIdempotent

Find guaranteed walkable coordinates in an area. Returns positions validated against the walkmesh with correct Z height. Use region to constrain the search to a part of the area.

Inputs: area (required), count, region, avoidEdges.

adventure_generate_layoutA
Read-onlyIdempotent

Generate a procedural area layout with terrain zones, crosser paths, and transition points. Returns data ready to pass to adventure_apply_layout. Encodes all layout rules: perimeter encapsulation, room separation, adjacency validation, walkable ratio. Styles: dungeon (varied rooms + corridors, some L-shapes), cave (smaller rooms, more corridors, maze-like), dwelling (quadrant rooms, fewer corridors, building interior), forest (clearings separated by trees, winding roads), rural (farmland/village, spine roads), city (urban cobblestone, grid roads), plains (open terrain, sparse clearings), desert (arid, cliff borders), castle (fortified exterior, castle walls), tundra (frozen, snow/camp clearings). Returns suggestedFeatures array with pre-validated feature placements.

Inputs: style (required), width (required), height (required), tileset (required), +2 more.

adventure_list_featuresA
Read-onlyIdempotent

List feature groups from a tileset that are compatible with the layout solver. Automatically resolves the floor terrain from the style type (same logic as adventure_generate_layout), then filters out groups with doors, crosser edges, or mismatched terrain corners. Returns only groups safe to pass as preferredFeatures.

Inputs: style (required), tileset (required).

bulk_move_objectsC
Idempotent

Move all objects with a given tag by an offset in an area.

Inputs: tag (required), area (required), offsetX (required), offsetY (required), +2 more.

bulk_remove_objectsA
Destructive

Remove objects matching a tag pattern from one or all areas. Use '*' as wildcard. Default: dry run (preview only).

Inputs: listName (required), tagPattern (required), area, dryRun.

check_area_connectivityA
Read-onlyIdempotent

Check if all areas are reachable from the module start area via door/trigger transitions. Returns reachable/unreachable areas and the transition graph.

Inputs: startArea.

clear_creature_equipmentA
Destructive

Remove all or specific equipment from a placed creature.

Inputs: tag (required), area (required), slot.

clear_item_propertiesA
Destructive

Remove all properties from an item blueprint.

Inputs: resref (required).

clone_resourceC

Clone an existing resource with a new resref.

Inputs: newResref (required), sourceType (required), sourceResref (required).

compile_scriptC
Idempotent

Compile a NWScript (.nss) source file to bytecode (.ncs).

Inputs: resref (required), includePaths.

create_areaB

Create a new area with default terrain tiles. Creates ARE, GIT, and GIC files, registers in module IFO.

Inputs: name (required), width (required), height (required), resref (required), +2 more.

create_area_transitionA

Create a one-way area transition: trigger in source area → waypoint in target area. For two-way transitions, call twice with swapped source/target. Writes and compiles a transition script, places the waypoint, places the trigger, and sets LinkedTo metadata for connectivity checks.

Inputs: tag (required), sourceX (required), sourceY (required), targetX (required), +6 more.

create_creature_blueprintA

Create a new creature blueprint (.utc). Optionally clone from a base game or module creature and apply overrides.

Inputs: tag (required), name (required), resref (required), cr, +20 more.

create_dialogB

Create a new DLG conversation file from a simplified tree structure. Root nodes must be NPC lines (speaker: 'npc'). The tree alternates NPC→PC→NPC.

Inputs: nodes (required), resref (required).

create_encounter_blueprintB

Create a new encounter blueprint (.ute) with a creature spawn list. Encounters spawn creatures when players enter their region, with configurable difficulty, respawning, and creature counts.

Inputs: tag (required), name (required), resref (required), creatures (required), +7 more.

create_factionB

Add a new faction to the module's .fac file with reputation entries for all existing factions.

Inputs: name (required), global, parentId, defaultReputation.

create_item_blueprintA

Create a new item blueprint (.uti) in the module. Optionally clone from a base game or module item and apply overrides.

Inputs: tag (required), name (required), resref (required), baseItem (required), +8 more.

create_journalA

Create a new .jrl file if the module has none. Required before adding quests to a module without an existing journal.

Inputs: resref.

create_moduleA

Create a new empty module (.mod) from the standard template. Includes default event scripts, factions, and palette files. Creates a small starter area for the entry point. Saves to NWN_FOLDER_USER/modules/ and loads the module.

Inputs: name (required), filename (required).

create_store_blueprintA

Create a new store blueprint (.utm) with custom pricing and inventory. Place with place_store and open via script (OpenStore).

Inputs: tag (required), name (required), resref (required), markUp, +6 more.

create_trap_blueprintA

Create a new trap trigger blueprint (.utt) with trap detection/disarm DCs and a default square geometry. Optionally clone from a base game trigger and apply overrides.

Inputs: tag (required), name (required), resref (required), scriptOnEnter (required), +5 more.

delete_areaA
Destructive

Remove an area from the module. Deletes ARE, GIT, and GIC files and unregisters from module IFO. Cannot delete the module entry area. This action is irreversible (no undo support).

Inputs: area (required).

disassemble_scriptB
Read-onlyIdempotent

Disassemble compiled NWScript (.ncs) bytecode.

Inputs: resref (required).

edit_dialog_nodeA
Idempotent

Edit an existing dialog node's text, script, sound, or comment. Supports partial updates — only provided fields are changed. Note: conditions live on links (Active field), not nodes — use modify_gff_field for those.

Inputs: dialog (required), nodeType (required), nodeIndex (required), text, +3 more.

edit_journal_entryB
Idempotent

Modify an existing journal entry's text or completion flag.

Inputs: id (required), questTag (required), end, text.

edit_journal_questA
Idempotent

Modify quest metadata (name, priority, comment, XP). Use add_journal_quest to create new quests.

Inputs: tag (required), xp, name, comment, +1 more.

export_area_reportA
Idempotent

Export a self-contained HTML visualization of a single area to disk. This is a human debugging tool that renders the same spatial data returned by visualize_area — tile walkmesh geometry, material colors, object markers, zone connectivity, creature/placeable cards, and area transitions. Returns the file path to open in a browser.

Inputs: area (required).

export_module_reportA
Idempotent

Export a self-contained HTML report of the entire module to disk. This is a human debugging tool that visualizes the spatial data for all areas: module summary, area transitions overview, and per-area interactive maps with walkmesh geometry, object markers, creature/placeable cards, and zone connectivity. Writes to module-report.html in the module temp dir. Returns the file path.

Inputs: no named parameters.

export_resourceA
Idempotent

Extract a single resource file from the module to a specified path on disk.

Inputs: type (required), resref (required), outputPath (required).

find_dialog_scriptsB
Read-onlyIdempotent

Find all scripts referenced in dialog files (actions and conditions).

Inputs: dialog.

find_orphansB
Read-onlyIdempotent

Find resources that are never referenced by any other resource.

Inputs: no named parameters.

find_strref_usageB
Read-onlyIdempotent

Find which GFF resources reference a given TLK string reference number.

Inputs: strref (required).

find_variable_usageA
Read-onlyIdempotent

Find all scripts that use Get/SetLocal* functions with a given variable name.

Inputs: variableName (required).

fix_object_heightsA
Idempotent

Adjust Z height of all placed objects in an area to match the walkmesh ground plane. Fixes objects that were placed at Z=0 on elevated terrain.

Inputs: area.

flatten_dialogB
Read-onlyIdempotent

Get a human-readable conversation flow showing NPC/PC lines with branching.

Inputs: dialog (required), maxDepth.

get_area_creaturesB
Read-onlyIdempotent

List all creatures placed in a specific area with their stats.

Inputs: area (required).

get_area_detailsA
Read-onlyIdempotent

Get full details for an area including properties, lighting, weather, and music.

Inputs: area (required).

get_area_doorsA
Read-onlyIdempotent

List all doors in a specific area with lock status and destinations.

Inputs: area (required).

get_area_encountersB
Read-onlyIdempotent

List all encounters in a specific area with creature list and spawn conditions.

Inputs: area (required).

get_area_itemsB
Read-onlyIdempotent

List all items placed on the ground in a specific area.

Inputs: area (required).

get_area_placeablesC
Read-onlyIdempotent

List all placeables in a specific area.

Inputs: area (required).

get_area_soundsB
Read-onlyIdempotent

List all sound objects in a specific area.

Inputs: area (required).

get_area_triggersA
Read-onlyIdempotent

List all triggers in a specific area with type, scripts, and linked destination.

Inputs: area (required).

get_area_waypointsB
Read-onlyIdempotent

List all waypoints in a specific area with tag, position, and map note.

Inputs: area (required).

get_balance_reportC
Read-onlyIdempotent

Analyze creature difficulty and item values per area.

Inputs: no named parameters.

get_creature_detailsB
Read-onlyIdempotent

Get full details for a specific creature including stats, feats, equipment, and scripts.

Inputs: tag, area, index.

get_dependency_graphA
Read-onlyIdempotent

Show resource dependency graph. Resources depend on other resources via script references, conversation assignments, etc.

Inputs: resource.

get_dialog_treeB
Read-onlyIdempotent

Get the raw dialog structure for a conversation file.

Inputs: dialog (required).

get_faction_creaturesB
Read-onlyIdempotent

List all creatures that belong to a specific faction.

Inputs: factionId (required).

get_faction_detailsA
Read-onlyIdempotent

List factions and reputation relationships from the module's .fac file.

Inputs: no named parameters.

get_item_detailsB
Read-onlyIdempotent

Get full details for an item blueprint including properties.

Inputs: tag, resref.

get_journalA
Read-onlyIdempotent

Get all journal entries organized by quest/category.

Inputs: no named parameters.

get_module_infoB
Read-onlyIdempotent

Get parsed module.ifo data: areas, entry point, scripts, time settings.

Inputs: no named parameters.

get_module_summaryC
Read-onlyIdempotent

Get a high-level summary of the entire module.

Inputs: no named parameters.

get_resourceA
Read-onlyIdempotent

Get the full content of a resource. Returns GFF as JSON, .nss as source text, .ncs as disassembly.

Inputs: type (required), resref (required).

get_store_detailsB
Read-onlyIdempotent

Get full details for a store including inventory and pricing.

Inputs: resref (required).

get_tileset_detailsA
Read-onlyIdempotent

Get full details for a tileset: terrain types, crosser types, primary rules, all groups with dimensions and tile IDs, and a summary of the tile catalog organized by terrain patterns. Use detail='summary' (default) for a compact ~2KB overview including valid terrain adjacencies. Use detail='full' for the complete tile catalog (~60-100KB).

Inputs: tileset (required), detail.

list_2da_tablesA
Read-onlyIdempotent

List all 2DA tables available in the loaded module.

Inputs: no named parameters.

list_areasA
Read-onlyIdempotent

List all areas in the module with dimensions and object counts.

Inputs: no named parameters.

list_blueprintsA
Read-onlyIdempotent

Search for blueprints across the full resman stack (base game + HAKs + module) by resref, tag, or display name (including TLK-resolved names). Returns type-specific summaries.

Inputs: type (required), pattern (required), limit.

list_creaturesA
Read-onlyIdempotent

List all creatures in the module, optionally filtered by area.

Inputs: area.

list_databasesA
Read-onlyIdempotent

List SQLite database files in the NWN user database folder, with size and table count. Database naming: mod_.sqlite3 for module-level, .sqlite3 for local characters, .sqlite3 for server characters, with _hench_tagid_NNN suffixes for henchmen.

Inputs: no named parameters.

list_itemsB
Read-onlyIdempotent

List all item blueprints in the module.

Inputs: no named parameters.

list_resourcesB
Read-onlyIdempotent

List all resources in the loaded module, optionally filtered by type (extension).

Inputs: type.

list_script_referencesA
Read-onlyIdempotent

Show where scripts are referenced from in GFF files (event handlers, dialog actions, etc.).

Inputs: resref.

list_storesA
Read-onlyIdempotent

List all stores in the module with name and markup.

Inputs: no named parameters.

list_tilesetsA
Read-onlyIdempotent

List all tilesets available via resman. Returns resref, display name, interior/exterior, terrain types, crosser types, group count, and tile count for each.

Inputs: no named parameters.

list_tlk_entriesB
Read-onlyIdempotent

Browse TLK entries with optional substring filter and range. Returns up to 50 entries at a time.

Inputs: count, start, filter, source.

load_moduleA
Idempotent

Load and index a NWN module (.mod) file. Must be called before using other tools. If just a filename is given (e.g., 'mymod.mod'), it is resolved from the NWN_FOLDER_USER/modules/ directory.

Inputs: modPath (required).

modify_gff_fieldB
Idempotent

Modify a field in a GFF resource by dot-path. Example path: 'Creature List.0.ChallengeRating'

Inputs: path (required), type (required), value (required), resource (required), +1 more.

move_objectA
Idempotent

Move an object to a new position in an area. Finds the object by tag (first match) or list index.

Inputs: x (required), y (required), area (required), listName (required), +3 more.

paint_groupB
Idempotent

Place a multi-tile group (e.g. 'Temple_3x2', 'Lodge_2x2') at a grid position. Validates bounds and edge constraints.

Inputs: x (required), y (required), area (required), feature (required).

paint_tilesA
Idempotent

Set exact tile IDs on specific positions. Direct placement, no solving.

Inputs: area (required), tiles (required).

place_creatureB
Idempotent

Place a creature in an area from a UTC blueprint (module or base game). Validates position against walkmesh.

Inputs: x (required), y (required), area (required), blueprint (required), +3 more.

place_doorC
Idempotent

Place a door in an area from a UTD blueprint (module or base game).

Inputs: x (required), y (required), area (required), blueprint (required), +2 more.

place_encounterA
Idempotent

Place an encounter in an area from a UTE blueprint (module or base game). The blueprint's geometry defines the spawn region.

Inputs: x (required), y (required), area (required), blueprint (required), +1 more.

place_placeableA
Idempotent

Place a placeable in an area from a UTP blueprint. Appearance field comes from the blueprint (not defaulted to 0). By default strips event scripts and clears Useable/HasInventory — pass stripScripts='false' to keep blueprint defaults. Use add_items_to_container to enable inventory on placed containers. Enforces 1m collision check — placement fails if another object is within 1m.

Inputs: x (required), y (required), area (required), blueprint (required), +3 more.

place_soundB
Idempotent

Place a sound object in an area from a UTS blueprint (module or base game).

Inputs: x (required), y (required), area (required), blueprint (required), +1 more.

place_storeB
Idempotent

Place a store in an area from a UTM blueprint (module or base game). Stores are typically opened via scripts on NPCs/placeables.

Inputs: x (required), y (required), area (required), blueprint (required), +1 more.

place_triggerB
Idempotent

Place a trigger in an area from a UTT blueprint (module or base game). The blueprint's geometry defines the trigger shape.

Inputs: x (required), y (required), area (required), blueprint (required), +1 more.

place_waypointB
Idempotent

Place a waypoint in an area with optional map note.

Inputs: x (required), y (required), tag (required), area (required), +5 more.

query_databaseA

Run a SQL statement against a NWN SQLite database. Returns rows for SELECT/PRAGMA, or change summary for INSERT/UPDATE/DELETE. Database name can omit the .sqlite3 extension. The main table is 'db' with columns: varname (varchar), playerid (varchar), vartype (tinyint), payload (blob), compressed (bool). vartype codes (ASCII char): 70='F' float, 73='I' int, 74='J' json (SetCampaignJson), 76='L' location (areaId@x:y;z!facing), 79='O' object (StoreCampaignObject, GFF JSON), 83='S' string, 86='V' vector. F/I/L/V are uncompressed ASCII. J/O/S are CPDB/zstd compressed. Compressed rows use CPDB/zstd format — use read_database_object to deserialize blobs.

Inputs: sql (required), database (required), limit, params.

read_database_objectA
Read-onlyIdempotent

Deserialize a compressed GFF blob (creature, item, etc.) from a campaign database. Returns the object as parsed GFF JSON.

Inputs: varname (required), database (required), playerid.

read_script_sourceB
Read-onlyIdempotent

Read the NWScript (.nss) source code for a script.

Inputs: resref (required).

remove_item_propertyB
Destructive

Remove a property from an item blueprint by index in PropertiesList.

Inputs: index (required), resref (required).

remove_items_from_containerA
Destructive

Remove items from a placeable container's inventory by resref (all matching) or by index.

Inputs: area (required), containerTag (required), index, itemResref.

remove_journal_entryB
Destructive

Remove a specific entry from a quest by its ID.

Inputs: id (required), questTag (required).

remove_journal_questB
Destructive

Remove an entire quest category and all its entries from the journal.

Inputs: tag (required).

remove_objectA
Destructive

Remove an object from an area's GIT by tag or list index.

Inputs: area (required), listName (required), tag, index.

rename_tagA
DestructiveIdempotent

Rename a tag across all GFF resources and NWScript source files. Use dryRun=true to preview changes without modifying anything.

Inputs: newTag (required), oldTag (required), dryRun.

repack_moduleC
Idempotent

Repack the extracted module files into a .mod file.

Inputs: outputPath.

resman_statsA
Read-onlyIdempotent

Show the full resman stack for the loaded module: container sizes, file counts, shadowing info, and load order. Useful for diagnosing why a resource isn't loading as expected.

Inputs: detailed.

resolve_2daA
Read-onlyIdempotent

Look up a value in a 2DA table by row index. Returns the full row or a specific column value. Uses base game + HAK 2DA tables loaded via resman.

Inputs: row (required), table (required), column.

resolve_blueprintA
Read-onlyIdempotent

Resolve any resource from the full resman stack (base game BIFs + HAKs + override + development) and return its GFF as JSON. Use this to look up base game or HAK blueprints by resref (e.g., 'nw_cloth001.uti', 'nw_dog.utc', 'plc_chest1.utp').

Inputs: resource (required).

resolve_tlkA
Read-onlyIdempotent

Look up text for a TLK string reference. Checks custom TLK first (strrefs >= 0x01000000), then base game dialog.tlk.

Inputs: strref (required).

search_2daB
Read-onlyIdempotent

Search a 2DA table for rows where a column matches a value (case-insensitive substring match).

Inputs: table (required), value (required), column (required).

search_by_fieldB
Read-onlyIdempotent

Search for GFF fields by name and optionally by value across all parsed resources.

Inputs: fieldName (required), type, value.

search_by_resrefB
Read-onlyIdempotent

Search for resources by resref pattern (case-insensitive substring match).

Inputs: pattern (required), type.

search_by_tagB
Read-onlyIdempotent

Search for resources by Tag value across the entire module.

Inputs: tag (required), exactMatch.

search_scriptsA
Read-onlyIdempotent

Search across all NWScript (.nss) source files for a text pattern.

Inputs: pattern (required), caseSensitive.

search_tlkB
Read-onlyIdempotent

Search TLK entries by text content (case-insensitive substring match).

Inputs: query (required), source.

set_area_propertiesC
Idempotent

Modify area properties: lighting, fog, music, ambient sounds, weather, skybox, day/night cycle. Music/ambient values are IDs from ambientmusic.2da / ambientsound.2da.

Inputs: area (required), skyBox, isNight, musicDay, +20 more.

set_area_scriptsA
Idempotent

Set event scripts on an area's ARE file. Pass empty string to clear a script.

Inputs: area (required), onExit, onEnter, onHeartbeat, +1 more.

set_creature_equipmentA
Idempotent

Set equipment on a placed creature in an area. Merges with existing equipment by default; use replace=true to clear first.

Inputs: tag (required), area (required), equipment (required), replace.

set_faction_reputationA
Idempotent

Modify reputation between two factions. Creates a new entry if none exists.

Inputs: faction1 (required), faction2 (required), reputation (required).

set_module_scriptsB
Idempotent

Set event scripts on the module IFO. Pass empty string to clear a script.

Inputs: Mod_OnModLoad, Mod_OnPlrChat, Mod_OnPlrRest, Mod_OnModStart, +14 more.

suggest_encounterB
Read-onlyIdempotent

Advisory tool: suggest creature compositions for a given party level and size. Read-only, does not modify anything.

Inputs: partyLevel (required), theme, partySize, difficulty.

tlkify_moduleA
Idempotent

Extract all hardcoded strings from the loaded module into a TLK file for localization review. Creates a new module with strref pointers and a companion TLK containing all extracted text.

Inputs: outputTlkPath (required), outputModPath.

trace_dialog_pathB
Read-onlyIdempotent

Follow a specific conversation path by choosing PC reply indices at each step.

Inputs: dialog (required), replyIndices (required).

undo_historyA
Read-onlyIdempotent

View the undo stack — recent GIT mutations that can be reverted.

Inputs: no named parameters.

undo_last_changeA

Revert the most recent GIT mutation (object placement, removal, linking, etc.).

Inputs: no named parameters.

validate_moduleA
Read-onlyIdempotent

Check for broken references across the module (missing scripts, dialogs, items, door links).

Inputs: no named parameters.

verify_quest_completabilityA
Read-onlyIdempotent

Verify that all quests in the journal are mechanically completable. Traces from quest-start dialog through condition/action scripts to the journal end entry. Checks area reachability for quest objectives.

Inputs: no named parameters.

visualize_areaA
Read-onlyIdempotent

Get the spatial awareness payload for an area: tile grid with terrain, materials, crossers, walkability, and features; walkable zones with connectivity and area transition analysis; all placed objects (creatures, placeables, doors, waypoints, triggers, encounters, sounds, stores) with world positions and full properties. Use this for spatial reasoning, quest design, object placement, and area analysis. To generate a human-readable HTML visualization, use export_area_report.

Inputs: area (required).

write_database_objectA
Idempotent

Serialize a GFF JSON document into a compressed blob and store it in a campaign database. Use for persisting creatures, items, or other objects.

Inputs: data (required), varname (required), database (required), playerid.

write_scriptA
Idempotent

Write NWScript (.nss) source code to the module and optionally compile it. Creates or overwrites the .nss file. Use for creating new scripts or editing existing ones.

Inputs: resref (required), source (required), compile.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 125 tools

    Disambiguation3/5

    Most tools target distinct resources and actions, and descriptions are detailed enough to separate close pairs (visualize_area vs export_area_report, resolve_blueprint vs get_resource). However, there are multiple overlapping families: area listing tools (get_area_creatures, get_area_items, list_creatures), three different transition-creation tools (create_area_transition, adventure_create_transition, link_doors), and several object-removal tools (remove_object, bulk_remove_objects, remove_items_from_container) that an agent could easily confuse.

    Naming Consistency3/5

    The dominant pattern is snake_case verb_noun (place_creature, create_journal, list_areas), which is readable and mostly predictable. But the surface mixes many namespaces and verb families — adventure_*, resman_*, tlkify_, paint_, add_ vs create_ vs place_ vs set_ vs edit_ vs modify_ — so an agent cannot reliably infer a tool's category from its verb alone.

    Tool Count1/5

    125 tools is an extreme mismatch for a single MCP server, far beyond the typical 3-15 range, and many are near-duplicates in intent. The surface would almost certainly exceed practical context budgets and make tool selection unreliable.

    Completeness4/5

    Coverage is genuinely broad: module lifecycle, areas/tiles, creatures/items/placeables/doors/triggers/encounters/stores, dialogs, scripts, journals, factions, 2DA/TLK, resman, databases, and validation. Minor gaps exist (e.g., blueprint editing beyond items/creature equipment, no undo for area/structure changes), but the domain surface is close to complete.

    Maintenance

    ActivityInactive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to search, browse, and manage mods across Nexus Mods, mod.io, Thunderstore, and Modrinth, as well as perform local diagnostics like detecting games and parsing crash logs.
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Enables AI assistants to read and write RPG Maker MZ projects directly, covering database, maps, events, and system settings with 119 tools.
      128
      177 npm
      33
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to develop Banner of the Maid mods by reading and modifying game data (characters, items, weapons, skills, dialogue, saves, portraits) and to perform live in-game verification via launching the game, taking screenshots, and clicking by coordinates.
      2
      MIT