drio
Open app

LivebookTools

Source

Powertools for livebook.dev — AI Code Editing, MCP Servers, and Running Livebooks from the CLI

Catalog onlyCatalog onlySTDIO

Overview

LivebookTools is a command-line interface (CLI) tool designed to enhance the experience of working with .livemd files in Livebook, providing features for AI code editing and server management.

To use LivebookTools, install it via Elixir escript with the command mix escript.install github thmsmlr/livebook_tools. Ensure the escript directory is in your PATH, and set up the necessary environment variables to connect to a Livebook server.

  • BYOE (Bring Your Own Editor): Sync .livemd files to an open Livebook session for editing in AI-powered code editors. - MCP Server: Connect AI coding agents to Livebook sessions using a simple model context protocol. - Run Livebooks from the CLI: Convert .livemd files to Elixir scripts and execute them as .exs scripts.
  1. Editing Livebook files with AI assistance.
  2. Running Livebook scripts as cron jobs.
  3. Connecting AI coding agents for enhanced coding experiences.

Add to your AI client

Use these steps to connect LivebookTools in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "livebook-tools-thmsmlr": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-livebook-tools-thmsmlr"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "livebook-tools-thmsmlr": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-livebook-tools-thmsmlr"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "livebook-tools-thmsmlr": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-livebook-tools-thmsmlr"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "livebook-tools-thmsmlr": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-livebook-tools-thmsmlr"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "livebook-tools-thmsmlr": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-livebook-tools-thmsmlr"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "livebook-tools-thmsmlr": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-livebook-tools-thmsmlr"
      ]
    }
  }
}

FAQ

How do I install LivebookTools?

Use the command `mix escript.install github thmsmlr/livebook_tools` to install it.

What is the MCP Server?

The MCP Server allows AI coding agents to connect to Livebook sessions, enhancing coding capabilities.

Can I use any AI code editor with LivebookTools?

Yes, as long as the editor supports the model context protocol.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2096,"uuid":"6a329ad7-e58e-4c23-b1b1-1401ccfa2f43","name":"livebook_tools","title":"LivebookTools","description":"Powertools for livebook.dev — AI Code Editing, MCP Servers, and Running Livebooks from the CLI","avatar_url":"https://avatars.githubusercontent.com/u/167206?v=4","created_at":"2025-03-09T03:30:01.567Z","updated_at":"2025-03-12T10:18:20.335Z","status":"created","author_name":"thmsmlr","author_avatar_url":"https://avatars.githubusercontent.com/u/167206?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/thmsmlr/livebook_tools","target":"_self","content":"$29","summary":"$2a","img_url":"https://github.com/thmsmlr/livebook_tools/raw/master/assets/cursor-create-mcp-server.png","type":null,"metadata":"{\"star\":\"76\",\"license\":\"\",\"language\":\"Elixir\",\"is_official\":false,\"latest_commit_time\":\"2025-04-24 17:58:01\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]