julia-mcp
by aplavin·★ 63·Score 46
MCP server for persistent Julia sessions, avoiding startup costs and preserving state between calls.
Overview
The julia-mcp server provides AI assistants with efficient Julia code execution capabilities. It eliminates Julia's startup and compilation overhead by maintaining persistent sessions across multiple calls, preserving variables, functions, and loaded packages between iterations. Each project directory gets its own isolated Julia process, and the server uses pure stdio transport without requiring open ports or sockets.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose julia-mcp when you need efficient Julia code execution with state persistence across multiple interactions, especially for Julia package development or scientific computing workflows.
When NOT to choose this
Avoid if you need Julia script execution with completely isolated runs or if you're working in an environment where Python is not available (the MCP server itself is written in Python).
Tools this server exposes
3 tools extracted from the READMEjulia_evaljulia_eval(code, env_path?, timeout?)Execute Julia code in a persistent session
julia_restartjulia_restart(env_path?)Restart a Julia session, clearing all state
julia_list_sessionsList active Julia sessions and their status
Comparable tools
Installation
Installation
- Clone the repository:
git clone https://github.com/aplavin/julia-mcp.git
cd julia-mcp- Register with Claude Desktop (add to
claude_desktop_config.json):
{
"mcpServers": {
"julia": {
"command": "uv",
"args": ["run", "--directory", "/path/to/julia-mcp", "python", "server.py"]
}
}
}- Prerequisites: Install uv and Julia (julia binary must be in PATH). Recommended packages: Revise.jl and TestEnv.jl.
FAQ
- How does julia-mcp handle session persistence?
- It keeps Julia sessions alive across multiple calls, preserving variables, functions, and loaded packages to avoid startup and compilation costs each time.
- Can I use julia-mcp with AI clients other than Claude?
- Yes, the documentation includes setup instructions for multiple clients including Codex CLI, VS Code Copilot, and GitHub Copilot Cloud Agent.
Compare julia-mcp with
Last updated · Auto-generated from public README + GitHub signals.