Track MCP LogoTrack MCP
Track MCP LogoTrack MCP

The world's largest repository of Model Context Protocol servers. Discover, explore, and submit MCP tools.

Product

  • Categories
  • Top MCP
  • New & Updated
  • Submit MCP

Company

  • About

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie Policy

© 2026 TrackMCP. All rights reserved.

Built with ❤️ by Krishna Goyal

    Babashka Mcp Server

    A Model Context Protocol server for interacting with Babashka, a native Clojure interpreter for scripting

    15 stars
    JavaScript
    Updated Oct 17, 2025

    Table of Contents

    • Features
    • Prerequisites
    • Install Babashka
    • macOS
    • Linux
    • Windows
    • Verify Installation
    • Installation
    • Configuration
    • Tools
    • execute
    • Resources
    • Babashka Language Features
    • Tail Call Optimization (TCO)
    • Useful Resources
    • Official Resources
    • Community Tools & Libraries
    • Development Tools
    • Development
    • Roadmap

    Table of Contents

    • Features
    • Prerequisites
    • Install Babashka
    • macOS
    • Linux
    • Windows
    • Verify Installation
    • Installation
    • Configuration
    • Tools
    • execute
    • Resources
    • Babashka Language Features
    • Tail Call Optimization (TCO)
    • Useful Resources
    • Official Resources
    • Community Tools & Libraries
    • Development Tools
    • Development
    • Roadmap

    Documentation

    Babashka MCP Server

    A Model Context Protocol server for interacting with Babashka, a native Clojure interpreter for scripting.

    Features

    • Execute Babashka code through MCP tools
    • Cache recent command results
    • Access command history through MCP resources
    • Configurable command timeouts

    Prerequisites

    Install Babashka

    Babashka can be installed in several ways:

    macOS

    bash
    brew install borkdude/brew/babashka

    Linux

    bash
    bash < <(curl -s https://raw.githubusercontent.com/babashka/babashka/master/install)

    Windows

    powershell
    # Using scoop
    scoop install babashka

    For other installation methods, see the official Babashka installation guide.

    Verify Installation

    After installation, verify Babashka works:

    bash
    # Check version
    bb --version
    
    # Try a simple expression
    bb -e '(+ 1 2 3)'
    
    # Run a script from string
    bb -e '(defn hello [x] (str "Hello, " x "!")) (hello "World")'
    
    # Use -i flag to process lines of input
    ls | bb -i '(take 2 *input*)'

    Installation

    bash
    # Install dependencies
    npm install
    
    # Build the MCP server
    npm run build

    Configuration

    The server can be configured through environment variables:

    • BABASHKA_PATH: Path to the Babashka executable (default: "bb")

    Tools

    execute

    Execute Babashka code with optional timeout:

    typescript
    {
      name: "execute",
      arguments: {
        code: string;      // Babashka code to execute
        timeout?: number;  // Timeout in milliseconds (default: 30000)
      }
    }

    Example:

    typescript
    {
      name: "execute",
      arguments: {
        code: "(+ 1 2 3)",
        timeout: 5000
      }
    }

    Resources

    The server maintains a cache of recent command executions accessible through:

    • babashka://commands/{index} - Access specific command results by index

    Babashka Language Features

    Tail Call Optimization (TCO)

    Babashka supports explicit tail call optimization through the recur special form, but does not implement automatic TCO. For example:

    clojure
    ;; This will cause stack overflow
    (defn countdown [n]
      (if (zero? n)
        :done
        (countdown (dec n))))
    
    ;; This works with TCO using recur
    (defn countdown [n]
      (if (zero? n)
        :done
        (recur (dec n))))

    Useful Resources

    Official Resources

    • Babashka GitHub Repository - The main Babashka project
    • Babashka Book - Official documentation
    • Babashka Examples - Collection of example scripts

    Community Tools & Libraries

    • pod-babashka-buddy - Cryptographic API for Babashka
    • bb-clis - Collection of useful Babashka CLI scripts
    • bb-scripts - Various utility scripts for Babashka

    Development Tools

    • setup-babashka - GitHub Actions for installing Babashka
    • babashka-docker-action - Run Babashka scripts in GitHub Actions

    Development

    This server is designed to eventually become self-hosting, meaning it will be rewritten in Babashka itself. The current TypeScript implementation serves as a reference and starting point.

    Roadmap

    1. Self-Hosted Implementation

    • Rewrite the MCP server in Babashka
    • Leverage Babashka's native capabilities for better performance
    • Remove Node.js dependency
    • Maintain full compatibility with MCP protocol
    • Support all current features:
    • Command execution
    • Resource management
    • Command history
    • Timeout handling

    2. Enhanced Features

    • Add support for Babashka pods
    • Implement file watching capabilities
    • Add REPL integration
    • Support for multiple Babashka instances

    3. Performance Optimizations

    • Implement caching strategies
    • Optimize resource usage
    • Reduce startup time

    4. Testing & Documentation

    • Comprehensive test suite
    • API documentation
    • Usage examples
    • Performance benchmarks

    Similar MCP

    Based on tags & features

    • WA

      Waha Mcp

      JavaScript00
    • WI

      Wizzy Mcp Tmdb

      JavaScript00
    • RI

      Rijksmuseum Mcp

      JavaScript·
      59
    • MC

      Mcp Server Playwright

      JavaScript·
      262

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k
    View All MCP Servers

    Similar MCP

    Based on tags & features

    • WA

      Waha Mcp

      JavaScript00
    • WI

      Wizzy Mcp Tmdb

      JavaScript00
    • RI

      Rijksmuseum Mcp

      JavaScript·
      59
    • MC

      Mcp Server Playwright

      JavaScript·
      262

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k