Clojure REPL
Model Context Protocol Clojure support including REPL integration with development tools.
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
Maintainer
Works with
Installation
Manual Installation
npx replConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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
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"}}}}}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-mcpStart 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 8080Configure 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"
}
}
}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.
Clojure REPL Alternatives — Similar Developer Tools Servers
Looking for alternatives to Clojure REPL? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
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.
Set Up Clojure REPL in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.