Fiji MCP Bridge
Provides tools to control Fiji/ImageJ for opening, saving, and processing images; running macros and scripts; managing ROIs and results tables; navigating stacks; and capturing screenshots or window contents.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Fiji MCP Bridge
⚠️ このリポジトリはアーカイブされました。
Claude や GPT は ImageJ マクロを十分に記述できるため、多くのツールは
run_macro一つで代替可能です。 また、多数のツール定義がコンテキストウィンドウを圧迫するという問題もありました。これらの理由から、よりシンプルな設計の後継プロジェクトへ移行しました: kusumotok/Fiji-Macro-Bridge
ImageJ/Fiji を Claude Desktop から自然言語で操作するためのブリッジシステム。
アーキテクチャ
Claude Desktop (stdio)
│
▼
Python MCP Server (fiji_mcp_server.py)
│ TCP localhost:5048
▼
Java Plugin (FijiMCPBridge.java)
│
▼
Fiji / ImageJ APIRelated MCP server: Playwright MCP for macOS
プロジェクト構造
fiji-mcp-bridge/
├── plugin/ # Java プラグイン
│ ├── src/main/java/fiji/mcp/
│ │ └── FijiMCPBridge.java # プラグイン本体
│ ├── pom.xml # Maven 設定
│ ├── build.bat # Maven ビルド
│ └── build_manual.bat # 手動ビルド(Maven 不要)
├── fiji_mcp_server.py # Python MCP サーバー
├── requirements.txt # Python 依存パッケージ
├── .env # 環境変数(Git 除外)
├── .env.example # 環境変数テンプレート
├── README.md
└── .gitignoreセットアップ
1. Python パッケージインストール
pip install -r requirements.txt2. Java プラグインビルド
# plugin/ ディレクトリで実行
cd plugin
build.bat # Maven を使う場合
build_manual.bat # Maven なしの場合Mac/Linux の場合:
cd plugin && mvn clean package
ビルド成功後、plugin/target/fiji-mcp-bridge-1.0.0.jar が生成される。
3. プラグインを Fiji にインストール
copy plugin\target\fiji-mcp-bridge-1.0.0.jar "C:\path\to\Fiji.app\plugins\"Fiji を再起動。
4. 環境変数を設定
.env.example を .env にコピーし、編集:
FIJI_PATH=C:\path\to\Fiji.app\ImageJ-win64.exe
FIJI_PORT=5048
FIJI_TIMEOUT=6005. Claude Desktop を設定
%APPDATA%\Claude\claude_desktop_config.json に追加:
{
"mcpServers": {
"fiji": {
"command": "python",
"args": ["C:/path/to/fiji-mcp-bridge/fiji_mcp_server.py"]
}
}
}conda 環境を使っている場合:
{
"mcpServers": {
"fiji": {
"command": "conda",
"args": [
"run", "-n", "fiji-mcp", "--no-capture-output",
"python", "C:/path/to/fiji-mcp-bridge/fiji_mcp_server.py"
]
}
}
}6. Fiji MCP Bridge を起動
方法 A: Claude から自動起動(推奨)
Claude Desktop を再起動後、チャットで launch_fiji ツールを呼ぶと Fiji の起動と MCP Bridge プラグインの開始が自動で行われる。手順 4 で FIJI_PATH の設定が必要。
方法 B: 手動起動
Fiji を起動し、メニューから Plugins > MCP > Fiji MCP Bridge を実行。
Fiji の Log ウィンドウに Started on port 5048 と表示されれば起動完了。
使用可能なツール
カテゴリ | ツール |
画像操作 |
|
画像処理 |
|
スクリーンショット |
|
ウィンドウ操作 |
|
ログ |
|
XYZCT |
|
マクロ・スクリプト |
|
ROI |
|
Results Table |
|
システム |
|
トラブルシューティング
接続できない場合
Fiji が起動しているか確認
Plugins > MCP > Fiji MCP Bridgeを実行したか確認Fiji の Log ウィンドウで
Started on port 5048を確認check_connectionツールで接続状態を確認
プラグインがメニューに表示されない
JAR ファイルが
Fiji.app/plugins/にあるか確認Fiji を再起動
マクロ実行中にダイアログが出て応答しない エラーダイアログは自動で検出・閉じられ、エラー内容が返される。 ダイアログが閉じない場合は Fiji 側で手動で閉じてから再試行。
注意事項(セキュリティ)
本プロジェクトは ローカル環境での利用を想定しています。TCP ポート(デフォルト:
5048)を外部ネットワークに公開しないでください。Fiji/ImageJ 本体は本リポジトリに含まれません。別途インストールが必要です。
ライセンス
MIT License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Connect ChatGPT, Claude, Cursor or VS Code to your Windows PC: files, terminal, browser, apps.
Connect AI assistants to your approved computer for files, commands, browser and desktop tasks.
Image and video AI tools and your own pipelines, run from any AI assistant.
Related MCP Servers
- AlicenseCqualityDmaintenanceEnables Claude Desktop and other AI tools to interact directly with Figma, allowing for powerful AI-assisted design capabilities through natural language commands.92844 npm682MIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude to see and interact with any macOS application using natural language commands. Perfect for testing Mac applications, UI automation, and app development with AI assistance.34MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants like Claude Desktop to interact directly with Figma, allowing natural language commands to create, modify, and analyze designs including shapes, text, components, and layouts in real-time.MIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude to control the local desktop via screenshot, mouse, keyboard, and clipboard operations.MIT