Skip to main content
Glama
dmarsters

Constellation Composition MCP Server

by dmarsters
README.md
# Constellation Composition MCP Server

MCP server that translates astronomical constellation patterns into compositional parameters for AI image generation.

## Features

- 22 major constellations with geometric and mythological metadata
- Zero-LLM-cost deterministic mapping from star patterns to focal points
- Mythology integration for thematic guidance
- Multiple output formats (JSON and Markdown)
- Canvas scaling from 512x512 to 4096x4096 pixels

## Installation

```bash
pip install -e ".[dev]"
```

## Usage

### As MCP Server

Add to Claude Desktop configuration:

```json
{
  "mcpServers": {
    "constellation-composition": {
      "command": "constellation-composition-mcp"
    }
  }
}
```

### Programmatically

```python
from constellation_composition_mcp.server import (
    generate_constellation_composition,
    search_constellations
)

# Search for constellations
results = await search_constellations(query="hunting")

# Generate composition
composition = await generate_constellation_composition(
    constellation_name="Orion",
    canvas_width=1920,
    canvas_height=1080
)
```

## Available Tools

1. **search_constellations** - Search by theme, shape, or brightness
2. **generate_constellation_composition** - Map constellation to composition parameters
3. **list_all_constellations** - Browse all available constellations

## Development

```bash
# Install with dev dependencies
pip install -e ".[dev]"

# Run tests
./tests/run_tests.sh

# Format code
black src/ tests/
ruff check src/ tests/
```

## Documentation

See `docs/` directory for detailed documentation:
- Architecture overview
- Integration examples
- Constellation database reference

## License

MIT License - See LICENSE file for details

## Author
Dal Marsters - Lushy.app

TDQS

A4.1/5.0

Scored across 11 tools

Disambiguation4/5

Most tools have distinct purposes with clear boundaries, such as apply_constellation_preset for generating oscillation sequences, generate_constellation_attractor_prompt for creating image prompts, and get_constellation_coordinates for coordinate extraction. However, some tools like get_constellation_visual_types and list_all_constellations might overlap slightly in providing catalog-like information, but their descriptions help differentiate them by focusing on visual vocabulary versus basic constellation metadata.

Naming Consistency3/5

The naming follows a mixed convention with some tools using verb_noun patterns like apply_constellation_preset and generate_constellation_attractor_prompt, while others use noun-based names like get_constellation_coordinates and list_all_constellations. This inconsistency is noticeable but still readable, as most names are descriptive and follow a general structure related to constellation operations.

Tool Count5/5

With 11 tools, the count is well-scoped for the server's purpose of constellation composition and image generation. Each tool serves a specific role in the workflow, from listing and searching constellations to generating prompts and computing trajectories, ensuring comprehensive coverage without unnecessary bloat.

Completeness5/5

The tool set provides complete coverage for the domain of constellation-based composition, including listing and searching constellations, extracting coordinates, generating trajectories, creating image prompts, and integrating with multi-domain systems. There are no obvious gaps; tools support the full lifecycle from discovery to application in image generation and rhythmic composition.

Maintenance

ActivityInactive
ResponsivenessNo issues