# Model Salt MCP server

> Injects external randomness into language model prompts to ensure diverse outputs for the same request.

- Repository: https://github.com/modelsalt/model-salt
- Page: https://hostedmcp.org/servers/modelsalt/model-salt
- Transport: stdio, remote
- Stars: 10
- License: MIT
- Latest version: 1.0.4

## Install

### Claude Code

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

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "model-salt": {
      "command": "npx",
      "args": [
        "-y",
        "@modelsalt/model-salt"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "model-salt": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelsalt/model-salt"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"model-salt","type":"stdio","command":"npx","args":["-y","@modelsalt/model-salt"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "model-salt": {
      "command": "npx",
      "args": [
        "-y",
        "@modelsalt/model-salt"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add model-salt -- npx -y @modelsalt/model-salt
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.model-salt]
command = "npx"
args = ["-y", "@modelsalt/model-salt"]
```

### Gemini CLI

```sh
gemini mcp add -s user model-salt npx -- -y @modelsalt/model-salt
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "model-salt": {
      "command": "npx",
      "args": [
        "-y",
        "@modelsalt/model-salt"
      ]
    }
  }
}
```

## FAQ

### How does Model Salt work?

The model identifies open decisions in your request and a range of possible answers; external randomness then picks one answer per question to settle the request.

### Does Model Salt send my prompts to a server?

When run via npx, it runs on your machine and only fetches random bytes from public sources without sending prompts. The Claude Code plugin and hosted endpoint do send the exploring step to modelsalt.com, but they do not store or log it.

### Can I control the amount of randomness?

Yes, you can adjust the setting from 0 to 2 in your prompt, where 1 is the default.
