Cellpose MCP Server
Cellpose MCP サーバー
Cellpose-mcp は、Model Context Protocol (MCP) サーバーであり、Claude や Cursor IDE などの AI アシスタントが自然言語コマンドを通じて細胞セグメンテーションを実行できるようにします。このツールは、2D/3D セグメンテーション、バッチ処理、画像復元(ノイズ除去、デブラリング、アップサンプリング)、カスタムモデルトレーニングなど、包括的な Cellpose 機能を 13 以上の MCP ツールとして公開します。このシステムは Napari とシームレスに統合され、セグメンテーションから対話型可視化までの完全なワークフローを実現します。

📌 注記: このプロジェクトは、napari-mcp に触発され、Cellpose セグメンテーションワークフロー向けに適応させた楽しいプロジェクトとして始まりました。貢献をご希望の場合は、ssahu2@ucmerced.edu までご連絡ください。
🚀 クイックスタート
要件: Python 3.10、3.11、または 3.12 と Cellpose 3.1.1.2。
Cellpose 4 には、このサーバーが使用する復元 API が含まれていません。このパッケージは、復元機能にテスト済みの代替手段ができるまで、最終版の Cellpose 3 リリースに固定されています。
PyPI からのインストール:
pip install cellpose-mcpCursor のインストールと設定を一度に行う:
pip install cellpose-mcp && cellpose-mcp-install cursorインストーラーは、コマンドを実行する Python(または存在する場合は Cellpose_mcp という名前の conda 環境)を使用します。設定後は Cursor を再起動してください。
開発用インストール(ソースから):
git clone https://github.com/surajinacademia/cellpose_mcp.git
cd cellpose_mcp
pip install -e .AI アプリケーションの自動設定
pip install cellpose-mcp の後、お使いのアプリ用のインストーラーを実行します。現在の Python を使用して、正しい MCP 設定ファイルに書き込みます。
アプリケーション | コマンド | 備考 |
Cursor IDE |
|
|
Claude Desktop |
| Claude Desktop 設定に追加します |
Antigravity |
| Antigravity MCP を設定します |
VS Code (Cline/Roo Cline) |
| Cline/Roo Cline 拡張機能を設定します |
Claude Code | 手動のみ | 下記の手動設定を参照してください |
オプション: --python-path /path/to/python で特定の Python を指定、--env-name NAME で conda 環境を使用(デフォルト: Cellpose_mcp)。
手動設定を希望する場合(または Claude Code を使用する場合)は、プロジェクトルートに .mcp.json ファイルを作成してください。cellpose-mcp がインストールされている Python が python でない場合(venv や conda など)は、Python 実行ファイルのフルパスを使用してください:
{
"mcpServers": {
"cellpose": {
"command": "python",
"args": ["-m", "cellpose_mcp"],
"env": {
"KMP_DUPLICATE_LIB_OK": "TRUE",
"OMP_NUM_THREADS": "1"
}
}
}
}Cursor の場合は、~/.cursor/mcp.json(グローバル)またはプロジェクト内の .cursor/mcp.json に同じ構造を使用します。
インストール後、AI アプリを再起動して、次のように試してみてください:
"Can you list available Cellpose models?"
"Segment the cells in ./data/sample.tif using the cyto2 model"🎯 何ができますか?
例: 細胞セグメンテーションの動作
基本的な細胞セグメンテーション
"Segment the cells in ./data/sample.tif using the cyto2 model"
"List available Cellpose models"
"Estimate cell diameter from ./data/image.tif"高度なワークフロー
"Segment all TIFF files in ./data/images/ and save masks to ./output/"
"Train a custom segmentation model using images in ./train/images/ and masks in ./train/masks/"
"Restore and segment the noisy image in ./data/noisy.tif using oneclick_cyto3"バッチ処理
"Process all images in ./data/ with the cyto2 model and save results to ./output/"Related MCP server: BambuStudio MCP Server
🛠 利用可能な MCP ツール
このサーバーは、完全な Cellpose 機能のための 13 以上のツールを公開します:
セグメンテーションツール
segment_cells_2d- 2D 画像内の細胞をセグメンテーションしますsegment_cells_3d- 3D ボリューム内の細胞をセグメンテーションしますsegment_cells_batch- 複数の画像をバッチ処理します
画像復元ツール
denoise_image- 顕微鏡画像のノイズを除去しますdeblur_image- 顕微鏡画像のぼけを除去しますupsample_image- 低解像度画像をアップサンプリングしますrestore_and_segment- 復元とセグメンテーションを組み合わせます
トレーニングツール
train_segmentation_model- カスタムセグメンテーションモデルをトレーニングしますtrain_restoration_model- カスタム復元モデルをトレーニングします
ユーティリティツール
list_available_models- 事前トレーニング済みモデルをすべて一覧表示しますestimate_cell_diameter- 画像から細胞の直径を推定しますsave_masks- さまざまな形式でマスクを保存しますload_image_info- 画像のメタデータを取得します
📖 ドキュメント
クイックスタートガイド - 3 ステップで開始
利用可能なツール - 完全なツールリスト
リリースノート - v0.1.0 リリースの詳細情報
変更履歴 - バージョン履歴と変更点
📋 アーキテクチャ
FastMCP サーバー: MCP プロトコル通信を処理します
Cellpose 統合: モデルの読み込みとセグメンテーション操作を管理します
ツールレイヤー: Cellpose 機能を MCP ツールとして公開します
ファイル I/O: 画像の読み取り、書き込み、マスク生成を処理します
主な特徴:
スレッドセーフ: すべての操作が適切に直列化されます
ノンブロッキング: パフォーマンス向上のための非同期操作
Napari 統合: 可視化と解析のための Napari との統合
著者: Suraj Sahu
所属: カリフォルニア大学マーセド校物理学部、カリフォルニア州、米国
メール: ssahu2@ucmerced.edu
📄 ライセンス
BSD-3-Clause ライセンス - 詳細は LICENSE ファイルを参照してください。
🙏 謝辞
優れたセグメンテーションライブラリを提供する Cellpose チーム
MCP フレームワークを提供する FastMCP
Claude と MCP 開発を提供する Anthropic
AI ツール統合のオープン標準である Model Context Protocol
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityBmaintenanceEnables AI assistants to explore computer vision datasets, execute operators, and build workflows through natural language using FiftyOne's operator framework with 80+ built-in operators and plugin management capabilities.23
- AlicenseNot gradedqualityNot gradedmaintenanceProvides end-to-end 3D printing automation for Bambu Lab printers, allowing users to generate, slice, and monitor prints using natural language. It features model generation from text or images, real-time camera monitoring, and automated print quality improvement.
- AlicenseAqualityDmaintenanceEnables AI assistants to process 3D point clouds and meshes using CloudCompare through natural language commands.122MIT
- AlicenseAqualityAmaintenanceEnables AI agents to control Fiji/ImageJ for microscopy image analysis through natural language commands, supporting operations like image opening, filtering, particle analysis, and automated workflows.192BSD 3-Clause
Related MCP Connectors
LLM chat, text summarization and AI image generation
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Connect AI assistants to Stellary projects, boards, documents, and governed agent workflows.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/surajinacademia/cellpose_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server