Skip to main content
MCP server CX Codex

Model Salt — Claude Code MCP server: what it does, how to install

Model Salt — an MCP server that feeds a model randomness from outside itself, so one prompt about a picture, name or story comes back different each time.

MIT ★ 10 updated 2026-10-27

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add model-salt -- npx -y @modelsalt/model-salt
Open on GitHub

What Model Salt does

Language models tend to settle on the same answer to the same prompt: the same SVG, the same coffee shop name, the same opening line. model_salt runs a short separate pass first, laying out the open decisions in the request and a spread of answers for each, including the model's default pick. External randomness then settles one answer per decision, and the model carries out the request with those choices already made.

How far the answers spread is set by a value from 0 to 2, stated right in the prompt — "make it really different" pushes it up, "keep it close to the usual" pulls it down. Left unset it defaults to 1. For requests with a single correct answer, a sum or a bug fix, the model skips the tool entirely.

Running it through Claude Code or Codex needs a signed-in session: each call triggers one short extra request on the user's own machine and plan, no separate API key. It needs Node.js 18 or newer, since npx fetches the package on first run. Random bytes come from public sources — atmospheric and quantum noise, the drand beacon — or, offline, from the machine's own generator; the prompt itself never leaves the machine.

What it helps with

  • get a different SVG or image on the same prompt each run
  • pull varied name suggestions for a shop or project
  • produce several distinct opening lines for a story
  • break a model's habit of giving the same default answer to open-ended prompts
  • dial the amount of variation up or down from within the prompt

Example prompts for the agent

  • Generate an SVG of a pelican riding a bicycle
  • Suggest a name for a neighbourhood coffee shop, make it really different
  • Write the first line of a story about a lighthouse keeper, keep it close to the usual

How to install Model Salt

Platform CLI

claude mcp add model-salt -- npx -y @modelsalt/model-salt

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about Model Salt

How do I install Model Salt in Claude Code?

Run claude mcp add model-salt -- npx -y @modelsalt/model-salt, then start a new Claude Code session — the model_salt tool shows up in the MCP list.

What does Model Salt do?

It gives a model randomness from outside itself so that a single prompt with room for choices, a picture, a name, a story, comes back with a different fitting answer each run instead of the model's usual pick.

What does Model Salt require to run?

It needs Node.js 18 or newer and a signed-in Claude Code or Codex session, since each call makes one short extra request on the user's own machine and plan without a separate API key.

Similar MCP servers

All MCP servers for Agent setup: memory, context, orchestration →

Project sponsors

Companies that keep this analytics open