decantr-ai
Check AI-made UI changes against your project's own components and styles (Decantr)
decantr-ai is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, Self-hosted
- Runs
- Locally
- What it can do
- Can change data (1 tool)
- Version
- 3.11.5
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add mcp-server -- npx -y @decantr/mcp-serverAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@decantr/mcp-server"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@decantr/mcp-server"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@decantr/mcp-server"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
codex mcp add mcp-server -- npx -y @decantr/mcp-serverOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.mcp-server]
command = "npx"
args = ["-y", "@decantr/mcp-server"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@decantr/mcp-server"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.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
Antigravity
Add to ~/.gemini/config/mcp_config.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 (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.json
{ "mcpServers": { "mcp-server": { "command": "npx", "args": [ "-y", "@decantr/mcp-server" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "mcp-server": { "command": "npx", "args": [ "-y", "@decantr/mcp-server" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "mcp-server": { "command": "npx", "args": [ "-y", "@decantr/mcp-server" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "mcp-server": { "command": "npx", "args": [ "-y", "@decantr/mcp-server" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About decantr-ai
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.
Tools this server provides (8)
Taken from the project documentation; the running server may differ.
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_writeName suggests: changes
- Writes contract updates.
What it does
- 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
Pricing
Open source
Free MIT-licensed npm package.
decantr-ai 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.
