
Basilisp nREPL MCP Bridge
STDIOBridge connecting Claude Code to Basilisp nREPL for Lisp code execution
Bridge connecting Claude Code to Basilisp nREPL for Lisp code execution
This project provides a bridge between Anthropic's Model Control Protocol (MCP) and Basilisp's nREPL server, allowing Claude Code to interact directly with a Basilisp REPL. Actually, it should work with any nREPL, but the current prompts are Basilisp focused.
Start a Basilisp nREPL server:
basilisp nrepl-server --port 36915
Add the MCP bridge to Claude Code:
claude mcp add /home/a/subjective/snr/basilisp_mcp_bridge.py
Connect with Claude and use the available tools:
eval_code(code)
- Evaluate Basilisp codeget_docs(symbol)
- Get documentation for a symbolfind_namespace_vars(namespace)
- List variables in a namespacelist_namespaces()
- List all available namespacescheck_connection()
- Verify nREPL connectivity;; Import a module (import [math :as math]) ;; Access an attribute (. math -pi) ;; or (.-pi math) ;; Call a method (.sin math 0) ;; Create Python data structures #py{"key" "value"}