# decantr-ai

> decantr-ai is an open-source MCP server for developer tools. Check AI-made UI changes against your project's own components and styles (Decantr). It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/decantr-ai/decantr
- **MCP Registry name:** io.github.decantr-ai/mcp-server
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-21

## About

Decantr's MCP server serves the changed-UI checker to coding agents. The idea is that an agent's edit should be compared with what the project already owns, such as components, styles, interaction rules and source boundaries, instead of being judged by a generic score. Verification reports at most three source-anchored findings and returns pass, attention or not_proven; ambiguous apps and missing Git scope fail closed rather than reassure.

Eight tools make up the public surface: decantr_project, decantr_contract, decantr_context, decantr_graph, decantr_registry, decantr_verify, decantr_repair and decantr_contract_write. Version 3.11.5 corrects component-reuse import advice so a feature wrapper is not mistaken for a shared export.

Everything runs locally and hosted source upload is retired. The README is candid that it does not claim to improve frontier-model outcomes, a question left to a separate unfinished research programme. It needs Node 20.19 or later, and the code is MIT licensed.

## Features

- **Changed-UI verification:** Compares the agent's actual edit with project-owned UI authority.
- **Fails closed:** Ambiguous apps return not_proven instead of a false pass.
- **Eight stable tools:** Project, contract, context, graph, registry, verify, repair and contract write.
- **Change-scoped context:** Prepares compact task context for any coding agent.
- **Local-first:** Source inspection and verification run on your machine.

## Good for

- Check an AI agent's UI diff before merging
- Give an agent context scoped to one UI task
- Get repair targets for a flagged finding
- Add UI change evidence to CI

## Install

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

```sh
claude mcp add mcp-server -- npx -y @decantr/mcp-server
```

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": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@decantr/mcp-server"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@decantr/mcp-server"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@decantr/mcp-server"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@decantr/mcp-server"
      ]
    }
  }
}
```

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

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

```sh
codex mcp add mcp-server -- npx -y @decantr/mcp-server
```

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

```toml
[mcp_servers.mcp-server]
command = "npx"
args = ["-y", "@decantr/mcp-server"]
```

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

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@decantr/mcp-server"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user mcp-server npx -- -y @decantr/mcp-server

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

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@decantr/mcp-server"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@decantr/mcp-server"
      ]
    }
  }
}
```

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": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@decantr/mcp-server"
      ]
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@decantr/mcp-server"
      ]
    }
  }
}
```

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": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@decantr/mcp-server"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@decantr/mcp-server"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@decantr/mcp-server"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@decantr/mcp-server"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 8 tools changes data; 7 names don't say. From the server's own tool labels and tool names; not verified by us.

- `decantr_project`: Reads project UI authority.
- `decantr_contract`: Reads the UI contract.
- `decantr_context`: Prepares change-scoped task context.
- `decantr_graph`: Returns the UI graph.
- `decantr_registry`: Reads registry content.
- `decantr_verify`: Verifies the current change.
- `decantr_repair`: Provides repair targets for findings.
- `decantr_contract_write` (name suggests: changes): Writes contract updates.

## FAQ

### Does decantr-ai need an account?

No account or setup is required for the CLI check.

### Which tools does decantr-ai expose?

Eight: decantr_project, decantr_contract, decantr_context, decantr_graph, decantr_registry, decantr_verify, decantr_repair and decantr_contract_write.

### Does my code leave my machine?

The README says verification runs locally and hosted source upload is retired.

### Does decantr-ai prove better model output?

No. The README says that claim is not made.

### What licence?

MIT.

### Is decantr-ai free?

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

### How do I add decantr-ai to Claude Code?

Run this command in your terminal: claude mcp add mcp-server -- npx -y @decantr/mcp-server

### What are the best alternatives to decantr-ai?

The closest alternatives to decantr-ai are magic-mcp, Freshdeps MCP, UI Craft, NeuralNg Angular UI Expert MCP and UI Verify.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [magic-mcp](https://ai-powered.com/mcp/magic-mcp): magic-mcp is a freemium MCP server for developer tools.
- [Freshdeps MCP](https://ai-powered.com/mcp/freshdeps-mcp): Freshdeps MCP is a free MCP server for developer tools.
- [UI Craft](https://ai-powered.com/mcp/ui-craft): UI Craft is an open-source MCP server for developer tools.
- [NeuralNg Angular UI Expert MCP](https://ai-powered.com/mcp/neuralng-angular-ui-expert-mcp): NeuralNg Angular UI Expert MCP is an open-source MCP server for developer tools.
- [UI Verify](https://ai-powered.com/mcp/ui-verify): UI Verify is a freemium MCP server for developer tools.
- [P31 Governed Agent CLI](https://ai-powered.com/mcp/p31-governed-agent-cli): P31 Governed Agent CLI is an open-source MCP server for developer tools.
- [MCP Test Utils](https://ai-powered.com/mcp/mcp-test-utils): MCP Test Utils is a free MCP server for developer tools.

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