Skip to main content
Glama

vsmoddb-mcp

CI npm license

An MCP server for managing your mods on the Vintage Story ModDB: upload and update releases, edit mod descriptions/metadata and tags, and read or answer comments — from any MCP client (Claude Code/Desktop, OpenCode, Cursor, …).

Install & login

npm install -g vsmoddb-mcp
npm install -g playwright && npx playwright install chromium   # browser for the login helper, once
vsmoddb-mcp-login                                              # one manual browser login (reCAPTCHA)

Both commands are bins of this one package (vsmoddb-mcp runs the server, vsmoddb-mcp-login runs the login helper) — there is no separate login package. The helper also runs straight from the registry, without a global install:

npx playwright install chromium          # browser for the login helper, once
npx -p vsmoddb-mcp vsmoddb-mcp-login     # one manual browser login (reCAPTCHA)

The login must be repeated roughly every two weeks; sessions cannot be renewed without a human because of the reCAPTCHA. Playwright is an optional dependency: without it, vsmoddb-mcp-login prints the exact commands to set it up and an alternative (cookie copy) that needs no browser automation.

From source (for development or vendoring):

git clone https://github.com/LovelessCodes/vsmoddb-mcp.git
cd vsmoddb-mcp
npm install
npm run build
npm run login

Then point your MCP client at dist/index.js (see Client setup).

Related MCP server: civnode-mcp

What it can do

Tool

Purpose

moddb_status

Validate the session, report the logged-in account

list_my_mods

List the mods your account contributes to

get_mod

Public mod metadata, links, stats and releases

update_mod

Description (Markdown/HTML), summary, name, URL alias, links, side, tags

list_tags

The site-wide tag vocabulary (id, name, color)

add_mod_tags

Add existing tags through the edit form; new ones need create_missing: true

upload_release

Publish a new release (confirm: true required)

update_release

Change a release's changelog / game versions / version

retract_release

Retract a release with a public reason (confirm: true required)

list_comments

Comments on a mod page, with ids

reply_to_comment

Reply to a comment (Markdown → HTML)

edit_comment / delete_comment

Edit or delete your comments

list_notifications

New comments, mentions, followed-mod releases

mark_notifications_read

Clear specific notifications or all of them

Read tools return JSON. Write tools return a small confirmation object (or an error message that the model can act on, e.g. "Unknown game version(s): 9.9.9").

Login

ModDB's login is protected by reCAPTCHA, so it cannot be automated end-to-end. Log in once; the server then uses the stored session cookie plus the site's action token for every request, refreshing the token automatically.

npm install playwright          # only needed for the login helper
npx playwright install chromium # one-time browser download
npm run login                   # from a checkout; global install: vsmoddb-mcp-login

Without a global install, run the helper through npx: npx -p vsmoddb-mcp vsmoddb-mcp-login.

This writes ~/.config/vsmoddb-mcp/session.json (mode 0600) containing the vs_websessionkey cookie. Sessions last roughly two weeks; when they expire, every tool returns "Your ModDB session has expired" with the same instructions, so you just run npm run login again. A server that is already running picks up the new session file on the next tool call — no client restart needed.

No browser at all? Log in at mods.vintagestory.at in your own browser, copy the vs_websessionkey cookie value from devtools, and create the file manually:

{ "cookie": "vs_websessionkey=<value>" }

Treat that file like a password: the cookie is a full session for your Vintage Story account. Delete it and log out of the site to revoke access.

Client setup

No install needed — run it straight from npm:

{
  "mcpServers": {
    "vsmoddb": {
      "command": "npx",
      "args": ["-y", "vsmoddb-mcp"]
    }
  }
}

Or after npm install -g vsmoddb-mcp, use "command": "vsmoddb-mcp" with no args. From a source checkout, point at the built file with an absolute path:

{
  "mcpServers": {
    "vsmoddb": {
      "command": "node",
      "args": ["/absolute/path/to/vsmoddb-mcp/dist/index.js"]
    }
  }
}

Note: the login helper needs the Playwright package and a Chromium build; the browser binaries are not bundled. Run the helper once from a global install (vsmoddb-mcp-login), from the registry without installing anything (npx -p vsmoddb-mcp vsmoddb-mcp-login), or from a source checkout (npm run login). All of them write the same session file, and an MCP server that is already running picks it up on the next tool call.

Claude Code / CLI:

claude mcp add vsmoddb -- npx -y vsmoddb-mcp

Environment variables

Variable

Default

Meaning

VSMODDB_SESSION_FILE

~/.config/vsmoddb-mcp/session.json

Session file location

VSMODDB_BASE_URL

https://mods.vintagestory.at

Override for testing against a mock

VSMODDB_MAX_UPLOAD_MB

40

Upload size guard (ModDB's default limit)

How it works

ModDB is a hybrid site, and so is this server:

  • v2 API for comments (create/edit/delete), release retraction, and notifications. Requests carry the at action token scraped from the site; when ModDB rejects it as stale the server re-reads it and retries once.

  • Classic PHP forms for release uploads, mod/release edits and tag changes, because the public API stubs those out (and because ModDB disables its user-tags API with the shipped DISABLE_USER_TAGS default). The server renders the real edit page, serializes the form exactly like a browser, applies only your changes, and POSTs it back. A 303 redirect means success; a 200 re-render is parsed for the site's error messages and surfaced as a tool error.

Release uploads are multipart/form-data with a single file field. Game mod identifiers/versions come from the zip's modinfo.json, so uploads require game_versions: ["1.22.7", …] and ignore any version you pass.

Notes and limits

  • Release files are immutable. upload_release publishes immediately and the zip can never be replaced; retraction is the only way back. Both upload_release and retract_release require confirm: true for this reason.

  • One file per release (.zip, or a bare .dll/.cs for non-game categories), 40 MB by default.

  • update_mod's description replaces the entire description — ask the model to fetch the current one first (get_mod with include_description).

  • Every mod parameter takes an alias (carrycapacity), a numeric id, or a ModDB URL/path copied from the browser (/show/mod/54807). The public API only knows published mods, so aliases, asset ids and unpublished drafts are resolved through the mod page; drafts work with the editing tools, but have no description/release/stats data until they are published.

  • Comment replies are plain Markdown converted to HTML server-side by this MCP server. There is deliberately no bulk-reply tool: the ModDB rules forbid spamming or bot-like behaviour, so keep replies human-approved and on-topic.

  • Tags are site-wide, not per-mod: list_tags returns the vocabulary, and add_mod_tags (like the site's own edit page) refuses names that do not exist yet unless you pass create_missing: true — otherwise a typo would silently invent a new public tag. Creating tags goes through ModDB's user-tags API, which the site currently disables (HTTP 503), so today only existing tags can actually be applied.

  • Non-game-mod versions must match n.n.n (optionally -rc.n/-pre.n/-dev.n).

  • You need to be a team member with edit rights for anything you modify; other users' mods return a clear "no edit permission" error.

Development

npm run build      # tsc
npm run typecheck  # tsc --noEmit
npm run smoke      # offline end-to-end test (no credentials, no network)

npm run smoke starts a mock ModDB (all routes the tools touch), points the real MCP server at it via VSMODDB_BASE_URL, drives all 14 tools over stdio with the MCP SDK client, and asserts the wire format — exact Content-Type: text/html for comment bodies, multipart fields for uploads, action-token refresh on 403 Invalid action token, and session-expiry handling (102 checks).

Releasing

npm publish runs prepublishOnly, which builds and runs the smoke test, so a broken commit cannot be published by accident.

npm version patch            # or minor / major: bumps package.json and tags the commit
npm publish
git push --follow-tags

Available Tools

15 tools
add_mod_tagsAdd tags to a modA

Add tags to a mod. Existing tags are applied through the mod edit form (the path the site's own UI uses), and only names from list_tags are accepted unless create_missing: true is passed. Tags are site-wide: brand-new ones can only be created through ModDB's user-tags API, which the site currently disables (HTTP 503).

Inputs: mod (required), tags (required), create_missing.

delete_commentDelete a ModDB commentA
Destructive

Delete one of your own comments (irreversible; requires confirm: true).

Inputs: confirm (required), comment_id (required).

edit_commentEdit a ModDB commentA

Edit one of your own comments (or any comment if you are a moderator). The text is Markdown and replaces the current content entirely.

Inputs: text (required), comment_id (required).

get_modGet ModDB mod infoA
Read-only

Fetch a mod's public ModDB metadata: ids, tags, links, stats and the release list (with release ids and compatible game versions). Accepts mod name, numeric id, or URL alias.

Inputs: mod (required), release_limit, include_changelogs, include_description.

list_commentsList ModDB commentsA
Read-only

List comments on a mod's ModDB page, newest first. Accepts a mod name, numeric id, or URL alias. Returns comment ids for reply_to_comment, edit_comment and delete_comment.

Inputs: mod (required), limit, include_deleted.

list_my_modsList my ModDB modsA
Read-only

List the mods the logged-in account contributes to (the 'Your mod contributions' section of mods.vintagestory.at/home). Use the returned names/paths with get_mod, upload_release, update_mod, etc.

Inputs: no named parameters.

list_notificationsList ModDB notificationsA
Read-only

List the logged-in account's ModDB notifications (new comments, mentions, releases of followed mods, ...). Comment notifications are the quickest way to find comments awaiting a reply on your mods.

Inputs: no named parameters.

list_tagsList ModDB tagsA
Read-only

List the site-wide tag vocabulary every mod can carry (id, name, color). Check this before add_mod_tags: only these names exist on ModDB, and anything else has to be created deliberately.

Inputs: no named parameters.

mark_notifications_readMark ModDB notifications as readA

Mark specific notifications (ids) or all notifications (all: true) as read.

Inputs: all, ids.

moddb_statusModDB session statusA
Read-only

Validate the configured Vintage Story ModDB session, refresh the action token, and report the logged-in account. Run this first when other tools complain about an invalid session.

Inputs: no named parameters.

reply_to_commentReply to a ModDB commentA

Post a reply to a comment on a mod's ModDB page. The text is Markdown (converted to HTML). Use only user-approved wording; the ModDB rules prohibit bot-like/spammy commenting.

Inputs: mod (required), text (required), comment_id (required).

retract_releaseRetract a ModDB releaseA
Destructive

Retract (mark as broken/withdrawn) a release with a reason. The release stays visible with a retraction notice and can no longer be edited. Requires confirm: true.

Inputs: mod (required), reason (required), release_id (required), confirm.

update_modUpdate ModDB mod description/metadataA

Update a mod's ModDB page: description, summary, name, URL alias, links, side, and tags. Only the provided fields are changed; everything else (including team members, images, status) is preserved. 'description' REPLACES the whole description, so provide the full new text in Markdown. 'tags' replaces the full tag list; use add_tags/remove_tags for incremental changes.

Inputs: mod (required), name, side, tags, +12 more.

update_releaseUpdate a ModDB releaseA

Update an existing release's changelog, compatible game versions, or (non-game mods only) version. The uploaded file itself can never be replaced. Provide at least one of changelog / game_versions / version.

Inputs: mod (required), release_id (required), version, changelog, +1 more.

upload_releaseUpload a ModDB releaseA
Destructive

Upload and publish a new release (zip in, one release out). For game mods the identifier/version are auto-detected from the zip's modinfo.json, and game_versions must be provided. The uploaded file cannot be replaced afterwards, so verify the build first. Requires confirm: true.

Inputs: mod (required), file_path (required), confirm, version, +2 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 15 tools

    Disambiguation5/5

    Each tool targets a clearly distinct resource or action: session status, mod listing/retrieval/update, tags, releases, comments, and notifications. Potential overlaps like update_mod replacing tags versus add_mod_tags for incremental changes are explicitly clarified in the descriptions. An agent can reliably select the correct tool.

    Naming Consistency4/5

    All tools use snake_case, and the vast majority follow a verb_noun or verb_noun_modifier pattern (list_my_mods, update_release, mark_notifications_read). Minor deviations like moddb_status (noun-first) and reply_to_comment (prepositional) are still readable and predictable.

    Tool Count5/5

    15 tools sits at the upper end of the ideal 3-15 range, and every tool earns its place across authentication, mod management, tags, releases, comments, and notifications. There are no redundant or trivial tools.

    Completeness4/5

    Core lifecycle coverage is strong: mods (list/get/update), releases (upload/update/retract), comments (list/reply/edit/delete), notifications (list/mark read), and tags (list/add). Missing create_mod and a dedicated remove_mod_tags tool, and top-level comment creation is not clearly supported, but agents can work around most of these gaps.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables interaction with Discord using personal user tokens instead of bot applications, allowing for seamless message management and server exploration. It provides tools for reading history, sending messages, and searching across channels and DMs directly through MCP-compatible clients.
      12
      MIT
    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      An MCP server for the CivNode 'slow web' social platform that enables interaction with monuments, forums, and creative writing. It allows users to manage their profiles, send private or anonymous messages, and engage with the community's unique social features.
      -
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables managing quest-log ideas, statuses, and mission log directly from MCP clients, allowing project tracking and updates without going through git/GitHub.
      -
    • A
      license
      A
      quality
      B
      maintenance
      Exposes Obsidian-style Markdown vaults to MCP clients, enabling reading, writing, searching, and version-controlled editing of notes with automatic git snapshots and restore.
      14
      17 npm
      1
      MIT