Purpose: clj-kondo-MCP is a Model Context Protocol (MCP) server that wraps clj-kondo's linting capabilities as MCP tools, for use in environments such as Claude Code and Claude Desktop that lack built-in lint capabilities, to check Clojure, ClojureScript, and EDN files.
Main capabilities: execute linting on Clojure files through MCP tool calls; support all of clj-kondo's analysis capabilities; support an optional explicit configuration directory. The server provides only one tool, lint_clojure, for linting Clojure/ClojureScript/EDN content.
Usage: first install clj-kondo and ensure it is available in the system PATH; then install dependencies and build the server. After running the server, add the configuration to the MCP settings file (for example, Cline's cline_mcp_settings.json). The file parameter of lint_clojure can accept a single file path, a directory path (recursively lint all .clj, .cljs, and .cljc files), or a classpath string; Leiningen projects can use the output of lein classpath, and deps.edn projects can use the output of clojure -Spath. Because the MCP server runs as a separate process, both the file and configDir parameters must use absolute paths; relative paths do not work properly. By default, clj-kondo looks for configuration in the .clj-kondo directory of the current directory and parent directories, and the configuration directory can also be specified through the configDir parameter.
Applicable scenarios: after editing Clojure-related code in Claude Code or a desktop environment, have the AI execute linting through MCP calls; you may also consider requiring linting after edits in CLAUDE.md.
Limitations: clj-kondo must be installed in advance and configured in PATH; path parameters must be absolute paths; the material does not provide more information on platform support, pricing, or effectiveness.