# \[ANN\] julia-mcp — persistent Julia sessions for AI assistants

**URL:** https://discourse.julialang.org/t/ann-julia-mcp-persistent-julia-sessions-for-ai-assistants/135386
**Category:** Package Announcements
**Tags:** ai
**Created:** [February 1, 2026, 3:20pm UTC](https://discourse.julialang.org/t/ann-julia-mcp-persistent-julia-sessions-for-ai-assistants/135386 "2026-02-01T15:20:48Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![aplavin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aplavin/32/222056_2.png) [@aplavin](https://discourse.julialang.org/u/aplavin)
#### Post date: [February 1, 2026, 3:20pm UTC](https://discourse.julialang.org/t/ann-julia-mcp-persistent-julia-sessions-for-ai-assistants/135386/1 "2026-02-01T15:20:48Z")

</div>

If you use AI coding assistants (Claude Code, Claude Desktop, VS Code Copilot), you’ve probably noticed they pay Julia’s startup and compilation costs on every single code execution and test run. That adds up fast during iterative development.

[julia-mcp](https://github.com/aplavin/julia-mcp) is an MCP server that keeps Julia sessions alive across calls. Variables, functions, and loaded packages persist between executions, and the assistant can iterate on code without waiting for recompilation each time.  
Works for tests as well!

Key design choices:

- **Fully automatic** — sessions start on demand, recover from crashes, and clean up on shutdown. The only setup is a one-time MCP registration.

- **Isolated per project** and **per AI session** — each project directory gets its own Julia process. No cross-contamination between environments and sessions.

- **Pure stdio** — no TCP ports or sockets to manage.

- **Revise.jl** is loaded automatically if available, so code changes are picked up without restarting.

There are other projects in this space — [MCPRepl.jl](https://discourse.julialang.org/t/ann-mcprepl-jl-share-your-repl-with-your-ai-agent/130536), REPLicant.jl, DaemonConductor.jl — each with a different take.  
`julia-mcp`’s angle is zero manual management: you register it once and forget about it.

Setup for Claude Code:

```bash
cd /any_directory
git clone https://github.com/aplavin/julia-mcp.git
claude mcp add --scope user julia -- uv run --directory /any_directory/julia-mcp python server.py

```

The server is written in Python (the MCP protocol ecosystem is most mature there), the only dependencies are `uv` and Julia itself.

Repo: [GitHub - aplavin/julia-mcp: MCP server for persistent Julia sessions — fast iteration without startup/compilation overhead](https://github.com/aplavin/julia-mcp).

Feedback and suggestions welcome!

---

_[View the full topic](https://discourse.julialang.org/t/ann-julia-mcp-persistent-julia-sessions-for-ai-assistants/135386)._
