# gut

> gut is an open-source MCP server for ai models and llm tooling. Hands an agent's yes/no, category and rating questions to a small, cheap model. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, self-hosted
- **Website:** https://gutpy.dev/docs/mcp.html
- **Repository:** https://github.com/kungie/gut
- **MCP Registry name:** io.github.Kungie/gut
- **Categories:** AI models and LLM tooling
- **Listing updated:** 2026-11-15

## About

The premise is that a large agent model should not spend seconds and cents deciding whether a comment is spam. The gutfeel-mcp package passes simple judgment calls to a small model and returns a typed answer: an outcome with a probability, a chosen label with every option's probability, or a score on a scale. Answers are the model's own probabilities, never parsed from generated prose.

It runs locally over stdio and starts through `uvx`. The default model is Jev from TypeSafe AI when `TYPESAFE_API_KEY` is set. A `GUT_BACKEND` variable switches to other options such as OpenRouter, Ollama, an OpenAI-compatible server, OpenAI's Decisions API or a local zero-shot encoder, so a purely local setup can keep text on your machine. The model loads on first call, so the client handshake is instant.

The `unsure` outcome appears only when the agent passes `ask_human: true`, signalling that a person should read the text. The docs advise using it for simple, high-volume judgments, since for one subtle call the agent can read the text itself.

## Features

- **Yes/no judgments:** The `likely` tool tests a claim against text and returns yes, no or unsure with a probability.
- **Option classification:** `classify` picks a label from a list or a label-to-description map and reports every option's probability.
- **Scale rating:** `rate` places text on a scale and returns a score, the nearest level and a confidence.
- **Batch of up to 1000:** `each` asks the same question about up to 1000 texts and returns answers in order.
- **Swappable backends:** One environment variable moves between Jev, OpenRouter, Ollama, OpenAI and local models.
- **Cost reporting:** Answers include usage and cost when the backend reports a price.

## Good for

- Flag spam comments before they reach a queue
- Route support tickets to the owning team
- Rate how urgent a ticket is
- Escalate emails that need a person when the model is unsure
- Label hundreds of texts in one call

## Install

### Claude Code (Terminal)

```sh
claude mcp add gut --env TYPESAFE_API_KEY='<TYPESAFE_API_KEY>' --env OPENROUTER_API_KEY='<OPENROUTER_API_KEY>' -- uvx gutfeel-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "gut": {
      "command": "uvx",
      "args": [
        "gutfeel-mcp"
      ],
      "env": {
        "TYPESAFE_API_KEY": "<TYPESAFE_API_KEY>",
        "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "gut": {
      "command": "uvx",
      "args": [
        "gutfeel-mcp"
      ],
      "env": {
        "TYPESAFE_API_KEY": "<TYPESAFE_API_KEY>",
        "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "gut": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "gutfeel-mcp"
      ],
      "env": {
        "TYPESAFE_API_KEY": "<TYPESAFE_API_KEY>",
        "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "gut": {
      "command": "uvx",
      "args": [
        "gutfeel-mcp"
      ],
      "env": {
        "TYPESAFE_API_KEY": "<TYPESAFE_API_KEY>",
        "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "gut": {
      "command": "uvx",
      "args": [
        "gutfeel-mcp"
      ],
      "env": {
        "TYPESAFE_API_KEY": "<TYPESAFE_API_KEY>",
        "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>"
      }
    }
  }
}
```

## Tools

- `likely`: Tests whether a claim is true of a text; returns yes, no or unsure and a probability
- `classify`: Chooses which option fits and returns every option's probability
- `rate`: Places text on a scale and returns a score and confidence
- `each`: Asks the same question about up to 1000 texts

## FAQ

### Which model does it use?

Jev from TypeSafe AI by default when TYPESAFE_API_KEY is set; otherwise you choose a backend with GUT_BACKEND.

### Can it run fully locally?

Yes. With GUT_BACKEND set to ollama or zeroshot, nothing leaves your machine, and a local model costs 0.

### How do I install it?

Add it with uvx gutfeel-mcp in your client's MCP config; uvx fetches it on first use.

### When does it return unsure?

Only when the agent passes ask_human: true and the model cannot tell.

### Is gut free?

Yes. gut is open source, so you can use and self-host it for free.

### How do I add gut to Claude Code?

Run this command in your terminal: claude mcp add gut --env TYPESAFE_API_KEY='<TYPESAFE_API_KEY>' --env OPENROUTER_API_KEY='<OPENROUTER_API_KEY>' -- uvx gutfeel-mcp

### What are the best alternatives to gut?

The closest alternatives to gut are Claude Code Ultimate Guide, signafAIde, Toolkien, Lugh and HypePaper.

## Alternatives

- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [signafAIde](https://ai-powered.com/mcp/signafaide): signafAIde is a freemium MCP server for security.
- [Toolkien](https://ai-powered.com/mcp/toolkien): Toolkien is an open-source MCP server for ai models and llm tooling.
- [Lugh](https://ai-powered.com/mcp/lugh): Lugh is an open-source MCP server for ai models and llm tooling.
- [HypePaper](https://ai-powered.com/mcp/hypepaper): HypePaper is a freemium MCP server for ai models and llm tooling.
- [Agent Data Tools: Compact (find, describe, run)](https://ai-powered.com/mcp/agent-data-tools-compact-find-describe-run): Agent Data Tools: Compact (find, describe, run) is a freemium MCP server for developer tools.
- [Angel Agent Guard: pre-purchase check + prompt-injection scan](https://ai-powered.com/mcp/angel-agent-guard-pre-purchase-check-prompt-injection-scan): Angel Agent Guard: pre-purchase check + prompt-injection scan is a freemium MCP server for ai models and llm tooling.
- [Mizan Calibration](https://ai-powered.com/mcp/mizan-calibration): Mizan Calibration is a free MCP server for ai models and llm tooling.

---
Source: https://ai-powered.com/mcp/gut
