Skip to main content
Glama
dev.cleanlanguage/clean-language

dev.cleanlanguage/clean-language

by Ivan-Pasco

Clean Language for AI assistants

Clean Language is a type-safe language that compiles to WebAssembly. This MCP server lets your AI assistant write Clean code correctly: it reads the language reference and specification, type-checks code and compiles it to WebAssembly.

The compiler is included. Nothing else needs to be installed.

Preview. Clean Language is still young and some syntax will change in the next release. The bundle updates automatically when it does.

Install

As a plugin (assistants that support plugin marketplaces):

/plugin marketplace add Ivan-Pasco/clean-language-mcp
/plugin install clean-language@clean-language

As an MCP bundle (apps that open .mcpb files): download clean-language-mcp.mcpb and open it.

With npm (any MCP client):

{
  "mcpServers": {
    "clean-language": {
      "command": "npx",
      "args": ["-y", "@cleanlanguage/mcp"]
    }
  }
}

From the MCP Registry: search for Clean Language, or use the name dev.cleanlanguage/clean-language.

Manual setup: if you already have the Clean toolchain installed, add this to your MCP configuration:

{
  "mcpServers": {
    "clean-language": {
      "command": "cln",
      "args": ["mcp-server"]
    }
  }
}

Related MCP server: chapel-support

Tools

Tool

What it does

get_quick_reference

Syntax, types and patterns. The assistant calls this first.

get_specification

Any section of the language specification

check

Type-check code without compiling

compile

Compile code to WebAssembly

run

Compile and validate a program in one step (it does not execute it)

explain_error

Explain an error code and how to fix it

list_builtins, list_types, list_functions

Built-in names and signatures

list_plugins, get_plugin_examples

Framework plugins and examples

Platforms

macOS (Apple Silicon and Intel), Linux x86-64, Windows x86-64.

How this repo works

This repo holds no compiler code. A daily job takes the latest compiler release and publishes it three ways: as clean-language-mcp.mcpb in this repo's releases (scripts/build-bundle.sh), as the npm package @cleanlanguage/mcp with one package per platform (scripts/build-npm.sh), and as the MCP Registry entry. It then pins the plugin to the new npm version.

Support

Report problems at github.com/Ivan-Pasco/clean-language-mcp/issues.

mcp-name: dev.cleanlanguage/clean-language

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Exposes TypeScript Language Server Protocol functionality to AI agents, enabling them to query types at specific positions, find definitions and references, get diagnostics, run type tests, and type-check inline code just like in an IDE.
      9
      246 npm
      3
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI clients to analyze codebases through Tree-sitter (WASM) by exposing tools for AST and symbol inspection, structural queries, reference and dependency lookup, complexity and code-similarity analysis, and project registration with directory scanning. Ships alongside a web studio with a Monaco editor, AST explorer, and read-only SQLite console.
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI coding agents to discover installed host compilers, execute builds in isolated child environments with timeout enforcement, and convert noisy ANSI-laden compiler logs from Python, Rust, C/C++, Node, and Go toolchains into clean structured JSON diagnostics. It also reports toolchain readiness so agents can avoid blind invocations of missing compilers.
      4
      MIT