Description

This Babashka MCP server, developed as an open-source project, enables AI assistants to interact with Babashka, a native Clojure interpreter for scripting. Built with TypeScript and leveraging the @modelcontextprotocol/sdk, it provides tools for executing Babashka code, caching recent command results, and accessing command history through standardized MCP endpoints. The implementation features configurable command timeouts and a roadmap for self-hosting in Babashka itself. By connecting AI capabilities with Babashka's scripting power, this server allows for dynamic code execution and interaction with Clojure ecosystems. It is particularly useful for scenarios involving Clojure-based data processing, system automation, or building AI-assisted development tools for Clojure projects.

Installation

git clone https://github.com/bmorphism/babashka-mcp-server

Claude Desktop Configuration

Add this configuration to your Claude Desktop config file to enable this MCP server:

Config file location: ~/Library/Application Support/Claude/claude_desktop_config.json

Config file location: %APPDATA%\Claude\claude_desktop_config.json

Config file location: ~/.config/Claude/claude_desktop_config.json

claude_desktop_config.json
{
  "mcpServers": {
    "babashka": {
      "command": "node",
      "args": [
        "path/to/server.js"
      ]
    }
  }
}