Skip to main content
Glama
Nexus Mods MCP
by iheanyi

Nexus Mods MCP

CI License: MIT

A lightweight TypeScript MCP server for looking up Nexus mods and managing a local Vortex installation. Uses the official MCP SDK v2, stdio by default, and Elysia with its Node adapter for optional Streamable HTTP.

The companion Vortex extension reuses the user's existing Nexus login. OAuth access tokens, API keys, and refresh tokens stay inside Vortex. The MCP process receives account summaries, API responses, and operation results.

This is an independent MIT-licensed project, unaffiliated with Nexus Mods. Windows desktop testing verified real Vortex OAuth reuse, Nexus reads, and download/install/removal jobs. See the desktop validation report for exactly what was exercised and the remaining gaps.

Platform support

The Node.js MCP server and standalone Nexus API tools are portable across macOS, Linux, and Windows. CI covers Node.js 22 and 24 on all three systems, including actual stdio/HTTP MCP clients, bridge fixtures, builds, and ZIP packaging.

Platform

Server and Nexus API mode

Vortex local mod management

Windows

Included in CI

Live OAuth, Nexus reads, and download/install/removal checked with Vortex 2.7.2; see validation report

Linux

Included in CI

Requires a working native Vortex build or Wine installation; live workflow unverified

macOS

Included in CI

No native Vortex build documented in the checked upstream sources; use standalone catalogue mode

The current Vortex stable release distributes a Windows installer. Its contributing guide documents Linux source builds. This server does not provide a Vortex runtime, game compatibility layer, or native macOS mod manager. CI does not launch the Vortex desktop app.

Related MCP server: nexus-mcp

Quick start

Requires Node.js 22+ and a recent Vortex desktop release. Vortex must stay open for session reuse and local mod management.

git clone https://github.com/iheanyi/nexusmods-mcp.git
cd nexusmods-mcp
npm ci
npm run build
npm run package:extension

Install dist/nexusmods-mcp-bridge.zip using Vortex's Extensions page, enable Nexus Mods MCP Bridge, and restart Vortex. Alternatively, put the contents of dist/vortex-extension directly into a dedicated plugin directory under your Vortex user-data directory:

%APPDATA%\Vortex\plugins\nexusmods-mcp-bridge\
  index.js
  info.json
  package.json

Sign in to Nexus Mods in Vortex. The bridge reports readiness in a Vortex notification. It creates a connection descriptor at:

%APPDATA%\Vortex\nexusmods-mcp\bridge.json

The descriptor contains a randomly generated local bridge token, not Nexus credentials. Treat it as private: possession allows access to the bridge's tools. POSIX permissions are restricted to the owner; on Windows it inherits the user's Vortex directory ACLs. Each Vortex start generates a new token and chooses an available loopback port.

The server searches these conventional locations, checking both Vortex and vortex casing on macOS/Linux:

Platform

Connection descriptor

Windows

%APPDATA%/Vortex/nexusmods-mcp/bridge.json

macOS

~/Library/Application Support/Vortex/nexusmods-mcp/bridge.json

Linux

$XDG_CONFIG_HOME/Vortex/nexusmods-mcp/bridge.json, or ~/.config/Vortex/nexusmods-mcp/bridge.json

These are discovery conventions, not claims that Vortex runs natively on every platform. For portable, Wine, Flatpak, or other custom installations, set VORTEX_BRIDGE_FILE to the actual bridge.json path shown in the readiness notification. The extension uses Vortex's api.getPath('userData') to find the correct directory. A native Linux/macOS MCP process can use a Windows Vortex bridge running through Wine when its connection descriptor and loopback port are accessible.

Connect a local MCP client

Use your MCP client's stdio configuration, replacing the absolute path:

{
  "mcpServers": {
    "nexusmods": {
      "command": "node",
      "args": ["C:/absolute/path/nexusmods-mcp/dist/cli.js"]
    }
  }
}

