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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。