Skip to main content

abba-mcp: ABBA for AI assistants (experimental)

Lets an AI assistant drive ABBA (Aligning Big Brains and Atlases) to register brain sections to an atlas. The assistant runs ABBA's commands, looks at what they produced, and once the result is right saves the session (.abba state file) and a Groovy script that replays every step.

You can follow along and take over at any time: by default, ABBA's window opens on your screen as usual.

It is an MCP server, so it is not tied to one assistant: it works with any application (MCP client) that can start a local MCP server, and any model it offers that calls tools and reads images (the assistant looks at pictures of your slices).

Install

You need uv and an internet connection for the first run. Java, Fiji and ABBA are downloaded for you.

Claude

  • Claude Desktop: download abba-mcp-<version>.mcpb from the releases and double-click it.
  • Claude Code:
    claude mcp add abba -- uvx abba-mcp
    

VS Code (GitHub Copilot)

Install in VS Code

Or, from a terminal: code --add-mcp '{"name":"abba","command":"uvx","args":["abba-mcp"]}'.

OpenAI

  • Codex (CLI, IDE extension), and the ChatGPT desktop app, which shares Codex's configuration:
    codex mcp add abba -- uvx abba-mcp
    
  • ChatGPT on the web connects to remote MCP servers only: it cannot start this one.

Any other MCP client

The server talks MCP over stdio (protocol versions 2024-11-05 to 2025-11-25): command uvx, arguments abba-mcp. Most applications (Cursor, Gemini CLI...) take this JSON in their MCP settings:

{
  "mcpServers": {
    "abba": {
      "command": "uvx",
      "args": ["abba-mcp"]
    }
  }
}

uvx abba-mcp runs the latest release; uvx abba-mcp@0.25.0 a given one (the version is the ABBA it runs).

The server gives the assistant its rules and points it to its documentation through the MCP instructions. Some applications do not pass them on: if the assistant seems not to know how to proceed, ask it to read guides/abba.md with the abba_docs_read tool first.

First run

The first time the assistant uses Fiji, the server downloads Java, Fiji and ABBA, then starts them: allow several minutes; later starts are much faster. Meanwhile the assistant is told that Fiji is starting, and tries again. DeepSlice, Elastix and atlases are also downloaded the first time they are needed.

With or without a window

  • Window (default): ABBA opens its window on your screen. You see what the assistant does, can select slices for it, and can take over.
  • Headless: no window, for servers and remote machines. The assistant shows you snapshots instead, and manual registrations are not available. Set the environment variable ABBA_MCP_HEADLESS=true for the server: "env": {"ABBA_MCP_HEADLESS": "true"} next to "args" in the JSON, -e ABBA_MCP_HEADLESS=true before -- for claude mcp add, --env ABBA_MCP_HEADLESS=true for codex mcp add. In Claude Desktop, turn on Run Fiji without a window in the extension's settings.

Privacy

What the assistant looks at (snapshots of your slices, the session state, file names) is sent to your AI provider, as for anything else you show it. Fiji itself is only reachable from your own computer (port 9090 on 127.0.0.1).

Versions

The version is the ABBA version it runs (0.25.0), with .post1, .post2... for a fix of this server alone. Every machine gets the same Fiji, ABBA and plugins, and the assistant's documentation is written for exactly that version. Your own Fiji installation is not used or modified.

Troubleshooting

  • "The Fiji on port 9090 runs ...": another Fiji with an MCP server is already running (your own, or one started by another version of this bundle). Close it and ask again.
  • Fiji does not start: its log is fiji.log in ~/.abba-mcp (set ABBA_MCP_HOME to use another folder).
  • Questions about ABBA itself: the ABBA documentation of this version and the image.sc forum.

Developing or releasing this bundle: see DEVELOPMENT.md.

Metadata

Release files for abba-mcp 0.25.0.post1

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

Source distribution (sdist)

Source distribution for abba-mcp 0.25.0.post1
File Size Uploaded
abba_mcp-0.25.0.post1.tar.gz 67.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for abba-mcp 0.25.0.post1
File Interpreter ABI Platform
abba_mcp-0.25.0.post1-py3-none-any.whl Python 3 none any Details

Total release size: 176.5 kB

Release files / abba_mcp-0.25.0.post1.tar.gz

Download URL abba_mcp-0.25.0.post1.tar.gz
Size 67.0 kB
Tags Source
SHA-256 checksum
How to use checksums
020cea2b9341e402537fc3a49c1e7260829cee9243879c8e308bb0d36a871f7d
BLAKE2b-256 checksum
How to use checksums
1ae84f2731e530c53c0308a34d6bef514c2a41b58c07d51b3dcb89c5dc61405e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release files / abba_mcp-0.25.0.post1-py3-none-any.whl

Download URL abba_mcp-0.25.0.post1-py3-none-any.whl
Size 109.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ad656b2ba5bab07c8d9207522f2b27f06fe515a40fff7a79acd1014fba93ed17
BLAKE2b-256 checksum
How to use checksums
4b64a92b9f5caa8944d6e7b3cf35e5adb08e420c2350dd150e613c11d9c3c81d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.25.0.post1 This release

2 release files

0.25.0

2 release files

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