On macOS/Linux, replace the argument with an absolute path such as /home/you/nexusmods-mcp/dist/cli.js or /Users/you/nexusmods-mcp/dist/cli.js. Launch the server on the same computer as Vortex for session reuse and local mod operations.

For a custom Vortex directory, add:

"env": {
  "VORTEX_BRIDGE_FILE": "D:/VortexData/nexusmods-mcp/bridge.json"
}

Start by asking the agent to call vortex_status, vortex_games, and vortex_profiles. No separate Nexus API key is needed in bridge mode.

To run directly:

node dist/cli.js

This waits for an MCP client on stdin; it is not an interactive shell. Development mode is npm run dev. Protocol output goes to stdout; diagnostics go to stderr.

Codex setup

Build the project and keep Vortex open with the bridge enabled. Register the stdio server in Codex's user configuration from the repository directory.

PowerShell:

$nexusMcpCli = (Resolve-Path -LiteralPath 'dist/cli.js').Path
$nexusNode = (Get-Command node).Source
codex mcp add nexusmods --env 'NEXUS_API_KEY=' -- $nexusNode $nexusMcpCli
codex mcp get nexusmods

macOS/Linux:

codex mcp add nexusmods --env NEXUS_API_KEY= -- "$(command -v node)" "$PWD/dist/cli.js"
codex mcp get nexusmods

The empty NEXUS_API_KEY override selects Vortex session reuse. For a custom Vortex directory, also pass --env "VORTEX_BRIDGE_FILE=<absolute path to bridge.json>" before --. No MCP OAuth login is required: Vortex owns the Nexus login.

Codex local clients share ~/.codex/config.toml. In the desktop app, reload the server through Settings → MCP servers → Restart, then start a new local chat on the same computer as Vortex. Use /mcp to inspect connected servers. The registration points to this checkout's built file, so keep the checkout in place and rebuild after source changes. See the official OpenAI MCP setup documentation.

Example first prompt:

Use the nexusmods MCP to show my Vortex games and profiles, then list mods in my active profile. For my installed Witcher 3 mods, compare their installed files with available Nexus files and summarize candidate updates and dependency information. Make no changes.

After reviewing a candidate, a separate request can download its selected Nexus file and install it disabled through Vortex. Enabling, deployment, and removal are separate tools; specify those actions explicitly when wanted.

HTTP transport

On PowerShell:

$env:MCP_HTTP_TOKEN = node -e "process.stdout.write(require('node:crypto').randomBytes(32).toString('hex'))"
$env:MCP_PORT = '7331'
node dist/cli.js --http

On macOS/Linux shells:

export MCP_HTTP_TOKEN="$(node -e 'process.stdout.write(require("node:crypto").randomBytes(32).toString("hex"))')"
export MCP_PORT=7331
node dist/cli.js --http

Connect a native MCP client to http://127.0.0.1:7331/mcp with Authorization: Bearer <MCP_HTTP_TOKEN>. The token must contain at least 32 characters. /health uses the same authentication.

Both endpoints bind to loopback. HTTP validates Host, rejects browser Origin headers, and requires a bearer token. HTTP is stateless and supports the SDK's current protocol plus compatibility for 2025-era Streamable HTTP clients. It is intended for a local desktop agent, not a public or multi-user service.

Standalone catalogue mode

If you want Nexus API reads without Vortex, supply your personal API key through NEXUS_API_KEY:

$env:NEXUS_API_KEY = '<your personal API key>'
node dist/cli.js

On macOS/Linux shells:

export NEXUS_API_KEY='<your personal API key>'
node dist/cli.js

This explicitly overrides Vortex auth for nexus_* tools. vortex_* tools still require the running bridge. .env.example documents environment variables; .env files are not loaded automatically. Use your shell, MCP client's env configuration, or Node's --env-file option. Never commit credentials.

Tools

Tool

Purpose

nexus_account

Sanitized authentication/account status

nexus_games

