# DietFit

> DietFit is a free MCP server for health and science. MCP server that checks whether a food fits a gluten-free diet, for AI clients. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** API
- **MCP Registry name:** io.github.dpremirelli/dietfit
- **Categories:** [health and science](https://ai-powered.com/categories/health-and-science)
- **Listing updated:** 2026-11-28

## About

DietFit is a remote Model Context Protocol server that answers a narrow question: does a given food fit a gluten-free diet. An AI client connected to it can send a food name and receive a verdict built on rules that the project says are sourced and reviewed by a dietitian.

Because it is exposed over streamable HTTP at a hosted endpoint, it can be added to any MCP-compatible assistant without installing a package locally. The project is labelled as a prototype, so its coverage of foods and its rule set are still limited and may change.

It suits people following a coeliac or gluten-free diet who want a quick check while using an AI assistant, and developers who want a small, domain-specific MCP server to study or extend.

## Features

- **Gluten-free food check:** Tells whether a named food fits a gluten-free diet based on its rules.
- **Remote MCP endpoint:** Served over streamable HTTP so clients connect without a local install.
- **Sourced rule basis:** Verdicts rely on rules the project describes as sourced from references.
- **Dietitian review:** The project states that its rules go through dietitian review.
- **Assistant integration:** Works as a tool for any AI client that supports MCP servers.

## Good for

- Checking a packaged or restaurant food before eating it while on a gluten-free diet
- Letting an AI assistant answer gluten-free questions with a consistent rule-based check
- Testing a small domain-specific MCP server in a development workflow

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http dietfit https://dietfit-mcp.vercel.app/api/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "dietfit": {
      "type": "http",
      "url": "https://dietfit-mcp.vercel.app/api/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://dietfit-mcp.vercel.app/api/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

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

```json
{
  "mcpServers": {
    "dietfit": {
      "url": "https://dietfit-mcp.vercel.app/api/mcp"
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "dietfit": {
      "type": "http",
      "url": "https://dietfit-mcp.vercel.app/api/mcp"
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://dietfit-mcp.vercel.app/api/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add dietfit --url https://dietfit-mcp.vercel.app/api/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.dietfit]
url = "https://dietfit-mcp.vercel.app/api/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "dietfit": {
      "httpUrl": "https://dietfit-mcp.vercel.app/api/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http dietfit https://dietfit-mcp.vercel.app/api/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "dietfit": {
      "serverUrl": "https://dietfit-mcp.vercel.app/api/mcp"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "dietfit": {
      "url": "https://dietfit-mcp.vercel.app/api/mcp",
      "transport": "http"
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "dietfit": {
      "type": "streamableHttp",
      "url": "https://dietfit-mcp.vercel.app/api/mcp"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "dietfit": {
      "url": "https://dietfit-mcp.vercel.app/api/mcp"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "dietfit": {
      "url": "https://dietfit-mcp.vercel.app/api/mcp"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "dietfit": {
      "url": "https://dietfit-mcp.vercel.app/api/mcp"
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "dietfit": {
      "url": "https://dietfit-mcp.vercel.app/api/mcp"
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://dietfit-mcp.vercel.app/api/mcp
```

Enter a Name (for example "DietFit"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

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

```json
{
  "mcpServers": {
    "dietfit": {
      "type": "http",
      "url": "https://dietfit-mcp.vercel.app/api/mcp"
    }
  }
}
```

## Tools

Going by the tool names, all 2 tools only read data. From the server's own tool labels and tool names; not verified by us.

- `check_diet_fit` (name suggests: reads): Returns fits, does_not_fit or uncertain for one food product and one diet, with the rules that decided it and their sources. Give either a barcode (looked up in Open Food Facts) or the product's ingredient list and label claims. Uncertain results are queued for review by a registered dietitian; treat uncertain as not safe until reviewed. Supports diet 'gluten-free' with mode 'celiac' (strict, defa
- `get_diet_rules` (name suggests: reads): Returns the full, versioned rule set used by check_diet_fit, with every rule's source and the decisions log.

## FAQ

### How do I connect to DietFit?

It is available as a remote streamable HTTP MCP server at a hosted endpoint, so any MCP client that supports this transport can connect to it.

### Is DietFit a finished product?

It is labelled as a prototype, so coverage and rules may still be changing.

### Is DietFit free?

Yes. DietFit is free to use.

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

Run this command in your terminal: claude mcp add --transport http dietfit https://dietfit-mcp.vercel.app/api/mcp

### What are the best alternatives to DietFit?

The closest alternatives to DietFit are Nutrients MCP, Renal Diet (CKD) and Alpha-Gal Syndrome Food Check, Localplate MCP, Mode Health and FatSecret.

## Where this comes from

- Description: written from its MCP Registry entry.
- Status and tools: checked automatically by AIPoweredBot on 29 November 2026.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Nutrients MCP](https://ai-powered.com/mcp/nutrients-mcp): Nutrients MCP is a freemium MCP server for health and science.
- [Renal Diet (CKD) and Alpha-Gal Syndrome Food Check](https://ai-powered.com/mcp/renal-diet-ckd-and-alpha-gal-syndrome-food-check): Renal Diet (CKD) and Alpha-Gal Syndrome Food Check is an MCP server for mcp data access.
- [Localplate MCP](https://ai-powered.com/mcp/localplate-mcp): Localplate MCP is an MCP server for health and science.
- [Mode Health](https://ai-powered.com/mcp/mode-health): Mode Health is an MCP server for health and science.
- [FatSecret](https://ai-powered.com/mcp/fatsecret): FatSecret is an open-source MCP server for health and science.
- [Weight Class](https://ai-powered.com/mcp/weight-class): Weight Class is a free MCP server for health and science.
- [Elthio MCP](https://ai-powered.com/mcp/elthio-mcp): Elthio MCP is an MCP server for health and science.
- [KidneyWatch Renal Diet (CKD) Food Check](https://ai-powered.com/mcp/kidneywatch-renal-diet-ckd-food-check): KidneyWatch Renal Diet (CKD) Food Check is an MCP server for mcp data access.

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