Siril MCP Server
An MCP server that integrates with Siril astronomical image processing software to process Seestar telescope images, offering tools for binary detection, version checking, mosaic processing, and project analysis.
README
Siril MCP Server
โ ๏ธ Work in Progress: This project is under active development and not yet ready for production use. APIs may change without notice.
A Model Context Protocol (MCP) server that provides tools for working with Siril astronomical image processing software and Seestar telescope data.
๐ง Current Status
This project is in early development. Current features include:
- โ Siril Binary Detection: Smart detection of Siril installations across platforms
- โ Version Checking: Check your installed Siril version
- โ Basic Mosaic Processing: Process Seestar S30/S50 telescope images
- โ Filter Support: Supports both broadband and narrowband processing
- โ Auto Script Creation: Automatically creates required SSF scripts
- โ FastMCP Integration: Proper async logging and error handling
- ๐ Script Updates: Download latest scripts from Naztronomy repository
- ๐ Project Analysis: Check project structure and file organization
- โ GUI Integration: Headless preprocessing tools (planned)
- โ PyPI Package: Not yet published
Prerequisites
- Python 3.10+
- Siril astronomical image processing software
Siril Installation & Detection
The server automatically detects Siril installations in the following order:
- Custom Path: Set
SIRIL_BINARYenvironment variable to specify a custom location - System PATH: Checks if
sirilcommand is available in your PATH - macOS App Bundle:
/Applications/Siril.app/Contents/MacOS/Siril - Common Locations:
/usr/bin/siril,/usr/local/bin/siril,/opt/homebrew/bin/siril
macOS Users: If you installed Siril as an application, no additional setup is needed - it will be detected automatically.
Custom Installation: For non-standard installations, set the environment variable:
export SIRIL_BINARY="/path/to/your/siril/binary"
Installation
Note: This package is not yet published to PyPI. Install from source for now.
From Source (Development)
git clone https://github.com/taco-ops/siril-mcp
cd siril-mcp
# Using pipenv (recommended)
pipenv install --dev
pipenv shell
# Or using pip
pip install -e .
Future PyPI Installation
Once published, you'll be able to install via:
# Using pip
pip install siril-mcp
# Using pipenv
pipenv install siril-mcp
Development Setup
This project uses Pipenv for Python dependency management and npm for MCP testing tools. Make sure you have both installed:
pip install pipenv
# Node.js and npm should be installed for MCP integration testing
Setting up the development environment:
# Clone the repository
git clone https://github.com/taco-ops/siril-mcp
cd siril-mcp
# Install Python dependencies and create virtual environment
pipenv install --dev
# Install Node.js dependencies for MCP testing
npm install
# Activate the virtual environment
pipenv shell
# Install the package in development mode
pipenv install -e .
# Validate setup
npm run validate-ci
Available scripts:
Python (Pipenv):
# Build the package
pipenv run build
# Run Python tests
pipenv run test
# Format code with Black
pipenv run format
# Lint code with Flake8
pipenv run lint
# Upload to Test PyPI
pipenv run upload-test
# Upload to production PyPI
pipenv run upload
MCP Testing (npm):
# Run basic MCP functionality tests
npm run test
# Run MCP integration tests
npm run test:integration
# Run all MCP tests
npm run test:all
# Validate CI setup readiness
npm run validate-ci
Release Management (npm):
# Test release process (dry run)
npm run release:dry
# Create actual releases
npm run release:patch # Bug fixes (1.0.0 โ 1.0.1)
npm run release:minor # New features (1.0.0 โ 1.1.0)
npm run release:major # Breaking changes (1.0.0 โ 2.0.0)
# General release (auto-detects type)
npm run release
Local Development Workflow
Pre-commit Hooks (Recommended)
This project uses pre-commit hooks to ensure code quality. Install them for automatic checks:
# Install pre-commit hooks (one-time setup)
pipenv run pre-commit install
# Now all commits will automatically run:
# - Black formatting
# - isort import sorting
# - flake8 linting
# - pytest tests
Manual Quality Checks
You can also run quality checks manually:
# Run all pre-commit hooks on all files
pipenv run pre-commit run --all-files
# Run specific checks
pipenv run pre-commit run black # Format code
pipenv run pre-commit run flake8 # Lint code
pipenv run pre-commit run pytest # Run tests
Release Testing Locally
Test the release process without actually releasing:
# Install Node.js dependencies
npm install
# Test what a release would look like
npm run release:dry
# Test specific release types
npm run release:patch --dry-run
npm run release:minor --dry-run
npm run release:major --dry-run
๐งช Testing & Quality Assurance
This project includes comprehensive testing with both Python unit tests and MCP integration testing.
Test Suites
Python Unit Tests
Traditional pytest-based testing for core functionality:
# Run all Python tests
pipenv run test
# Run tests with coverage
pipenv run python -m pytest tests/ --cov=siril_mcp --cov-report=html
# Run specific test
pipenv run python -m pytest tests/test_server.py::test_find_siril_binary_macos_location -v
MCP Integration Tests
Node.js-based testing that validates the complete MCP server functionality:
# Install Node.js dependencies
npm install
# Run basic functionality tests
npm run test
# Run MCP protocol integration tests
npm run test:integration
# Run all MCP tests
npm run test:all
# Validate CI readiness
npm run validate-ci
CI/CD Pipeline
The project uses GitHub Actions for automated testing and releases:
Continuous Integration
- Triggers: Every push and PR to
mainanddevelopbranches - Python Versions: Tests across Python 3.10, 3.11, and 3.12
- Test Coverage: Code formatting, linting, Python tests, and MCP integration tests
- Environment Adaptive: Tests automatically adapt to CI environments where Siril isn't available
Release Pipeline
- Triggers: When version tags (
v*) are pushed - Pre-Release Validation: Comprehensive testing across all Python versions
- MCP Protocol Validation: Ensures MCP server functionality before release
- Automated Publishing: Builds and publishes to PyPI only after all tests pass
Test Coverage Includes
- โ Siril binary detection across platforms
- โ Version checking and error handling
- โ SSF script content validation
- โ Project structure validation
- โ MCP protocol compliance and tool registration
- โ Complete MCP server initialization and tool execution
- โ Filter type processing differences
- โ Environment variable handling
- โ CI/CD environment adaptation
- โ Error conditions and edge cases
Local Development Testing
# Quick validation of local setup
npm run validate-ci
# Test in CI mode locally (simulates GitHub Actions)
CI=true npm run test:all
# Full local testing
pipenv run test && npm run test:all
For detailed testing documentation, see CI_TESTING.md.
Usage
As an MCP Server
Run the server directly:
# If installed globally
siril-mcp
# If using pipenv
pipenv run siril-mcp
# Or activate the environment first
pipenv shell
siril-mcp
With Claude Desktop
Add to your Claude Desktop configuration:
{
"mcpServers": {
"siril": {
"command": "siril-mcp"
}
}
}
Project Structure
Your Seestar project should be organized like this:
project_root/
โโโ lights/ # Your FITS files go here
โ โโโ Light_001.fits
โ โโโ Light_002.fits
โ โโโ ...
โโโ process/ # Output directory (created automatically)
โโโ mosaic.fits # Final processed mosaic
Note: The SSF script files are created automatically - you don't need to download them manually!
Available Tools
find_siril_binary()
Locates and validates the Siril binary on your system. Useful for troubleshooting installation issues.
validate_siril_binary(binary_path)
Tests whether a specific Siril binary path works correctly. Useful for validating custom installations.
check_siril_version()
Returns the version of your installed Siril software.
process_seestar_mosaic(project_dir, filter_type)
Processes FITS files in the project directory using the appropriate Siril script.
project_dir: Path to your project rootfilter_type: Either "broadband" or "narrowband"
The function automatically creates the required SSF scripts, so you don't need to download anything manually.
check_project_structure(project_dir)
Analyzes your project directory and shows what files are present and what might be missing.
download_latest_ssf_scripts(project_dir)
Downloads the latest SSF script files from the naztronaut/siril-scripts repository.
preprocess_with_gui(project_dir) (Planned)
Future feature to launch Naztronomy Smart Telescope preprocessing GUI in headless mode.
Filter Types Available
broadband: For UV/IR block filters (most common)narrowband: For light pollution (LP) filters
๐ Releases & CI/CD
Automated Release Process
This project features a fully automated release system with two approaches:
Option 1: GitHub Actions Release (Recommended)
- Go to: GitHub Actions
- Select: "Release with release-it" workflow
- Click: "Run workflow"
- Choose: Release type:
- Patch (1.0.0 โ 1.0.1) - Bug fixes
- Minor (1.0.0 โ 1.1.0) - New features
- Major (1.0.0 โ 2.0.0) - Breaking changes
Option 2: Traditional Tag-Based Release
# Create and push a new version tag
git tag v1.0.0
git push origin v1.0.0
Both methods trigger the complete release pipeline:
Pre-Release Validation
- โ Code Quality: Automated linting and formatting checks
- โ Multi-Python Testing: Tests across Python 3.10, 3.11, and 3.12
- โ Python Unit Tests: Complete pytest suite validation
- โ MCP Integration Tests: Full MCP protocol and tool functionality testing
- โ Package Building: Wheel and source distribution validation
Release Execution
- โ Version Management: Automatic version synchronization across all files
- โ Changelog Generation: Conventional changelog with commit links
- โ GitHub Release: Automated release creation with artifacts
- โ PyPI Publishing: Automatic publishing to PyPI (for stable releases)
Advanced Release Features
- ๐ Version Synchronization: Automatically syncs versions between
package.jsonandpyproject.toml - ๐ Conventional Changelogs: Auto-generated changelogs from commit messages
- ๐ท๏ธ Smart Tagging: Automatic git tagging with proper semantic versioning
- ๐ฆ Asset Management: Release artifacts automatically attached to GitHub releases
- โจ Pre-commit Hooks: Quality checks run automatically before releases
Quality Gates
No release proceeds unless ALL tests pass, ensuring every published version is:
- โ Properly formatted and linted
- โ Compatible across supported Python versions
- โ Functionally validated with unit tests
- โ MCP protocol compliant
- โ Tool functionality verified
- โ Package integrity confirmed
CI Status Badges
The repository includes live status badges showing:
๐ค Contributing
This project is in early development and contributions are welcome! Here's how to get started:
Development Setup
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Install development dependencies:
pipenv install --dev # Python dependencies npm install # Node.js testing dependencies
Making Changes
- Make your changes and add tests
- Add Python unit tests in
tests/directory - Update MCP integration tests if modifying tool functionality
- Add Python unit tests in
- Run the complete test suite:
pipenv run test # Python tests npm run test:all # MCP integration tests npm run validate-ci # CI readiness check - Format and lint your code:
pipenv run format # Black formatting pipenv run lint # Flake8 linting
Submitting Changes
- Commit your changes:
git commit -m 'Add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a Pull Request
Pull Request Requirements
All PRs must pass:
- โ Code Formatting: Black formatting compliance
- โ Linting: Flake8 validation without errors
- โ Python Tests: All pytest unit tests passing
- โ MCP Integration: All MCP protocol tests passing
- โ Multi-Python: Tests passing on Python 3.10, 3.11, and 3.12
- โ CI Validation: All GitHub Actions workflows passing
Testing Your Changes Locally
Before submitting a PR, ensure everything works:
# Quick validation (like CI will run)
npm run validate-ci
# Complete local testing
pipenv run test && npm run test:all
# Test CI mode locally
CI=true npm run test:all
Development Roadmap
- [ ] Complete GUI integration for preprocessing tools
- [ ] Add support for additional telescope types
- [ ] Implement batch processing capabilities
- [ ] Add image quality assessment tools
- [ ] Create comprehensive documentation site
- [ ] Publish to PyPI for stable releases
- [ ] Add Docker container support
Filter Types Available
Credits
This MCP server uses SSF scripts from the naztronomy/siril-scripts repository by Nazmus Nasir (Naztronomy.com), used under the GPL-3.0 license.
License
MIT License - see LICENSE file for details.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.