JuliaSAFE
MCP server for persistent Julia sessions — fast iteration without startup/compilation overhead
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
MCP server that gives AI assistants access to efficient Julia code execution. Avoids Julia's startup and compilation costs by keeping sessions alive across calls, and persists state (variables, functions, loaded packages) between them — so each iteration is fast.
- Sessions start on demand, persist state between calls, and recover from crashes — no manual management
- Each project directory gets its own isolated Julia process
- Pure stdio transport — no open ports or sockets
Tools
- julia_eval(code, env_path?, timeout?) — execute Julia code in a persistent session.
env_pathsets the Julia project directory (omit for a temporary session).timeoutdefaults to 60s and is auto-disabled forPkgoperations. - julia_restart(env_path?) — restart a session, clearing all state. If
env_pathis omitted, restarts the temporary session. - julia_list_sessions — list active sessions and their status
Requirements
- uv (you might already have it installed)
- Julia – any version,
juliabinary must be inPATH - Recommended packages – used automatically if available in the global environment:
- Revise.jl - to pick code changes up without restarting
- TestEnv.jl — to properly activate test environment when
env_pathpoints to/test/
The server itself is written in Python since the Python MCP protocol implementation is very mature.
Usage
First, clone the repository:
cd /any_directory git clone https://github.com/aplavin/julia-mcp.git
Then register the server with your client of choice (see below).
That's it! Your AI assistant can now execute Julia code more efficiently, saving of TTFX.
Claude Code
User-wide (recommended — makes Julia available in all projects):
claude mcp add --scope user julia -- uv run --directory /any_directory/julia-mcp python server.py
Project-scoped (only
d264236d59ccOBSERVED · 2026-10-07Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add julia-mcp -- uvx julia-mcp
{
"mcpServers": {
"julia-mcp": {
"command": "uvx",
"args": [
"julia-mcp"
]
}
}
}Exposed tools (3)
1 read · 2 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
julia_eval | write | ALWAYS use this tool to run Julia code. NEVER run julia via command line. |
julia_list_sessions | read | List all active Julia sessions and their environments. |
julia_restart | write | Restart a Julia session, clearing all state. |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (2 observation(s))
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (0)
No findings outside the package's declared scope.
Gates applied: no_behavioural_pass.
d264236d59ccfull audit observations/trust-audit/mcp-server/aplavin__julia.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-07 | d264236d59cc | SAFE | B | 89 | first audit |
Questions
What is the Julia MCP server?
MCP server for persistent Julia sessions — fast iteration without startup/compilation overhead
What tools does Julia expose?
3 in total: 1 read-only, 2 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Julia safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Julia need?
No credential environment variables were found in its source, so it appears to need none.
How does Julia run?
It speaks stdio, so it runs as a local process your client starts. It is published on PyPI as julia-mcp.
How current is this page?
The grade is for one exact copy of the source (d264236d59cc), read on 2026-10-07. The repository is watched and re-audited when it changes.