Skip to main content

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

Metadata

Release files for nina-advanced-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nina-advanced-mcp 0.1.0
File Size Uploaded Provenance
nina_advanced_mcp-0.1.0.tar.gz 47.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for nina-advanced-mcp 0.1.0
File Interpreter ABI Platform
nina_advanced_mcp-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 92.8 kB

Release files / nina_advanced_mcp-0.1.0.tar.gz

Download URL nina_advanced_mcp-0.1.0.tar.gz
Size 47.4 kB
Tags Source
SHA-256 checksum
How to use checksums
182c8a31b4b0b380100fcf1a6632a0a2ae4ff6f8c6ec71b3c327f26eae81ba3e
BLAKE2b-256 checksum
How to use checksums
cbd2716d1149b6e7962c736a18068bfee1a691c9ff1a3442f5e124bff12b412e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.11

Release files / nina_advanced_mcp-0.1.0-py3-none-any.whl

Download URL nina_advanced_mcp-0.1.0-py3-none-any.whl
Size 45.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f8fa87659fd86f7a13221c9cc8b576a528bcfb7ce4ebdf7a0083a8452f6337a
BLAKE2b-256 checksum
How to use checksums
56a51f3eb246148b35174b1436141eb1be7c4b1ad6203d1583b53b346c5df68d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.11

Security for nina-advanced-mcp 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page