Nrepl MCP Server

MCP server for interacting with nREPL

Local serverstdioTypeScript

What is the Nrepl MCP server?

Nrepl MCP server is a locally run integration for AI assistants that speak the Model Context Protocol. MCP server for interacting with nREPL.

What you get

A Model Context Protocol (MCP) server designed for MCP clients, such as Claude Desktop or CLine in VSCode. This server can be used with any LLM when used with CLine. This server enables interaction with a running Clojure nREPL instance, allowing evaluation of Clojure code, namespace inspection, and other utilities via MCP.

  • Connect — to a running nREPL server by specifying host and port
  • Evaluate Clojure code — in a given namespace or the current one
  • List project namespaces — using tools.namespace
  • Retrieve nREPL connection status — , including host, port, and session details
  • Inspect public vars — in any Clojure namespace, displaying metadata such as docstrings and values

Setting it up

The server ships on npm as nrepl-mcp-server, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the nrepl mcp server does with a few real requests.

Choosing this one

Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. It is maintained by JohanCodinha; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

How to install the Nrepl MCP server

{
     "mcpServers": {
       "nrepl-mcp-server": {
         "command": "npx",
         "args": [
           "nrepl-mcp-server"
         ],
         "disabled": false,
         "autoApprove": []
       }
     }
   }

Configuration as documented by the project. Restart the client after saving.

Frequently asked questions

It connects Nrepl to MCP-compatible AI assistants such as Claude and Cursor. Instead of copying data back and forth by hand, the assistant works with Nrepl directly.