SuperAPIAI Directory

clj-kondo-MCP

github.com · AI developer platforms

clj-kondo-MCP is a Model Context Protocol (MCP)-based server that provides clj-kondo static linting capabilities for Clojure, ClojureScript, and EDN files. It is suitable for use in environments such as Claude Code and Claude Desktop that do not have built-in lint functionality, allowing AI assistants to lint code through MCP tool calls. The project provides a single tool, lint_clojure, which can accept a single file path, a directory path, or a classpath string, and supports an optional explicit configuration directory. Before use, you need to install clj-kondo yourself and ensure it is in the system PATH, then install dependencies and build the server, and then add it to the MCP settings file.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

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.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools