MCP server
Sam2
hf/Agents-MCP-Hackathon/sam2
Checked 26 Oct 2026, 08:30 UTC · Hugging Face reports it asleep
MCP server for running the Segment Anything 2 on images
Asleep: wakes on first use
https://agents-mcp-hackathon-sam2.hf.space/gradio_api/mcp/
At a glance
- Type
- MCP server
- Publisher
- Not verified
- Status
- Asleep: wakes on first use
- 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 https://agents-mcp-hackathon-sam2.hf.space/gradio_api/mcp/
Claude Desktop
Settings → Connectors → Add custom connector, and paste the URL.
Codex (config.toml)
[mcp_servers.sam2] url = "https://agents-mcp-hackathon-sam2.hf.space/gradio_api/mcp/"
Gemini CLI
{"mcpServers":{"sam2":{"httpUrl":"https://agents-mcp-hackathon-sam2.hf.space/gradio_api/mcp/"}}}
Cursor
{"mcpServers":{"sam2":{"url":"https://agents-mcp-hackathon-sam2.hf.space/gradio_api/mcp/"}}}
VS Code
{"servers":{"sam2":{"type":"http","url":"https://agents-mcp-hackathon-sam2.hf.space/gradio_api/mcp/"}}}
Antigravity
agy mcp add sam2 https://agents-mcp-hackathon-sam2.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","server_url":"https://agents-mcp-hackathon-sam2.hf.space/gradio_api/mcp/","require_approval":"always"}
Grok (xAI API tools)
{"type":"mcp","server_label":"sam2","server_url":"https://agents-mcp-hackathon-sam2.hf.space/gradio_api/mcp/"}
Related MCP servers
- SAM 2 Segment Anything Demo
Interactive segmentation & cutouts using Meta SAM 2.1 - Sam2
sam2 images and video inference on ZeroGPU - Framesail
Create long-form YouTube videos end to end: script, storyboard, voiceover, final MP4. - NewsMAN MCP by usefulapi
Read NewsMAN lists, subscribers, segments, newsletter and automation stats; manage subscribers. - LocateAnything + SAM3
Ground, segment, and track anything from text - Volanea
Email infrastructure on Volanea: build templates, segments and workflows, send and check email. - Whatic IC Datasheets
IC datasheet search: parametric part finding, spec lookup, price comparison — grounded in real PDFs. - Writ Cloud
Read, crawl and act on websites, signed in as the user, and turn any site into an API.
Badge for your README
[](https://aptlynx.net/servers/hf/Agents-MCP-Hackathon/sam2)
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents