Skip to main content

salpa-mcp

Let your own AI agent drive your own Salpa, over the Model Context Protocol.

Salpa runs scientific workflows (molecular simulation, docking and similar) on your computer, one step per node on a canvas. With salpa-mcp, an agent you already use can list Salpa's workflow templates, prepare a workflow from one in one of your projects, change its steps' settings, run it, read what each step made, and show you any of it in Salpa's window when you ask, through the same local API the app's own window uses. Where your agent's host draws cards, a run your agent starts, or one you ask to see, comes with a card that follows it to its end (below).

Setting it up

In Claude Code:

claude mcp add salpa -- uvx salpa-mcp

In Claude Desktop, add it to claude_desktop_config.json (Settings, Developer, Edit Config), with uvx's full path as the command:

{
  "mcpServers": {
    "salpa": { "command": "/full/path/to/uvx", "args": ["salpa-mcp"] }
  }
}

which uvx prints that path on a Mac and on Linux, where uvx on Windows. On Windows, write the path's backslashes doubled, as JSON needs them, or as forward slashes:

{
  "mcpServers": {
    "salpa": { "command": "C:\\path\\to\\uvx.exe", "args": ["salpa-mcp"] }
  }
}

("C:/path/to/uvx.exe" works as well.) Claude Desktop, like any client started from the Dock or the Start menu, may not see your shell's PATH, and then cannot find a bare uvx. Other clients that read an mcpServers table take the same entry. Salpa's Settings, under Connect an agent, shows both: Claude Code's line, and the mcpServers JSON with uvx's full path filled in when Salpa finds it. Restart Claude Desktop after changing its configuration. Before it draws a run's card, Claude Desktop asks you whether to allow it: Allow once asks again next time, Always allow does not.

Updating

uvx keeps the version of salpa-mcp it first fetched. If you set it up before, fetch the newest once, then restart your agent:

uvx salpa-mcp@latest --version

It prints the version and exits; it starts no server.

There is nothing to paste from Salpa: salpa-mcp finds the Salpa running on this computer, as you, on port 18000 unless SALPA_PORT or SALPA_APP_URL says otherwise, with the app's per-launch local API token. Start Salpa before you ask your agent to use it; when Salpa is not running, every tool says so.

It needs Python 3.10 or later, which uvx chooses for you, and Salpa 0.12.0 or later. Changing a step's settings (set_node_options) needs Salpa 0.15.0 or later, the run card, show_run, list_runs and outputs by a run's id Salpa 0.22.0 or later, proposals (below) Salpa 0.28.0 or later, and showing you something in Salpa (open_in_salpa, and the card's Open in Salpa) Salpa 0.30.0 or later.

What's new in 0.6.0

  • A run's files in one call. Asked what files a run made, your agent calls outputs once with the run's id, and gets every step, in the order the run took them, with the files it made: each one's name, where it is in your workflow's folder, its kind and size, and whether it is still there. Until 0.6.0 it took a call for each step. outputs for one step works as it did.
  • Open in Salpa's answer stands out. On the run card, what Salpa's window did when you pressed Open in Salpa is written in ink, after a mark (✓ shown, … still to do, ✕ not shown), in a box that stays.
  • Names as Salpa shows them. The names list_runs, list_workflows, show_run, outputs and the card give, a workflow's, a project's, a step's or a file's, lose control characters, direction controls and invisible characters, as Salpa's own window drops them.

The tools

Tool What it does
list_templates The workflow templates Salpa offers, and whether each one's packages are installed
list_nodes The steps installed in Salpa, with their default settings; optionally filtered
list_projects Your projects, with the question each was made for, its folder and its workflows
list_workflows Your workflows, the most recently changed first: each one's id, name, project, how many steps it has, and when it was made and last changed, never its description, a folder or a path; how your agent finds a workflow by its name, one that has never run too
load_template Prepare a new workflow from a template, in a folder you name, and in a project if you say which
read_workflow A workflow's steps, their settings, the links between them, its folder, whether it is open in Salpa
set_node_options Change settings of one step: at once in a workflow that is not open in Salpa, else as a proposal
proposal_status What became of a proposal: still waiting, applied, declined, lapsed or replaced
run Run a workflow, or one step of it; gives the run's id, and draws the run's card where your agent's host draws cards
list_runs Salpa's recent runs, newest first, or one workflow's: each one's id, workflow, project, number, status, times and who started it, never its error, a folder or a path; how your agent finds the run you ask to see
show_run Show you a run here, in the conversation, by its id, as a workflow's newest, or as Salpa's newest: draws its card, and answers your agent a short summary with no folder or path; only when you ask to see a run here
job_status Where a run stands
history The latest runs of a workflow or of one step
outputs The files a run made: every step's, in the order the run took them, in one call by the run's id, with no folder written out; or one step's, by its workflow and its id, as Salpa lists them
cancel Stop a run
open_in_salpa Show you a project, a workflow, one step of a workflow, or a run in Salpa's own window, in a tab of its own; only when you ask to see it there. Says what Salpa's window did

One ask, one of the two: a run you ask to see here is show_run's, one you ask to see in Salpa is open_in_salpa's. To show you a run it has no id for, your agent finds it first with list_runs, by its workflow, when it ran or who started it; show_run with no id shows Salpa's newest run, and your agent is told never to start a run in order to have one to show. To find one of your workflows by its name, one that has never run too, your agent asks list_workflows: list_runs knows a workflow only once it has run, and a template is not a workflow. To tell you what files a run made, your agent asks outputs once, with the run's id, for every step's files. Two more tools, run_card and run_card_show, are the card's own (below): they say only the card may call them, and a host that keeps to MCP Apps' visibility, as Claude Desktop does, hides them from your agent's model (measured with salpa-mcp 0.4.0: Claude Desktop 5.11492.5 offered its model the fifteen others it had then, on 2026-11-16). So salpa-mcp has eighteen tools: the sixteen above for your agent, and two for the card.

The run card

When your agent starts a run with run, and whenever it shows you one with show_run (because you asked to see a run, one you started in Salpa, or a workflow's last), a host that draws cards draws Salpa's run card for you in the conversation. Claude Desktop does, after asking whether to allow it. Claude Code draws none: your agent reads show_run's answer as text instead, which holds the run's title and workflow, its status, when it started and ended and how long it took, who started it, the first line of its error, and each step's name, its id, status, time and how many files it made (forty steps at most, and how many more); no file's name, and no step's error. For the files themselves, your agent asks outputs with the run's id, which its answer names.

What it shows: the run's title ("Run 3", or "Run 3 · one step: Hello Reveal"), its workflow, its status in words with a mark beside them, when it started (in your own time, with its date when it was not today), how long it took or has taken so far, and who started it. Then each step in the order it runs: its status, its time, a failed step's error, how many warnings it gave, and the files it made, by name and size (twenty at most, and how many more; behind each step's "Show N files" when the run is large, decided when the step's files first appear, so a list on screen never folds away). And one button, Open in Salpa, which asks Salpa's window to bring the run forward and says, in plain words, what Salpa's window did: beside the button, in a box of its own that stays until you press it again, after a mark, ✓ for shown, … for something you or Salpa still have to do (press Show in Salpa, open Salpa, wait a moment), ✕ for not shown.

What it never shows: a folder or a path, in any text it shows, errors included. Your workflow's folder is written <folder>, its project's folder <project folder>, your home folder ~, and any other absolute path <path>, in each of these forms:

  • POSIX and Windows paths, a Windows path with either slash, with its backslashes doubled as Python's error text and JSON write them, and in either case;
  • extended and device paths (\\?\D:\…, \\.\D:\…), network shares (\\server\share, //server/share, \\wsl$\…), a Windows folder's WSL form (/mnt/d/…), another person's home (~bob/…), and file: and abs: paths;
  • a path with its slashes escaped as JSON writes them (\/srv\/x), or doubled (/srv//x), and your folders after a .. that climbs into them;
  • a path straight after =, a colon, an escape such as \n, a redirect, an arrow or a tag.

A web address keeps its host and path and loses its user, its query and its fragment, where keys and tokens ride; a file-sharing one (smb:, afp:, nfs:, cifs:, sftp:, ftp:) keeps only its host. In an error, a credential keeps its name and loses its value when the value looks like one: quoted, or sixteen characters or more (Authorization: Bearer <hidden>, password='<hidden>', a key such as sk-… or AKIA…); names and the card's own lines are never read for credentials. show_run's answer to your agent's model holds none of these either. The rule does not cover a percent-encoded path (%2Fsrv%2F…), the path of an s3:, gs: or hdfs: address, a key inside an address's path, an unknown folder's path glued to a word (-I/opt/…), a relative path, or a folder whose name holds a quote, |, : or <…>.

Nor does the card show a run's settings, a step's traceback or its program's output: only the error its node gave, or, when the step's program ended without one (a crash, a kill), how it ended and the last line it wrote to its error stream, such as Segmentation fault. Nor its warnings' text, its checks, what has changed since, or your files' contents: Open in Salpa shows you all of that in Salpa's own run page. It has no button that runs, stops, installs, applies or deletes anything, and it never marks a run read. When the call that drew it failed, the card never shows that call's answer, which is your agent's: it reads the run itself when it can, and else says, in its own words, that the call failed.

What it may call: nothing but its host. The card cannot reach Salpa itself and never holds the app's token: it asks your agent's host, which asks salpa-mcp, which asks Salpa. It calls two tools, each its own, and no other: run_card, which reads the run and can do nothing else, and run_card_show, which asks Salpa's window to show the run when you press Open in Salpa, as open_in_salpa does, and can do nothing else. Every tool your agent's model has says it is the model's only, so a host that keeps to MCP Apps' visibility refuses the card any of them; the card asks for none of them in any case. It loads nothing from anywhere, opens no link, and sends nothing to the conversation or to the model. Two risks remain, and they are the host's to close. On a host that gives several servers' cards one origin, another server's card could make this card's calls: read a run, or ask Salpa's window to show it. On a host that passes every call on, without keeping to MCP Apps' visibility, a card could call any of salpa-mcp's tools, until the host enforces visibility. Claude Desktop passes every call on: measured on 2026-11-16 (5.11492.5), a call to run or open_in_salpa made from inside the card reached salpa-mcp, and you were asked nothing. So in Claude Desktop the card's own code is the guard: it asks for its two tools and no other, sets every value it shows as text, and loads nothing, so nothing it shows can make it call another. Whether Claude Desktop gives each connector's cards an origin of their own is not measured here.

How it follows a run: while the run is queued or running it reads it every 3 seconds, as Salpa's run page does, then every 10 seconds after its first ten minutes, and every 30 seconds after an hour; once more 3 seconds after the run ends; then never. A card drawn from a run's whole data, read after the run had ended, reads nothing, so an old conversation reopened asks Salpa nothing for it. A card that has less reads the run once: one drawn from show_run's summary alone (a host that keeps the card's data from it: Claude Desktop keeps it from the card and from your agent's model alike, measured on 2026-11-16; or a run too large to carry it), for the run's files and errors; and one of run, which has only the run's id, for everything, saying "Not read yet" until then, and never the "Queued" run answered if that answer is more than ten minutes old. When Salpa does not answer, or cannot answer just now, or a read takes longer than the card waits for it (75 seconds), the card keeps what it last read, says when that was and that it is trying again, and asks again after 10 seconds, then every 30 seconds, back to its pace once Salpa answers; after ten minutes without an answer it stops and says so. Two cards do not wait for Salpa: one of run whose answer is more than ten minutes old, and one drawn from a summary of a run that had ended. With Salpa not running, they say what they could not read and stop. It pauses while its window or page is hidden, and stops for good when your host closes it.

When a workflow is open in Salpa

Salpa's canvas keeps its own copy of a workflow it has open, and its next save would put back a change made under it. So your agent's change to an open workflow is not made: it is proposed to you. Salpa shows it at the top of that workflow's canvas, and in Needs you, naming your agent and each setting it would change, from and to. You apply it, which is one step you can undo and which Salpa saves, or decline it. If the step's settings changed in the meantime, it lapses and nothing changes.

Your agent is told the change waits for you, and asks proposal_status for the outcome; it is told never to send the same change again. A newer proposal from the same agent for the same step takes the place of the one waiting. A change to a workflow no Salpa window has open is made at once, and the step is marked with your agent's name until it runs or you accept it on the canvas.

A Salpa older than 0.28.0 refuses a change to an open workflow instead, and the tool tells your agent to ask you to close the workflow's tab, or to make the change in Salpa.

Showing you something

When you ask your agent to show you something in Salpa, it calls open_in_salpa, and Salpa's window brings it forward in a tab of its own, leaving your other tabs as they are, with a note naming your agent; it does so even when Salpa's window is out of view (covered, minimized, or closed on a Mac, which only hides it). While a dialog is open in Salpa, nothing moves: Salpa offers to show it instead, and you press Show. It offers too when it has just shown you something else, or when another action is busy with what it would show. The tool's description tells your agent to use it only when you ask, since it moves your window.

Salpa waits up to three seconds for its window, and the tool says what Salpa's window did: it showed it (or put it in front in Salpa while Salpa's window is out of view, so you may need to bring Salpa forward), it offered it, or it could not show it (and why). If the window has not answered in that time, the tool says Salpa was asked and the window has not answered yet. When Salpa's window is not open, the tool says so, and Salpa keeps the request for a minute in case you open it. Salpa takes one such request every two seconds, from any agent, and keeps at most ten waiting for its window. A newer request from your agent takes the place of an earlier one the window has not been given yet (so does the newest of ten waiting), never of one it has: the newer request's answer says so, and so does the earlier one's, if your agent is still waiting for it.

Which agent

Every call names salpa-mcp and your agent: the name your agent's host gives itself over the protocol (its clientInfo name; Claude Desktop's is sent as "Claude Desktop", and Claude Code's, claude-code, as "Claude Code"). Salpa shows it on the runs your agent starts, on the changes it makes or proposes, and in Settings, under Connect an agent, with what it did recently. It is a label your agent declares, not a lock: anything you run on this computer as you can reach your Salpa.

What your agent's model sees

What the tools answer goes to your agent's model, wherever that model runs: your templates and projects, the workflows' steps and settings, the folders they work in, and the runs' statuses and file names. Salpa's own assistant hides your folders from its model; salpa-mcp hands them over, since your agent needs them to name a new workflow's folder. show_run, list_runs, list_workflows and outputs by a run's id are the exceptions. show_run answers a short summary of the run with no folder or path. list_runs answers, for each run, its id, its workflow's id and name, its project's name, its number, whether it ran the whole workflow or one step (and that step's id), its status, when it was queued, started and ended, how long it took, who started it and how many warnings it gave, its names passed through the card's path rule; never its error, a folder or a path, or its job's id. list_workflows answers, for each workflow, its id and name, its project's id and name, how many steps it has, and when it was made and last changed, its names passed through the same rule; never its description, its tags, its author or the packages it needs, a folder or a path. outputs by a run's id answers the run's id, workflow and status, and each of its steps (forty at most) with its id, name and status, its run's id, and its files (twenty a step, two hundred in all, and how many more): each file's name, its path as the run recorded it, its category and role, its kind, its size and whether it existed when its step ended, and whether it exists now, through the same rule, so your workflow's folder is <folder> in it; never a file's address in Salpa. outputs for one step, by its workflow and its id, answers Salpa's own list, folders and all, as it always has. Every name these answers and the card hold, a workflow's, a project's, a step's or a file's, is shown as Salpa's window shows a name from outside: without control characters, direction controls or invisible characters.

What it will not do

  • Press your own buttons. Since Salpa 0.30.0, Salpa keeps them for its own window, which holds a key nothing else does, among them: deciding on a proposal or on Salpa's assistant's work; the canvas's own changes (saving a workflow from its canvas, adding, removing or connecting its steps); installing or uninstalling packages and environments; changing Salpa's settings, the workers' settings, a project's settings or objectives, or your cluster profiles; starting, stopping or scaling Salpa's workers; publishing a workflow as a template or withdrawing one; deleting a workflow or a project; and clearing what Salpa keeps of your work (results, run history and records, jobs, conversations and what the Copilot learned, logs and data). Salpa refuses them to your agent when Salpa's window started its server, which is how the app starts when you open it; a server started some other way (a developer's, by hand) does not check. Salpa's Settings, under Connect an agent, says whether the check is on. salpa-mcp calls none of them; if your agent meets such a refusal, the tool says "Only the person can do that, in Salpa's window", naming the action, and tells it to ask you. Salpa refuses an action it does not know the same way; then the tool says so instead, since the action may need a newer Salpa.
  • Change a workflow you have open in Salpa without you. It proposes the change, and you apply or decline it in Salpa. Applying or declining is one of your buttons: Salpa refuses it from here.
  • Spend Salpa Compute. A cloud step runs with your Salpa sign-in, which only the Salpa window sends with a run it starts. In a run your agent starts, a cloud step fails at once with "Sign in to Salpa to use it", even when you are signed in, and nothing is spent. Run a workflow with a cloud step from Salpa.
  • Reach anything but your own Salpa. It talks only to the app on this computer, with the app's per-launch local API token, which only you can read and which it sends only to the app that issued it.

A run starts work on your computer. salpa-mcp tells your agent to ask you before it runs anything, and most agents also ask before each tool call.

Licence

Apache-2.0.

Metadata

Release files for salpa-mcp 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for salpa-mcp 0.6.0
File Size Uploaded Provenance Actions
salpa_mcp-0.6.0.tar.gz 66.2 kB Without provenance Details for salpa_mcp-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for salpa-mcp 0.6.0
File Interpreter ABI Platform Actions
salpa_mcp-0.6.0-py3-none-any.whl Python 3 none any Details for salpa_mcp-0.6.0-py3-none-any.whl

Total release size: 135.9 kB

Release files / salpa_mcp-0.6.0.tar.gz

Download URL salpa_mcp-0.6.0.tar.gz
Size 66.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2c934d1a338623387559f2442c47b33619c21d4a9321afa59c9f06522fbdccf3
BLAKE2b-256 checksum
How to use checksums
0be0b3df4fad52d1be17578adb93534b2fd0b5e8eddeb9884e9a348f394f8410
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.11

Release files / salpa_mcp-0.6.0-py3-none-any.whl

Download URL salpa_mcp-0.6.0-py3-none-any.whl
Size 69.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d10f1854ee47ce9f35732077abef26fedf88190e476edbeec5022eeac4eed046
BLAKE2b-256 checksum
How to use checksums
194e69404e88b9c181b087eded069d0e04b755ccd2c613a7bc380aba5634bdf1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.11

Security for salpa-mcp 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page