🚀 Railway Deployment Guide
Quick Start (5 Minuten)
Step 1: Railway Account erstellen
- Gehen Sie zu https://railway.app
- "Start a New Project" klicken
- Mit GitHub einloggen
Step 2: Repository deployen
- "Deploy from GitHub repo" wählen
pxxcpo/pixxio-mcp-serverRepository wählen- "Deploy Now" klicken
Railway erkennt automatisch:
- ✅ Python 3.11
- ✅ requirements.txt
- ✅ Procfile
- ✅ Baut und startet den Server
Step 3: Environment Variables setzen
Im Railway Dashboard:
- Klicken Sie auf Ihr Projekt
- "Variables" Tab öffnen
- Fügen Sie hinzu:
PIXXIO_API_KEY=ihr_pixxio_api_key
PIXXIO_BASE_URL=https://richard.px.media/api- "Save" klicken
- Server startet automatisch neu
Step 4: URL notieren
Railway gibt Ihnen eine URL wie:
https://pixxio-mcp-production.up.railway.appDiese URL brauchen Sie für Claude Desktop!
Claude Desktop konfigurieren
Config-Datei öffnen:
code ~/Library/Application\ Support/Claude/claude_desktop_config.jsonServer-Verbindung hinzufügen:
Option A: HTTP-SSE (Empfohlen für Cloud)
{
"mcpServers": {
"pixxio": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-http-sse",
"https://pixxio-mcp-production.up.railway.app/sse"
]
}
}
}Option B: Direct Connect (falls Option A nicht funktioniert)
{
"mcpServers": {
"pixxio": {
"url": "https://pixxio-mcp-production.up.railway.app",
"transport": "sse"
}
}
}Claude Desktop neu starten:
# Cmd + Q (Claude beenden)
# Claude Desktop neu öffnen✅ Fertig! Der Server läuft in der Cloud!
Testen
In Claude Desktop fragen:
Suche nach "Neubau" in pixx.ioSollte funktionieren ohne lokalen Server! 🎉
Logs ansehen
In Railway Dashboard:
- Projekt öffnen
- "Deployments" Tab
- Aktuelles Deployment anklicken
- Live Logs sehen Sie in Echtzeit!
Nützlich für:
- Debugging
- Performance-Monitoring
- Error-Tracking
Updates deployen
Automatisch (empfohlen):
cd ~/pixxio-mcp-server
git add .
git commit -m "Update feature"
git pushRailway deployed automatisch! ✅
Manuell:
Im Railway Dashboard:
- "Deployments" Tab
- "Redeploy" klicken
Kosten
Railway Free Tier:
- $5 Guthaben/Monat kostenlos
- Reicht für ~500,000 Requests
- Perfekt für Testing & kleine Teams
Wenn Sie mehr brauchen:
- Hobby Plan: $5/Monat
- Pro Plan: $20/Monat
- Transparente Preise, keine Überraschungen
Für Kunden bereitstellen
Option 1: Shared Instance (einfach)
- Ein Server für alle Kunden
- Kunden bekommen API Key
- Sie verwalten zentral
Option 2: Pro Kunde (isoliert)
- Jeder Kunde eigener Railway-Deploy
- Volle Isolation
- Kunde verwaltet selbst
Empfehlung für Start:
Shared Instance - einfacher, günstiger, reicht für die meisten
Troubleshooting
Server startet nicht?
- Logs in Railway checken
- Environment Variables prüfen
- requirements.txt korrekt?
Claude Desktop verbindet nicht?
- URL in Config korrekt?
/sseam Ende?- Claude Desktop neugestartet?
API Errors?
- PIXXIO_API_KEY korrekt?
- PIXXIO_BASE_URL mit
/apiam Ende? - API Key in pixx.io noch aktiv?
Next Steps
✅ Server läuft in Cloud ✅ Claude Desktop verbunden ✅ Keine lokalen Neustarts mehr
Jetzt:
- Features testen
- Für ChatGPT vorbereiten
- Kunden-Ready machen
Support
- Railway Docs: https://docs.railway.app
- FastMCP Docs: https://github.com/jlowin/fastmcp
- pixx.io API: https://pixx.io/de/developers
🎉 Geschafft! Ihr MCP Server läuft in der Cloud!
