# Model Salt

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.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 10 repo stars
- Author: modelsalt
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/modelsalt/model-salt
- Updated: 2026-10-27
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/model-salt

## What it 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.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add model-salt -- npx -y @modelsalt/model-salt
```

### Codex

**Platform CLI**
```bash
codex mcp add model-salt -- npx -y @modelsalt/model-salt
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "model-salt": {
            "command": "npx",
            "args": [
                "-y",
                "@modelsalt/model-salt"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "model-salt": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@modelsalt/model-salt"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add model-salt npx -y @modelsalt/model-salt
```

## When to use it
- 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
- 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

## Similar
- [costheta](https://affpapa.org/en/nevibecode/mcp/costheta.md) — MCP server
- [calc-mcp](https://affpapa.org/en/nevibecode/mcp/calc-mcp.md) — MCP server · ★ 9 repo stars
- [D20DAO Verifiable Randomness](https://affpapa.org/en/nevibecode/mcp/d20dao-verifiable-randomness.md) — MCP server
- [onchain-randomness](https://affpapa.org/en/nevibecode/skills/onchain-randomness.md) — skill · 162 installs
- [Local Model Suitability MCP](https://affpapa.org/en/nevibecode/mcp/local-model-suitability-mcp.md) — MCP server · 2764 installs
- [qianwen-model-selector](https://affpapa.org/en/nevibecode/skills/qianwen-model-selector.md) — skill · 6100 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
