N.I.N.A. Advanced API logo

N.I.N.A. Advanced API

Community
PaDev1

Interface for AI agents to use your astrophotography setup using N.I.N.A advanced api

PublisherPaDev1
RepositoryNina_advanced_api_mcp
LanguageJupyter Notebook
Forks
5
Stars
12
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    N.I.N.A. Advanced API exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    12 stars and 5 forks from the linked repository.

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

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

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

    bash
    # 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:

json
{
  "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

plaintext
- "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

Use N.I.N.A. Advanced API MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once N.I.N.A. Advanced API is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add N.I.N.A. Advanced API as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the N.I.N.A. Advanced API MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "nina-advanced-api-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the N.I.N.A. Advanced API MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the N.I.N.A. Advanced API MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use N.I.N.A. Advanced API to help me with this task?
N.I.N.A. Advanced API
Sure. I read it.
Here is what I found using N.I.N.A. Advanced API.

Frequently asked questions

What is the N.I.N.A. Advanced API MCP server used for?

N.I.N.A. Advanced API is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use N.I.N.A. Advanced API MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use N.I.N.A. Advanced API with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use N.I.N.A. Advanced API MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With N.I.N.A. Advanced API connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect N.I.N.A. Advanced API MCP to TypingMind?

N.I.N.A. Advanced API runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does N.I.N.A. Advanced API MCP provide in TypingMind?

N.I.N.A. Advanced API exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use N.I.N.A. Advanced API MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If N.I.N.A. Advanced API requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