nREPL MCP Server is an MCP server that bridges Model Context Protocol clients with a running Clojure nREPL instance. Developed for Clojure software engineers and developers using AI assistants like Claude Desktop or Cline in VSCode, this tool enables direct runtime interaction with Clojure projects. Users can instruct their AI client to establish a connection to an nREPL host and port, evaluate arbitrary Clojure code, and inspect public variables along with their docstrings and runtime values. Additionally, the server can list all project namespaces using tools.namespace and expose real-time status data, such as connection state, session IDs, and active namespaces via custom MCP resources. By operating over standard input and output, it provides a structured bridge for language models to verify syntax, run REPL-driven development tasks, explore project namespaces, and troubleshoot Clojure code directly within an active application context without leaving the editor or client interface.
Category: Developer Tools & Code Intelligence
Tags: clojure, code-evaluation, nrepl, repl
To install and configure nREPL MCP Server with Claude Desktop or Cline in VSCode, add the server to your client's configuration file: 1. Open your client settings (such as MCP Settings in Claude Desktop or Cline). 2. Add the server entry under mcpServers: json { "mcpServers": { "nrepl-mcp-server": { "command": "npx", "args": [ "nrepl-mcp-server" ], "disabled": false, "autoApprove": [] } } } 3. Save the configuration file. 4. Restart the MCP client to start the server over stdio.
Part of MCP Servers
nREPL MCP Server enables AI clients to connect to a running Clojure nREPL process. It allows the model to evaluate Clojure expressions, inspect public variables and docstrings, discover project namespaces via tools.namespace, and monitor connection status and active session IDs.
You can configure it directly in your MCP client by adding an entry under mcpServers that executes npx with the argument nrepl-mcp-server. Alternatively, you can clone the repository from GitHub, run npm install, transpile the project with npm run build, and start it via npm start.
The server communicates over standard input and output (stdio), making it compatible with any MCP-compliant client. Supported clients explicitly mentioned in the documentation include Claude Desktop and Cline for Visual Studio Code.
Yes, nREPL MCP Server is open source. The project is distributed under the terms of the MIT License, which permits users to freely inspect, modify, and distribute the software.