beamng-modding
Research, scaffold, validate, and package BeamNG.drive mods locally while confining writes to a configured workspace.
Search, read, and synchronize official BeamNG modding documentation with cited sections and cached/offline access.
Search an optional local BeamNG game source read-only for APIs and real usage examples.
Scaffold text-only mod templates for vehicle, vehicle_config, lua_extension, ui_app, level, mission, and mixed mods.
Atomically write bounded UTF-8 mod files inside
BEAMNG_MOD_ROOT, with dry-run and overwrite controls.Statically validate mod structure, JBeam, JSON, materials, metadata, paths, and references.
Validate and create deterministic BeamNG-compatible ZIP packages.
Get evidence-backed best practices by mod type, topic, and severity.
Use MCP resources and workflow prompts for docs, templates, best practices, and latest validation reports.
It never installs mods or changes BeamNG game files, and validation cannot prove runtime/gameplay correctness.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@beamng-modding Plan a BeamNG Lua extension citing official docs"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
BeamNG Modding MCP
A local Model Context Protocol server for researching, scaffolding, reviewing, validating, and packaging BeamNG.drive mods. Official BeamNG documentation results include their source URL and freshness metadata; optional game-source searches are read-only.
Requirements and setup
Node.js 20 or newer
A directory dedicated to your mod projects
cd /Users/joaorodrigues/Documents/beamng-mcp
npm install
npm run buildChoose a workspace. Every server write is confined to this directory:
mkdir -p /absolute/path/to/beamng-mod-workspaceOptional environment variables:
Variable | Purpose |
| Required writable mod workspace |
| Optional read-only BeamNG installation/content root |
| Optional documentation cache location |
Related MCP server: enfusion-mcp
Connect an MCP client
Replace /absolute/path/to/beamng-mod-workspace in these examples.
Codex
The installed Codex CLI can create the stdio registration directly:
codex mcp add beamng-modding \
--env BEAMNG_MOD_ROOT=/absolute/path/to/beamng-mod-workspace \
-- node /Users/joaorodrigues/Documents/beamng-mcp/dist/index.jsAdd optional environment variables by repeating --env. Confirm the registration with:
codex mcp get beamng-moddingStart a new Codex task after adding the server so its tools are discovered.
Claude Desktop
Add this server under mcpServers in Claude Desktop's MCP configuration:
{
"mcpServers": {
"beamng-modding": {
"command": "node",
"args": ["/Users/joaorodrigues/Documents/beamng-mcp/dist/index.js"],
"env": {
"BEAMNG_MOD_ROOT": "/absolute/path/to/beamng-mod-workspace"
}
}
}
}Restart Claude Desktop after saving the configuration.
Cursor
Create .cursor/mcp.json in the project that should use the server:
{
"mcpServers": {
"beamng-modding": {
"command": "node",
"args": ["/Users/joaorodrigues/Documents/beamng-mcp/dist/index.js"],
"env": {
"BEAMNG_MOD_ROOT": "/absolute/path/to/beamng-mod-workspace"
}
}
}
}VS Code
Create .vscode/mcp.json:
{
"servers": {
"beamng-modding": {
"type": "stdio",
"command": "node",
"args": ["/Users/joaorodrigues/Documents/beamng-mcp/dist/index.js"],
"env": {
"BEAMNG_MOD_ROOT": "/absolute/path/to/beamng-mod-workspace"
}
}
}
}Run MCP: List Servers from the Command Palette to start or inspect it.
First use
Populate the local official-documentation index. Either ask the client:
Synchronize the BeamNG modding documentation with
beamng_docs_sync, then find the official guidance for creating a vehicle configuration.
Or run the CLI task with the same environment:
BEAMNG_MOD_ROOT=/absolute/path/to/beamng-mod-workspace npm run docs:syncThe server keeps cached pages available when offline. Refreshes are same-origin and restricted to https://documentation.beamng.com/modding/.
Example requests:
“Plan a BeamNG Lua extension, citing the official docs.”
“Dry-run a vehicle mod scaffold named
rally_buggyinrally-buggy.”“Validate the mod in
rally-buggyand explain every error with sources.”“Search my configured BeamNG source for
onExtensionLoadedexamples.”“Package
rally-buggyasreleases/rally-buggy.zipafter it passes validation.”
Scaffolding and general file writes default to dryRun: true. Ask explicitly to apply the operation after reviewing the planned paths.
Tools
Tool | Purpose |
| Search the synchronized official documentation |
| Read a cached page/section or fetch one approved URL |
| Refresh the bounded documentation cache |
| Search optional local game text files read-only |
| Generate one of seven text-only mod templates |
| Atomically write bounded UTF-8 changes |
| Check structure, JBeam, JSON, materials, references, and metadata |
| Validate and create a deterministic ZIP |
| Return evidence-backed rules by mod type/topic |
The server also publishes documentation, templates, best practices, and the latest validation report as MCP resources, plus four reusable workflow prompts.
Development
npm run checkThe tests cover path traversal and symlink containment, atomic overwrite behavior, documentation extraction/search, tolerant JBeam parsing, all scaffold profiles, deterministic archive layout, and MCP discovery/tool execution.
Safety and limitations
The server never installs mods or changes BeamNG game files.
All authoring paths are relative to
BEAMNG_MOD_ROOT; symlink escapes and traversal are rejected.Static validation cannot prove physics, rendering, Lua runtime behavior, or gameplay correctness. Test the packaged ZIP in BeamNG.drive.
Documentation is incomplete in some areas. Official docs, configured local game source, and curated guidance are always labeled separately.
Available Tools
9 toolsbeamng_best_practicesGet BeamNG modding best practicesCRead-only
Return applicable evidence-backed guidance with explicit source classification.
Inputs: modType (required), topic, severity.
beamng_docs_getRead a BeamNG documentation pageARead-only
Read a cached official page by document ID or approved documentation URL.
Inputs: idOrUrl (required), heading.
beamng_docs_searchSearch BeamNG modding documentationARead-only
Search the synchronized official BeamNG modding documentation and return cited sections.
Inputs: query (required), limit, category.
beamng_docs_syncSynchronize BeamNG documentationB
Refresh the bounded local index from official BeamNG modding pages.
Inputs: force, category, maxPages.
beamng_mod_packagePackage a BeamNG modB
Validate and create a deterministic BeamNG-compatible ZIP archive.
Inputs: output (required), source (required), force, profile, +1 more.
beamng_mod_scaffoldScaffold a BeamNG modC
Create a safe minimal text-only mod structure under the configured workspace.
Inputs: slug (required), author (required), modType (required), destination (required), +4 more.
beamng_mod_validateValidate a BeamNG modARead-only
Statically validate mod structure, JBeam/JSON/materials, metadata, paths, and references.
Inputs: root (required), strict, profile.
beamng_mod_write_filesWrite BeamNG mod text filesADestructive
Atomically write a bounded set of UTF-8 files inside the configured workspace.
Inputs: files (required), dryRun, overwrite.
beamng_source_searchSearch local BeamNG game sourceBRead-only
Search configured, read-only local BeamNG text files for APIs and real usage examples.
Inputs: query (required), limit, patterns.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Most tools have clearly distinct purposes: docs search/get/sync act on documentation, source_search on local source files, and the mod_* tools form a scaffolding→writing→validation→packaging pipeline. The only mild overlap is between beamng_mod_scaffold and beamng_mod_write_files, but scaffold creates structure while write_files writes arbitrary file content, so they are separable.
Names follow a strong snake_case pattern with the beamng_ prefix, and most use a verb-noun construction (docs_search, source_search, mod_validate, mod_package). The slight outlier is beamng_best_practices, which is noun-only and breaks the verb-led pattern.
Nine tools is well within the ideal range for a focused modding server. Each tool contributes a distinct stage or capability: documentation access, source lookup, scaffolding, file writing, validation, packaging, and guidance, without unnecessary bloat.
The toolset covers the core mod creation lifecycle: research docs, scaffold, write files, validate, and package. Minor gaps include lack of a tool to list or read existing mod files in the workspace, and no explicit update/delete operations, but the workflow is otherwise complete for building a mod.
Maintenance
Related MCP Connectors
MCP server for developer documentation, generated by doc2mcp.
MCP server for dev documentation, generated by doc2mcp.
MCP Server for JFrog, providing tools for development and artifact management.
MCP server for developers documentation, generated by doc2mcp.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides comprehensive access to MCP documentation through structured guides, full-text search, and interactive development workflows for building servers and clients.368 npmMIT
- AlicenseNot gradedqualityNot gradedmaintenanceAn MCP server for Arma Reforger and Enfusion engine modding that enables users to create mods, search API classes, and generate scripts through natural language. It provides a comprehensive suite of tools for scaffolding addons, generating prefabs, and building projects using the Workbench CLI.67 npm14-
- AlicenseNot gradedqualityCmaintenanceProvides a local MCP server for searching and retrieving documentation from 22+ open-source projects, enabling AI coding assistants to access up-to-date docs without network dependency.11 npm3MIT
- AlicenseAqualityAmaintenanceA local, security-focused MCP server for Arma Reforger modding, providing AI coding assistants with tools for project discovery, script analysis, resource validation, log diagnosis, API documentation search, file editing, and Workbench automation.132MIT