Skip to content
Yu Shen edited this page Nov 11, 2025 · 2 revisions

Integration with Cursor as of 2025-11-11.

Besides setting of nREPL and Clojure-MCP per REAMDME, you just need to add/introduce a MCP sever for Clojure-MCP in Cursor by adding a new MCP server in Cursor settings, for example:

  "mcpServers": {
    "clojure-mcp": {
      "command": "clojure -X:mcp :port 7888"
    }
  }

(simply putting the command to start the Clojure-MCP as the value for "command".

Past Notes

CleanShot 2025-05-29 at 14 18 43@2x

If you are running into "Failed to create client errors" when following the README setup instructions, try the following:

  1. First, test the MCP server in Claude Desktop to make sure you are already set up properly.
  2. If that is working, create a separate bash script that runs the command for starting the MCP server. For most people it should look something like this:
#!/bin/sh
cd /absolute/path/to/clojure-mcp && clojure -X:mcp :port 7888
  1. Make the script executable
chmod a+x /absolute/path/to/script
  1. Add to Cursor's MCP settings
  "mcpServers": {
    "clojure-mcp": {
      "command": "/absolute/path/to/script"
    }
  }
  1. Reload from Cursor Settings and you should be good to go! CleanShot 2025-05-29 at 14 31 47@2x

Clone this wiki locally