Purpose
Model Salt is an MCP server that solves the problem of language models giving the same answer repeatedly to the same prompt. It introduces randomness from outside the model, so that a single prompt produces different results across multiple runs while still completing what the user asked for.
Key capabilities
- For tasks where multiple reasonable choices exist (such as images, SVGs, pages, naming, stories, and plans), the model calls the model_salt tool to obtain the options that need to be determined for this run, and then completes the task as the user requested.
- The strength of randomness is adjustable: the tool accepts a setting from 0 to 2, defaulting to 1 when unspecified; users can express "make it really different" or "keep it close to the usual" in the prompt.
- For questions with only one correct answer (such as sums, facts, and bug fixes), the model skips the tool.
- Since 1.1.0, the server is responsible for making each choice; the model runs separately only to list the question and answers along with how often each answer is typically chosen, and the server's external randomness picks the answer. The keep field from 1.0.3 has been removed in 1.1.0; if some results need to be retained, this should be stated in the request.
Usage
- A single command adds it to the client; run it once, then start a new session in the client and the model_salt tool is available.
- For Codex and Kimi Code, a short skill is also added at ~/.agents/skills/model-salt/ to tell the model when to call the tool; for Codex, a server setting is also added so the model can see the tool from the start.
- Gemini CLI runs the local server only in trusted folders.
- You can use --dry-run to see what would be changed without actually changing anything; repeated runs produce no additional changes.
- Uninstalling removes everything the installation added; if other clients are still using the skill, the skill is kept.
- Other ways to run: the short name npx -y model-salt <args> is equivalent to npx -y @modelsalt/model-salt <args>; it can also be used as a plugin (the plugin/ directory contains a Codex plugin, a Claude Code plugin, and a Gemini CLI extension; this repository is the plugin marketplace).
- Manual method: add a stdio MCP server, run npx -y @modelsalt/model-salt anthropic (Claude, Gemini, and Kimi models) or npx -y @modelsalt/model-salt openai (GPT models).
- Run from a clone: use node src/stdio.mjs anthropic instead of the npx command.
When to use
Suitable for creative or design-oriented requests that need diversity, such as generating SVGs, images, pages, naming, story openings, plans, etc. Examples show that the same prompt can produce different results across multiple runs.
Limitations and caveats
- Requires Node 18 or higher; npx will fetch the package on first use.
- If Claude Code or Codex is installed and logged in on the machine, each call will run a brief extra request locally through the corresponding client, using the user's own plan, with no API key required; if it cannot run (e.g., not logged in), the tool will prompt, and the model continues with the original request. If neither is installed (e.g., Docker container, Cursor or Copilot only), the user's own model completes that step in the chat, calling the tool twice and consuming more of its own tokens.
- Salted answers take longer and consume more tokens than ordinary answers; in the example, Claude Opus 5.5 uses about 3,300 more output tokens per answer on the pelican prompt.
- Network: the server fetches random bytes from public randomness sources (quantum noise from the LfD quantum random number service, public drand, and NIST beacons), and does not send user prompts to these sources; when offline, it uses the local random number generator.
- Privacy: when run via npx (or the Codex and Gemini plugins, MCPB package), Model Salt runs locally and never sends prompts anywhere, only requesting random bytes from public randomness sources. The Claude Code plugin and hosted endpoint use the modelsalt.com server; as of November 19, 2026, only the number of options per open choice (e.g., [5, 5, 5, 5, 5]) is sent, not the request, options, or anything else in the chat, and calls are not stored or logged.
- The code is MIT licensed; example runs and images are CC BY 4.0, requiring attribution to "Model Salt"; the word list (src/words.mjs, Webster's 2nd, 1934) is public domain.
- The project author is Chris Benjaminsen.