# Source Detection & Segmentation AI Agent Connect

> Source Detection & Segmentation MCP gives your AI agent the ability to process astronomical images. It identifies celestial objects, extracts physical properties like flux and centroids, and manages source catalogs through direct tool calls in your preferred MCP-compatible client.

## Overview
- **Category:** science
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_oSYE8DjlzfzWdBCOa231BH4Ss4SUCbaRPq9SPcVT/ai-agent-connect
- **Tags:** astronomy, segmentation, celestial, image-analysis, flux

## Description

You can now give your AI agent the ability to actually see and measure what is in your astronomical images. Instead of manually inspecting frames, you use this MCP to automate the heavy lifting of source identification and segmentation. Your agent can scan an image to find objects, pull specific physical characteristics for a group of sources, or check if two objects are overlapping. It handles the math of flux and spatial statistics so you can focus on the science. Whether you need a deterministic list of each object found or only want to know the brightness of a specific cluster, this MCP provides the raw data your agent needs to perform precise astronomical analysis.

## Tools

### check_source_proximity
This tool checks if celestial sources are physically touching or overlapping in your data.

### detect_sources
This tool performs the primary identification and segmentation of astronomical sources within an image.

### get_sorted_source_catalog
This tool generates a deterministic, ordered list of all detected sources for consistent data handling.

### get_source_properties
This tool retrieves physical characteristics and spatial statistics for a specific group of detected sources.

## Prompt Examples

**Prompt:** 
```
Detect all sources in this image map.
```

**Response:** 
```
I have identified 12 distinct celestial sources in the provided image.
```

**Prompt:** 
```
What is the flux of the brightest source?
```

**Response:** 
```
The brightest source has a total flux of 452.3 units.
```

**Prompt:** 
```
Are there any sources touching each other?
```

**Response:** 
```
Yes, sources 4 and 7 are physically adjacent according to the 8-connectivity rule.
```

## Capabilities

### Automated Segmentation
Your agent uses this to separate individual celestial objects from background noise in an image.

### Physical Property Extraction
Your agent pulls specific data like flux and centroids for analyzed objects.

### Overlap Detection
Your agent identifies when sources are physically touching or overlapping.

### Ordered Cataloging
Your agent creates structured, deterministic lists of all detected sources.

## Use Cases

### Source Identification
An agent scans a new image frame to find and segment all detectable celestial objects.

### Flux Analysis
You ask your agent to find the specific flux value of the brightest object in a field.

### Proximity Checking
Your agent identifies overlapping structures to help clean up source catalogs.

### Catalog Generation
You use your agent to build an ordered list of all sources for further processing.

## Benefits

- Replaces manual source identification with automated segmentation.
- Provides deterministic catalogs for repeatable data analysis.
- Enables rapid querying of physical characteristics like flux.

## How It Works

Connect your client to Vinkius and start querying astronomical data immediately.

1. Connect your MCP-compatible client to the Vinkius platform.
2. Upload or point your agent to the astronomical image data.
3. Your agent calls detect_sources to find the objects.
4. Your agent uses get_source_properties to extract the specific data you need.

## Frequently Asked Questions

**What can this MCP do with astronomical images?**
It identifies and segments celestial sources, extracts physical properties like flux, and checks for overlapping objects.

**Which AI clients can use this MCP?**
You can use this with any MCP-compatible client including Claude, Cursor, Windsurf, and VS Code.

**How does it handle overlapping sources?**
The check_source_proximity tool identifies which sources are physically touching or overlapping.

**Is the source list consistent?**
Yes, the get_sorted_source_catalog tool provides a deterministic, ordered list for consistent data handling.

**Do I need to host the MCP myself?**
No, Vinkius hosts and manages the MCP for you, so it is ready to use as soon as you connect.

**How do I identify individual stars in a crowded field?**
You can use the `detect_sources` tool to segment individual objects from the background and noise maps.

**Can I find the exact location of a detected source?**
Yes, the `get_source_properties` tool provides the intensity-weighted centroid for any detected source.

**How do I handle overlapping celestial objects?**
Use `check_source_proximity` to find touching sources and adjust the `deblendLevels` in `detect_sources` to better separate them.
