Skip to main content

AI on Upsun

Deploy AI agents, MCP servers, RAG applications, and chatbots. Integrate with Claude, GPT, Gemini, and any LLM API.

Model Context Protocol

Upsun MCP Server

Give Claude direct access to your Upsun infrastructure. Manage projects, environments, and deployments through natural language conversations.

Deploy with natural language

Ask Claude to deploy your app, create environments, or scale resources

Manage infrastructure

Query logs, check metrics, and troubleshoot issues conversationally

Works with Claude Desktop

Seamless integration with your existing AI assistant workflow

Get Started with MCP
terminal
# Install the Upsun MCP Server
$ npx -y @platformsh/mcp-server-upsun init
# Now ask Claude to deploy
You: “Deploy my Next.js app to production”
✓ MCP Server connected
✓ Found project: my-nextjs-app
✓ Creating environment: main
✓ Deploying application…
✓ Deployment complete!
Claude Code CLI
# Deploy with slash commands
claude> /upsun deploy —environment main
Building application ‘myapp’…
Provisioning services…
✓ Deployed to main
# Check environment status
claude> /upsun status
Claude Code Integration

Upsun Skill for Claude Code

Deploy directly from your terminal with Claude Code CLI. Manage your entire Upsun infrastructure without leaving your development environment.

Slash command interface

Simple commands like /upsun deploy for instant deployment

Integrated workflow

Code, test, and deploy without context switching

Full environment control

Create, merge, and manage environments from the command line

View on GitHub
terminal — bash

Quick Start: Deploy an AI Agent

Get started with a simple Python AI agent that integrates with the Anthropic API.

.upsun/config.yaml
applications:
ai-agent:
type: “python:3.12”
relationships:
database: “db:postgresql”
hooks:
build: |
pip install anthropic flask
web:
commands:
start: “python app.py”
services:
db:
type: postgresql:16
app.py
import anthropic
import os
client = anthropic.Anthropic(
api_key=os.environ[“ANTHROPIC_API_KEY”]
)
message = client.messages.create(
model=“claude-3-5-sonnet-20241022”,
max_tokens=1024,
messages=[
]
)
# Set your API key as an environment variable
$upsun variable:create —level environment —name ANTHROPIC_API_KEY —value “your-key”
# Deploy to Upsun
$git push upsun main
Building application ‘ai-agent’…
Provisioning PostgreSQL database…
✓ Deployment complete
Full AI Agent Tutorial

Supported Technologies

Build with your preferred stack. Any language, any LLM, any database.

Runtimes

PythonNode.jsPHPGoRubyJava

LLM Providers

ClaudeGPT-4GeminiAzure OpenAIBedrock

AI Frameworks

LangChainLlamaIndexHaystackSemantic Kernel

Vector Databases

pgvectorChromaQdrantRedisMongoDB

CPU-optimized for AI orchestration. Call external LLM APIs for GPU-intensive inference. Your app handles business logic, data processing, and UX — cost-effective and easy to scale.

Ready to Deploy Your AI Application?

Start building AI agents, MCP servers, and intelligent applications on Upsun today.