Connects AI assistants to SkySpark and Haxall building automation systems, dynamically exposing SkySpark Axon functions as MCP tools for building management and control operations
Skyforge MCP Server
ā ļø ALPHA RELEASE - This is an early alpha version. Expect bugs and breaking changes.
š« NOT FOR PRODUCTION - This is a development/experimental version. For a production implementation, please contact james@skyforge-labs.com
š NO AUTHENTICATION - This server has no built-in authentication. CORS is wide open (
allow_origins=["*"]
). Use at your own risk and secure your deployment appropriately.
A Model Context Protocol (MCP) server that connects AI assistants to SkySpark and Haxall building automation systems. Dynamically exposes your SkySpark Axon functions as MCP tools.
Features
Dynamic Axon Tools - Fetches tool definitions from SkySpark at runtime
Prompt Support - Expose templated prompts from SkySpark
Dual Transport - Supports stdio (Claude Desktop) and HTTP/SSE (web clients)
Type Safety - Full Haystack type system with automatic JSON Schema conversion
Docker Ready - Simple Docker deployment included
How It Works
The server fetches tools from SkySpark on each list_tools
request. This means:
Add new tools by creating Axon functions in SkySpark
No server restart needed for schema changes
SkySpark is your single source of truth
Quick Start
Prerequisites
SkySpark or Haxall server with API access
Docker (recommended) OR Python 3.12+ with uv
Quick Setup with Example Tools
For immediate testing, import the included setup.zinc
file into your SkySpark project. This provides example MCP tools and the required fetchMcpTools()
function.
Docker Setup (Easiest)
Clone and configure
git clone https://github.com/yourusername/skyforge-mcp.git cd skyforge-mcp # Create .env file cat > .env << EOF SKYSPARK_URI=http://host.docker.internal:8080/api/demo SKYSPARK_USERNAME=your_username SKYSPARK_PASSWORD=your_password EOFStart server
docker-compose up --buildServer runs on
http://localhost:8000/mcp
Test with MCP Inspector
npx @modelcontextprotocol/inspector docker exec -it skyspark-mcp-server uv run main.py
Local Setup (Development)
Install and run
# Install uv package manager curl -LsSf https://astral.sh/uv/install.sh | sh # Clone and setup git clone https://github.com/yourusername/skyforge-mcp.git cd skyforge-mcp uv sync # Create .env (same as above) # Run stdio mode (for Claude Desktop) uv run main.py # OR run HTTP/SSE mode (for web clients) uv run uvicorn main:app --host 0.0.0.0 --port 8000
Claude Desktop Integration
Edit ~/Library/Application Support/Claude/claude_desktop_config.json
(macOS):
Docker:
Local:
Restart Claude Desktop after saving.
Creating SkySpark Tools
In SkySpark, implement fetchMcpTools()
to return tool definitions as a grid. Each row should have:
name
- Tool identifier (Str)dis
- Display name (Str)help
- Description (Str)params
- Parameter schema (Dict or List)
Example in SkySpark:
Import the included setup.zinc
file into your SkySpark project for example tools and the required fetchMcpTools()
function.
The server fetches tools automatically when clients call list_tools
.
Configuration
Create .env
file:
All three variables are required.
Project Structure
Troubleshooting
Connection errors:
Docker: Use
host.docker.internal
instead oflocalhost
in SKYSPARK_URIVerify SkySpark URI is accessible:
curl http://your-server:8080/api/demo
Check
.env
credentialsEnsure SkySpark API is enabled
No tools appearing:
Verify
fetchMcpTools()
function exists in SkySparkCheck server logs:
docker-compose logs
oruv run main.py
Test with MCP Inspector
Docker issues:
Security Notes
ā ļø Important:
This is NOT for production use - if you are interested in a production implementation, contact james@skyforge-labs.com
No built-in authentication - secure your network/deployment
CORS allows all origins - intended for local development
Store credentials securely (
.env
files, environment variables)For production, add authentication middleware or use VPN/firewall
Credits & License
Built with:
MCP Python SDK - Model Context Protocol implementation
Phable - Haystack/SkySpark client library by Rick Jennings
Project Haystack - Building automation data standard
License: MIT - see LICENSE file
Contributing
Issues and PRs welcome! This is an alpha release - feedback appreciated.
Repository: GitHub
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Connects AI assistants to SkySpark and Haxall building automation systems by dynamically exposing SkySpark Axon functions as MCP tools. Enables natural language interaction with building data, equipment, and automation functions through real-time tool discovery.