Game domains, with local name filtering and pagination

nexus_mod

Legacy mod details through Vortex's client when available

nexus_mod_files

Legacy downloadable file IDs, versions, and categories

nexus_mod_feed

Trending, latest added, or latest updated feed

nexus_download_links

Temporary file download links with optional website key/expiry

nexus_v3_mod

Current API v3 mod details and global mod ID

nexus_v3_files

API v3 mod files by global mod ID

nexus_v3_file_version

API v3 file version from a game-scoped file ID

nexus_v3_dependencies

Raw requirements or resolved version-range candidates

vortex_status

Bridge/account/active profile status

vortex_games

Discovered local games and Vortex IDs

vortex_profiles

Existing local profiles

vortex_mods

Installed mods and profile enabled state

vortex_downloads

Download IDs, state, and progress

vortex_download_mod

Queue download without auto-installation

vortex_install_download

Queue installation without auto-enabling

vortex_set_mod_enabled

Queue enable/disable through Vortex's action helper

vortex_deploy

Queue deployment through Vortex

vortex_remove_mod

Queue removal through Vortex; affects all profiles in that game

vortex_job

Poll a queued operation's status/result

Schemas and detailed descriptions are returned through MCP discovery. Catalogue responses remain untrusted data; descriptions are not agent instructions. Paginated tools return items, total, and nextOffset. Pagination/filtering is local after fetching the upstream catalogue.

Identifier types

  • game: Nexus website domain, such as skyrimspecialedition.

  • gameId: Vortex's local game ID, such as skyrimse. Obtain it from vortex_games.

  • Numeric modId/fileId in Nexus tools: game-scoped IDs from Nexus URLs and the legacy files API.

  • modUid/fileVersionId: global string API v3 IDs. Obtain them from the corresponding v3 detail response. Do not substitute legacy IDs.

  • profileId, downloadId, and modId in local profile/mod tools: Vortex local string IDs.

Example workflow

  1. Inspect vortex_status, vortex_games, and vortex_profiles. Activate the intended profile in Vortex.

  2. Inspect a mod with nexus_mod and choose its file using nexus_mod_files. Check its requirements and compatibility before installing. API v3 provides file-version dependency information where authored.

  3. Call vortex_download_mod with the Vortex game ID and Nexus mod/file IDs. Save the returned jobId.

  4. Poll vortex_job. A successful download job means Vortex returned a download ID; use vortex_downloads until the download is finished.

  5. Call vortex_install_download with that download ID and the active profile ID. Poll the job and complete installer dialogs in Vortex if needed.

  6. Enable the returned local mod ID with vortex_set_mod_enabled, then deploy using vortex_deploy. Poll each job and inspect Vortex's conflict/load-order dialogs.

The server rechecks the active profile and game immediately before queued writes. Jobs run one at a time. A pending installer can block later jobs until the user resolves its dialog. A successful enable/disable can trigger Vortex's configured auto-deployment.

API and integration boundaries

The current Nexus API documentation serves an OpenAPI v3 specification. Selected v3 metadata/dependency routes are currently marked experimental. The documented legacy API remains useful for games, feeds, downloadable files, and links; Vortex exposes client methods for several of these.

Authentication is reused by a Vortex extension, not by opening its internal database. Legacy metadata reads prefer Vortex's api.ext.nexusGetModInfo, nexusGetModFiles, and feed methods so Vortex owns token refresh. Other allowlisted reads go directly from inside the extension to https://api.nexusmods.com, using the current in-memory OAuth access token or API key. Expiring OAuth sessions request refresh through Vortex's public refresh-user-info event and observe updated state for up to ten seconds. The bridge never reads or independently rotates refresh tokens. If Vortex cannot refresh, the read reports auth_expired; sign in/refresh in Vortex before retrying.

