Clojure REPL

v1.0.0Developer Toolsstable

Model Context Protocol Clojure support including REPL integration with development tools.

replmcpai-integration
Share:
42
Stars
0
Downloads
0
Weekly
0/5

What is Clojure REPL?

Clojure REPL is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to model context protocol clojure support including repl integration with development tools.

Model Context Protocol Clojure support including REPL integration with development tools.

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Model Context Protocol Clojure support including REPL integr

Use Cases

Execute Clojure code with REPL integration.
Develop with Clojure through AI assistants.
simm-is

Maintainer

LicenseMIT
Languageclojure
Versionv1.0.0
UpdatedJan 27, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx repl

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Clojure REPL

repl-mcp is a Clojure MCP server that connects AI assistants to a live nREPL session, exposing 51 tools for evaluating code, analyzing projects, running tests, refactoring, and profiling Clojure applications. It bridges the Clojure development toolchain — including clj-kondo for linting, cljfmt for formatting, and clj-async-profiler for flamegraphs — directly into your AI client. Clojure developers use it to let Claude write and immediately execute Clojure code, navigate large codebases, find unused variables, and generate test skeletons without switching away from their AI assistant.

Prerequisites

  • Clojure CLI (clojure) and deps.edn installed
  • Java 11 or later (JVM runtime for Clojure)
  • An MCP client such as Claude Desktop or Claude Code
  • Optional: clj-kondo and cljfmt on the classpath for lint and format tools
  • Optional: JVM profiling flags for cpu/alloc profiling tools
1

Add repl-mcp to your deps.edn

Add the repl-mcp alias to your project's deps.edn (or to ~/.clojure/deps.edn for global use), pointing to the GitHub repo with the latest SHA.

{:aliases
 {:repl-mcp {:main-opts ["-m" "is.simm.repl-mcp"]
             :extra-deps {is.simm/repl-mcp {:git/url "https://github.com/simm-is/repl-mcp"
                                            :git/sha "LATEST_SHA"}}}}}
2

Start repl-mcp in STDIO mode

Launch the server in stdio mode for use with Claude Desktop or any stdio-based MCP client. This starts an nREPL server on port 17888 automatically.

clojure -M:repl-mcp
3

Start repl-mcp in HTTP+SSE mode (optional)

For remote or multi-client access, run in HTTP with Server-Sent Events transport on port 8080.

clojure -M:repl-mcp --transport sse --http-port 8080
4

Configure Claude Desktop

Add repl-mcp to your claude_desktop_config.json, pointing to your project directory so it evaluates code in the right context.

{
  "mcpServers": {
    "clojure-repl": {
      "command": "clojure",
      "args": ["-M:repl-mcp"],
      "cwd": "/path/to/your/clojure/project"
    }
  }
}
5

Verify the server is running

After connecting, ask your AI client to evaluate a simple expression to confirm the REPL is live.

Clojure REPL Examples

Client configuration

Claude Desktop config for repl-mcp running from a specific Clojure project directory.

{
  "mcpServers": {
    "clojure-repl": {
      "command": "clojure",
      "args": ["-M:repl-mcp"],
      "cwd": "/home/user/my-clojure-project"
    }
  }
}

Prompts to try

Sample prompts that use repl-mcp's eval, analysis, refactoring, and testing tools.

- "Evaluate (map inc [1 2 3 4 5]) and show me the result"
- "Find all unused variables in the src/ directory"
- "Create a test skeleton for the functions in src/myapp/core.clj"
- "Profile CPU usage of (reduce + (range 1000000)) for 5 seconds and show me a flamegraph"
- "Clean up the namespace declarations in src/myapp/core.clj"

Troubleshooting Clojure REPL

clojure command not found when Claude Desktop tries to start the server

Use the full path to the Clojure CLI in your config, e.g. /usr/local/bin/clojure or /opt/homebrew/bin/clojure. Run 'which clojure' in your terminal to find the correct path.

nREPL server fails to start on port 17888

Another nREPL server may already be listening on that port. Stop it, or configure repl-mcp to use a different port by checking for a --nrepl-port flag in the project's startup options.

lint-code or format-code tools return errors

Ensure clj-kondo and cljfmt are on your project's classpath by adding them as dependencies in deps.edn. repl-mcp requires them to be available in the same JVM process.

Frequently Asked Questions about Clojure REPL

What is Clojure REPL?

Clojure REPL is a Model Context Protocol (MCP) server that model context protocol clojure support including repl integration with development tools. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Clojure REPL?

Follow the installation instructions on the Clojure REPL GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Clojure REPL?

Clojure REPL works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Clojure REPL free to use?

Yes, Clojure REPL is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "repl": { "command": "npx", "args": ["-y", "repl"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Clojure REPL?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides