MCP server
SAM 2 Segment Anything Demo
hf/Premkishor0007/sam2-image-segmentation
Checked 26 Oct 2026, 08:30 UTC · Hugging Face reports it running
Interactive segmentation & cutouts using Meta SAM 2.1
Working at last check
https://premkishor0007-sam2-image-segmentation.hf.space/gradio_api/mcp/
At a glance
- Type
- MCP server
- Publisher
- Not verified
- Status
- Working at last check
- Sets up in
- Claude Code, Claude Desktop, Codex, Gemini CLI, Cursor, VS Code, Antigravity, ChatGPT, OpenAI API, Grok
- Last checked
- 26 Oct 2026, 08:30 UTC
Connect it to your agent
Opens the app, which shows the server and asks you to confirm. For other apps, copy the setup below.
Claude Code
claude mcp add --transport http sam2-image-segmentation https://premkishor0007-sam2-image-segmentation.hf.space/gradio_api/mcp/
Claude Desktop
Settings → Connectors → Add custom connector, and paste the URL.
Codex (config.toml)
[mcp_servers.sam2-image-segmentation] url = "https://premkishor0007-sam2-image-segmentation.hf.space/gradio_api/mcp/"
Gemini CLI
{"mcpServers":{"sam2-image-segmentation":{"httpUrl":"https://premkishor0007-sam2-image-segmentation.hf.space/gradio_api/mcp/"}}}
Cursor
{"mcpServers":{"sam2-image-segmentation":{"url":"https://premkishor0007-sam2-image-segmentation.hf.space/gradio_api/mcp/"}}}
VS Code
{"servers":{"sam2-image-segmentation":{"type":"http","url":"https://premkishor0007-sam2-image-segmentation.hf.space/gradio_api/mcp/"}}}
Antigravity
agy mcp add sam2-image-segmentation https://premkishor0007-sam2-image-segmentation.hf.space/gradio_api/mcp/
ChatGPT
Settings → Apps & Connectors → Advanced settings: turn on Developer mode, then Create a connector and paste the URL. Which plans can do this varies.
OpenAI API (Responses tools)
{"type":"mcp","server_label":"sam2-image-segmentation","server_url":"https://premkishor0007-sam2-image-segmentation.hf.space/gradio_api/mcp/","require_approval":"always"}
Grok (xAI API tools)
{"type":"mcp","server_label":"sam2-image-segmentation","server_url":"https://premkishor0007-sam2-image-segmentation.hf.space/gradio_api/mcp/"}
Related MCP servers
- x402image
x402 image tools (USDC/Base): remove_background/upscale $0.02, resize/optimize $0.005; URL in/out - Sam2
sam2 images and video inference on ZeroGPU - Brainiall Image
Background removal, upscaling, face restore, document OCR, table extraction, visual understanding. - Question Segmentation M Demo
YOLO26M question region detection - AdsTurbo
AI ad creatives: clone reference ads, AI spokesperson videos, video generation, translation, images. - streetshirts
Design custom T-shirts, preview artwork, personalize team shirts and prepare a checkout link. - Mixpanel MCP by usefulapi
Query Mixpanel events, funnels, retention, segmentation and insights (JQL). - QueenVIS Video Instance Segmentation
Segment and track object instances in video with QueenVIS
Badge for your README
[](https://aptlynx.net/servers/hf/Premkishor0007/sam2-image-segmentation)
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents