Skip to main content

Model Context Provider for N.I.N.A. astrophotography software using Advanced API

Project description

MseeP.ai Security Assessment Badge

Nina_advanced_api_mcp

Interface for AI agents to use your astrophotography setup using N.I.N.A (Beta)

N.I.N.A Model Context Protocol Server for Advanced API Plugin v2 (MCP)

A powerful interface for controlling N.I.N.A. (Nighttime Imaging 'N' Astronomy) software through its Advanced API NINA Advanced API . This Model Context Protocol Server (MCP) enables AI agents to interact with NINA using tools, providing new way to interact with your setup. Usage with your own responsibility.

License: MIT Python 3.8+ NINA

🌟 Features

  • Complete Equipment Control for AI agents

    • Cameras (capture, cooling, settings, connecting ....)
    • Mounts (slewing, parking, tracking...)
    • Focusers (movement, temperature compensation ... )
    • Filter Wheels (filter selection, info ...)
    • Domes (rotation, shutter control ...)
    • Rotators (movement, sync...)
    • ...
  • AI Integration

    • Natural language command processing
    • Contextual help system
    • Intelligent error responses
    • Automated decision making
  • **Most of the NINA advanced API v2 api interface endpoints supported

🚀 Quick Start

Prerequisites

  • Python 3.8 or higher
  • NINA software with Advanced API plugin
  • uv package manager
  • AI agent with MCP support (e.g., Claude)

Installation

  1. Install NINA Advanced API Plugin

    # Install the plugins in NINA
    # Enable and configure in NINA settings
    
  2. Clone Repository

    git clone https://github.com/PaDev1/Nina_advanced_api_mcp.git
    cd nina-mcp
    
  3. Set Environment Variables

    # Create .env file
    NINA_HOST=your_nina_host
    NINA_PORT=1888
    LOG_LEVEL=INFO
    IMAGE_SAVE_DIR=~/Desktop/NINA_Images
    

Configuration

MCP Server Setup

Add to your AI agent's MCP configuration:

{
  "mcpServers": {
    "nina_advanced_mcp_api": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "fastmcp,fastapi,uvicorn,pydantic,aiohttp,requests,python-dotenv",
        "fastmcp",
        "run",
        "path/nina_advanced_mcp.py"
      ],
      "env": {
        "NINA_HOST": "NINA_IP",
        "NINA_PORT": "1888",
        "LOG_LEVEL": "INFO",
        "IMAGE_SAVE_DIR": "~/Desktop/NINA_Images"
      }
    }
  }
}

📚 Usage

Basic AI Examples with Claude Destop

  • Connect to nina
  • read the setup
  • connect my camera, mount, filter wheel and guider
  • read the sequesces and let me select the sequence to start

AI Agent Commands

- "Take a 30-second exposure of M31"
- "Connect all equipment and start cooling the camera to -10°C"
- "Start a sequence targeting NGC 7000"
- "Get the current equipment status"

📖 API Documentation

Core Modules

Equipment Control

  • Camera operations
  • Mount control
  • Focuser management
  • Filter wheel control
  • Dome automation
  • Rotator functions

Imaging

  • Capture configuration
  • Image processing
  • File management
  • Statistics gathering

System

  • Connection handling
  • Status monitoring
  • Error management
  • Configuration

🤝 Contributing

Contributions are welcome! Please read our Contributing Guidelines first.

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

🐛 Bug Reports

Found a bug? Please open an issue with:

  • Detailed description
  • Steps to reproduce
  • Expected vs actual behavior
  • System information

📜 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

🔗 Related Projects

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_nina_advanced_api_mcp-0.1.0.tar.gz (24.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iflow_mcp_nina_advanced_api_mcp-0.1.0-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

Details for the file iflow_mcp_nina_advanced_api_mcp-0.1.0.tar.gz.

File metadata

File hashes

Hashes for iflow_mcp_nina_advanced_api_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 92ea1bf1f415da5053f6e9affa1a2557ef3c2680ddf7f26551c245918608463f
MD5 7772a6ffc7a38875a71f3a6500552970
BLAKE2b-256 3de262f254ca2995f30abbfa26791935912c636584048178c99fd08d3ba37f3e

See more details on using hashes here.

File details

Details for the file iflow_mcp_nina_advanced_api_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for iflow_mcp_nina_advanced_api_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 268e2b29a6f59b9460bae1cb19b6403ebd905fe41804271a998b9c1d30a130f4
MD5 46d323b947738e92873c97fd266c8c2b
BLAKE2b-256 f1c0257db7891331adf992e57ad0e28a6114dbca6b66c8898c2f72e8f59a2589

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page