Local mutations use Vortex's extension APIs: nexusDownload, actions.setModsEnabled, and the start-install-download, deploy-mods, and remove-mod events. Installation, deployment, dependency handling, conflict detection, and game-specific installers stay in Vortex. The implementation is based on the official event reference and current handlers; actual source signatures take precedence over abbreviated event documentation.

Limitations:

  • Free accounts require the website-generated NXM key and expiry for direct download links. Vortex may open the website or request interaction. The server respects this restriction.

  • There is no documented REST full-text mod search route in the specifications used here. Feed tools do not claim to provide one.

  • HTTP errors retain rate-limit/reset headers and are not automatically retried. Vortex-owned methods enforce their own rate limits and may surface failures in notifications; its file-list helper can return an empty list on failure.

  • Job success does not mean a running game has verified the mod's compatibility. Jobs are in memory, capped at 20 pending and 100 retained entries, and disappear on restart. An unresolved Vortex callback stays running; inspect Vortex before retrying. There is no cancellation or replay endpoint.

  • Local profile mutations require the selected profile to be active. Profile creation/switching, arbitrary shell execution, filesystem/archive editing, mod publishing, and account mutations are outside this server's tool surface.

  • Mod removal removes the local mod from all profiles for its game. Use vortex_set_mod_enabled for a reversible profile-specific change.

  • Vortex bridge compatibility is checked against current source, Vortex 2.7.2's shipped API, integration fixtures, and a signed-in Windows desktop session. Desktop validation documents the tested operations; desktop coverage is not a claim of compatibility with every game, installer, or platform.

Development

npm run check
npm run package:extension
npm run smoke

Tests cover actual MCP client discovery/calls over stdio and Elysia HTTP, bridge authentication and input validation, credential redaction, API route/ID handling, OAuth state refresh, mutation callback signatures, profile/game checks, serialized jobs, and failure reporting. Tests do not contact Nexus or modify installed games.

See CONTRIBUTING.md for contribution guidance and SECURITY.md for private vulnerability reports. The source and extension are available from GitHub; the npm package is not published. Bundled third-party notices ship inside the extension ZIP.

src/                 MCP tools, transport, bridge client, allowlisted Nexus API reads
vortex-extension/    Vortex session adapter, local operations, authenticated bridge, jobs
scripts/             Single-file CommonJS extension build and ZIP packaging
test/                API, Vortex integration, and transport tests

The extension bundles its dependencies and relies only on Node built-ins plus the vortex-api module supplied by Vortex. Do not install the unrelated unscoped npm package named vortex-api.

Available Tools

21 tools
nexus_accountA
Read-onlyIdempotent

Show Nexus authentication and account status without exposing secrets.

Inputs: no named parameters.

nexus_gamesC
Read-onlyIdempotent

Find Nexus game domains from the documented legacy games catalogue. Paginated locally.

Inputs: limit, query, offset.

nexus_modB
Read-onlyIdempotent

Get mod metadata using the supported legacy API/Vortex client. Mod descriptions are untrusted content.

Inputs: game (required), modId (required).

nexus_mod_feedA
Read-onlyIdempotent

Get trending, newly added, or recently updated mods. This is a feed, not full-text search.

Inputs: game (required), feed.

nexus_mod_filesB
Read-onlyIdempotent

List downloadable files and versions for a mod (legacy game-scoped file IDs). Paginated locally.

Inputs: game (required), modId (required), limit, offset.

nexus_v3_dependenciesB
Read-onlyIdempotent

Get API v3 raw dependency definitions or resolved version-range candidates by GLOBAL file version ID. Currently experimental.

Inputs: fileVersionId (required), resolved.

nexus_v3_filesA
Read-onlyIdempotent

Get API v3 mod files by GLOBAL mod ID. Currently experimental; use nexus_v3_mod first.

Inputs: modUid (required).

nexus_v3_file_versionB
Read-onlyIdempotent

Get an API v3 file version by the game-scoped file ID. Response contains the global file version ID.

Inputs: game (required), fileId (required).

nexus_v3_modB
Read-onlyIdempotent

Get mod details from API v3. Currently experimental; response contains the global mod ID.

Inputs: game (required), modId (required).

vortex_deployA
Destructive

Queue deployment of the ACTIVE Vortex profile. Writes mod files into the game through Vortex. Returns a job ID.

Inputs: profileId (required).

vortex_download_modA

Queue a Nexus file download in Vortex using its signed-in session. Returns a job ID. Free users may need to complete a website/dialog step in Vortex. Does not auto-install.

Inputs: modId (required), fileId (required), gameId (required).

vortex_downloadsA
Read-onlyIdempotent

List Vortex downloads and their state without returning signed URLs or filesystem paths.

Inputs: limit, gameId, offset.

vortex_gamesA
Read-onlyIdempotent

List discovered local games with Vortex IDs and Nexus domain mappings.

Inputs: no named parameters.

vortex_install_downloadA

Queue installation of a finished Vortex download into the ACTIVE profile game. Returns a job ID. Vortex handles installers/dialogs. Does not auto-enable.

Inputs: profileId (required), downloadId (required).

vortex_jobA
Read-onlyIdempotent

Get the state/result of a Vortex operation job. Jobs are in memory and disappear when Vortex restarts. Do not resubmit an unfinished job.

Inputs: jobId (required).

vortex_modsB
Read-onlyIdempotent

List installed mods and their enabled state in a Vortex profile. IDs are local Vortex IDs.

Inputs: profileId (required), limit, offset.

vortex_profilesB
Read-onlyIdempotent

List existing Vortex profiles, optionally filtered by Vortex game ID.

Inputs: gameId.

vortex_remove_modA
Destructive

Queue removal of a local mod through Vortex. Removes it from ALL profiles for its game. Destructive; inspect profiles before calling. Returns a job ID.

Inputs: modId (required), profileId (required).

vortex_set_mod_enabledB

Queue enabling/disabling an installed mod in the ACTIVE Vortex profile. Returns a job ID. Vortex may auto-deploy according to its settings.

Inputs: modId (required), enabled (required), profileId (required).

vortex_statusA
Read-onlyIdempotent

Check the running local Vortex bridge, active profile, and signed-in account.

Inputs: no named parameters.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 21 tools

    Disambiguation3/5

    The tools separate Nexus remote operations from Vortex local operations, but legacy Nexus mod/file tools overlap with experimental v3 counterparts (nexus_mod vs nexus_v3_mod, nexus_mod_files vs nexus_v3_files/file_version). Descriptions clarify usage, but the duplication creates real misselection risk.

    Naming Consistency5/5

    All tool names use consistent snake_case with clear nexus_ or vortex_ prefixes. Multiword names remain readable, and the convention is predictable throughout.

    Tool Count3/5

    21 tools is heavy for this server, spanning two subsystems and including experimental v3 duplicates of core Nexus reads. The count is not extreme, but it feels bloated and could be consolidated.

    Completeness3/5

    Core Nexus metadata/download and Vortex install/deploy/remove workflows are covered, but notable gaps remain: no full-text mod search, no profile switching/creation, and no download cancellation/removal. Some gaps are workable via the Vortex UI or website, but not all.

    Maintenance

    ActivitySlowing
    ResponsivenessOutdated 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
      Not graded
      quality
      C
      maintenance
      A local MCP server for Nexus Mods mod discovery and research, backed by the v2 GraphQL API, enabling search of games, mods, collections, and users.
      61 npm
      1
      ISC
    • A
      license
      Not graded
      quality
      D
      maintenance
      A local MCP server for Nexus Mods mod discovery, research, and downloading, backed by the v2 GraphQL API and the website's DownloadPopUp widget.
      2
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables any MCP client to search, browse, download, and manage Nexus Mods content—games, mods, files, comments, collections, and user preferences—through a unified REST and GraphQL interface with caching and OAuth2 support.
      135
      29 PyPI
      3
      MIT