Varity MCP Server
OfficialThe Varity MCP server lets AI coding clients deploy and manage Varity-hosted apps and infrastructure through natural language.
Search live Varity documentation.
Estimate deployment costs and read account balance.
Check environment readiness and connect/sign out of Varity.
Install dependencies, build locally, start/stop the dev server, open URLs, and create GitHub repositories.
Deploy projects from Git repositories, local folders/uploads, or prebuilt container images.
List and deploy public certified templates, with secrets read from local
.envfiles.Check deployment status and runtime logs, redeploy existing apps, and delete deployments to stop billing.
Set app environment variables from a project
.envwithout passing values through chat.Add, verify, and remove custom domains for deployed apps.
List, create, and delete CPU or GPU virtual machines with SSH access.
Preview Vercel-to-Varity migration transformations without mutating or deploying.
Supports deployment of Astro applications to Varity with automatic wired backend services.
Allows deployment of Django applications to Varity with automatic backend service wiring.
Enables deployment of Express.js applications to Varity with automatic backend provisioning.
Supports deployment of FastAPI applications to Varity with automatic backend service wiring.
Allows deployment of Fastify applications to Varity with automatic backend provisioning.
Enables deployment of Flask applications to Varity with automatic backend service wiring.
Supports deployment of Hono applications to Varity with automatic backend provisioning.
Allows deployment of Koa applications to Varity with automatic backend service wiring.
Provides automatic wiring and provisioning of MongoDB databases for deployed applications.
Provides automatic wiring and provisioning of MySQL databases for deployed applications.
Allows deployment of NestJS applications to Varity with automatic backend provisioning.
Supports deployment of Next.js applications to Varity with automatic backend service wiring.
Enables deployment of Node.js applications (using supported frameworks) to Varity.
Provides automatic wiring of Ollama for AI models in deployed applications.
Enables deployment of Python applications (using FastAPI, Django, or Flask) to Varity.
Supports deployment of Qwik applications to Varity with automatic backend provisioning.
Allows deployment of React (Vite SPA, Next.js) applications to Varity with automatic backend wiring.
Provides automatic wiring and provisioning of Redis instances for deployed applications.
Supports deployment of Vite SPA applications to Varity with automatic backend service wiring.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Varity MCP Server Deploy my Next.js app to Varity"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@varity-labs/mcp
The published Varity MCP package for Cursor, Claude Code, VS Code, Windsurf, and other MCP clients.
This repository contains only @varity-labs/mcp, the npm MCP server. It is a thin client of Varity's public API; it is not the Python CLI, the portal, the dormant SDK, or an app-store package.
The Varity MCP Server lets a supported local AI coding client build, deploy, and manage supported apps in production for you.
Ask your AI to put your app online: you can see the cost before anything deploys, a static site is usually live in seconds, and your keys stay in your project's .env file, never in the chat.
Quick start: pick your editor below and run one command.
Install
One-click install
GitHub does not open editor links, so use the install buttons on the Varity MCP docs page, or open the link for your editor from your browser's address bar:
Cursor: cursor://anysphere.cursor-deeplink/mcp/install?name=varity&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkB2YXJpdHktbGFicy9tY3BAbGF0ZXN0Il19
VS Code: vscode:mcp/install?%7B%22name%22%3A%22varity%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40varity-labs%2Fmcp%40latest%22%5D%7D
VS Code Insiders: vscode-insiders:mcp/install?%7B%22name%22%3A%22varity%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40varity-labs%2Fmcp%40latest%22%5D%7DEach link installs npx -y @varity-labs/mcp@latest and carries no key: you connect your Varity account afterwards with varity_login.
Cursor
Add to .cursor/mcp.json:
{
"mcpServers": {
"varity": {
"command": "npx",
"args": ["-y", "@varity-labs/mcp@latest"]
}
}
}Claude Code
claude mcp add varity -- npx -y @varity-labs/mcp@latestVS Code with Copilot
Command Palette → MCP: Add Server
Select Command (stdio)
Command:
npx -y @varity-labs/mcp@latestName:
Varity
Windsurf
Add to mcp_config.json:
{
"mcpServers": {
"varity": {
"command": "npx",
"args": ["-y", "@varity-labs/mcp@latest"]
}
}
}Any MCP-compatible client (stdio)
{
"mcpServers": {
"varity": {
"command": "npx",
"args": ["-y", "@varity-labs/mcp@latest"]
}
}
}Related MCP server: Deploy MCP
What you can do from your AI editor
The MCP exposes Varity's deploy surface so your AI tool can take action — not just generate code. Try prompts like:
Deploy your own code
"Deploy this project to production"
"Ship this app live"
"What would it cost to deploy this on Varity?"
Deploy a supported public template (one command, no code required)
"What templates can Varity deploy?"
"Which templates need no secrets?"
"Deploy this public, secret-free template for me"
Manage live deployments
"Show my deployments"
"What's the URL of my last deploy?"
"Stop my-app and stop billing it"
"Why did my deployment fail?"
"Show the runtime logs for my deployment"
Preview a Vercel migration
"Preview what would change when migrating github.com/me/my-app"
"Show me the Vercel-specific artifacts to replace"
When your app is live
Ask your agent to finish with one plain line: where the app is, what it can cost, and how to stop paying. It reads like this:
Your app is live at
<live URL>. It costs up to<monthly maximum>/month (monthly maximum). To stop billing, ask me to delete it.
The URL comes from varity_deploy_status and the monthly maximum from varity_cost_calculator or varity_template_info. Virtual machines are priced by the hour.
Docs and pricing
"Search Varity docs for environment variables"
"What is the current estimate for this pricing profile?"
"What billing projection does my deployed app report?"
Tools
Tool | What it does |
| Search the Varity documentation |
| Project the live owner's monthly or hourly USD estimate without converting units; pre-deploy estimates need no sign-in |
| Read your available balance, the amount set aside for your running apps ( |
| Check that your environment is ready to deploy |
| Connect Varity: when browser sign-in is switched on, opens a browser tab where you confirm (or shows a short code on a machine without a browser); until then it tells you to add a deploy key to your editor's MCP settings and restart the editor |
| Sign this computer out: revokes the saved sign-in on Varity, then removes it |
| Install project dependencies |
| Build the project |
| Open a URL locally |
| Start the local development server |
| Create a GitHub repository and push the project |
| Deploy the current project to production; a folder without a readable GitHub repository is saved as a private copy Varity keeps (deleted with the deployment) and built |
| Check the status of a deployment: the current step and time so far while it deploys, how long it took once live, and the last lines of the build error when a build failed |
| Read runtime logs |
| Request deletion; poll |
| Set an app's settings (such as API keys) from the project's own |
| Point your own domain at an app and get the exact DNS record to add at your registrar |
| Check whether that DNS record is in place and the domain is live |
| Stop serving an app at its custom domain (it keeps its Varity address) |
| Restart a deployed dynamic or container app from its last successful release at its saved commit; a static site cannot be restarted. To ship new commits, push and run |
| List your CPU and GPU virtual machines that are still running or billing, one line each ( |
| Quote and create a CPU or ( |
| Delete a CPU or GPU virtual machine and confirm its billing stopped |
| List certified gateway-owned Varity templates |
| Show full details for one certified template |
| Deploy a public certified template; a template's required settings are read from your project's |
| Backward-compatible alias for |
| Backward-compatible alias for |
| Backward-compatible alias for |
| Preview Vercel-to-Varity source transformations without mutating or deploying |
Templates
Varity templates come from the gateway-owned certified catalog. Ask your AI editor "what templates can I deploy?" and it will list the live catalog and inspect each template contract. The MCP deploy tool supports public templates; when a template needs settings (for example an API key), put them in a .env file in your project folder and the tool reads them there, so the values never pass through chat. Private templates are refused.
Each template reserves different hardware. Use varity_template_info to see the required environment variables, private/public access mode, resources, hardware profile, and certification state before deciding whether the MCP can deploy it.
End-to-end example
From empty folder to deployed app, all in natural language:
You: "Make me a simple landing page for my coffee shop and deploy it"
AI: Wrote the landing page and ran its local build.
AI: Deploy accepted. Tracking its durable run until the owner reports a terminal outcome.
AI: The status owner now reports the app live at https://varity.app/coffee-shop/
You: "Now deploy Agent Zero"
AI: Agent Zero is certified and does not require environment variables.
AI: Template deploy accepted. No live URL is claimed until varity_deploy_status proves it.Pricing
Pricing profiles and values are owned by Varity's live public interface. Ask
your AI editor to use varity_cost_calculator for a current estimate; this
package intentionally embeds no price table or billing-policy copy.
Transport
The package supports stdio for local MCP clients such as Cursor, Claude Code, VS Code, and Windsurf.
npx -y @varity-labs/mcp@latestThe former hosted endpoint and network transport are retired. Browser clients that require a remote MCP URL are not supported by this package.
Prerequisites
Node.js >= 22.11 (the current supported LTS baseline; EOL Node 18/20 are unsupported)
A Varity deploy key for deploys and account reads. This is the way to connect today: create one at https://developer.store.varity.so/dashboard/settings?tab=api-keys, add it as
VARITY_DEPLOY_KEYin your editor's MCP settings for Varity, then restart your editor or AI assistant. Keep the key out of the chat. If the Portal asks for a payment method before it creates the key, you can still put a site online today without a card using Chat and Build: https://developer.store.varity.so/dashboard/ai-gateway?tab=chat&mode=build Connecting through a browser sign-in (varity_loginopens a browser tab, you confirm, and the sign-in is saved on this computer in~/.varitykit/config.json, readable only by you) is being switched on. Until it is,varity_loginsays so and points you to the deploy key. The key is read in this order:VARITY_DEPLOY_KEY, then the sign-in file~/.varitykit/config.json, then the legacyVARITY_API_KEY.varity_doctorreports which source supplied it.varitykit (
pipx install varitykit) only forvarity_migrate
Deploy supported apps from your AI coding tool.
Available Tools
30 toolsvarity_agent_infoShow AI Agent Template DetailsARead-onlyIdempotent
Backward-compatible alias for varity_template_info. Pass a certified template ID from varity_list_templates.
Inputs: name (required).
varity_balanceAccount BalanceARead-onlyIdempotent
Read your Varity balance in USD: available, set aside for running apps, and owed. reserved_usd is the amount set aside for the user's running apps (their monthly maximums), not a measure of funded backing. The data carries exact decimal USD strings; the message rounds to cents. Use before deploying or when asked how much balance remains. An unavailable read is never reported as zero.
Inputs: no named parameters.
varity_buildBuild ProjectAIdempotent
Build the project for production. Auto-detects framework from package.json. Run before deploying or to verify the project compiles.
Inputs: path.
varity_cost_calculatorCost CalculatorARead-onlyIdempotent
Request a current deployment-price estimate from the Varity public pricing interface. Use whenever a developer asks what a Varity deployment costs. Pass subdomain for a live deployment's current billing projection (needs a deploy key), or app_profile for a pre-deploy estimate (no sign-in needed). Profiles: static-site (alias static), web-app, web-app-db, ai-agent-cpu; an unknown profile returns the current list. All amounts are USD.
Inputs: subdomain, app_profile.
varity_create_repoCreate GitHub RepositoryA
Create a new GitHub repository and push your local project to it. Pass the 'path' parameter with the local project directory. This creates an empty repo and pushes your actual code to GitHub. varity_deploy builds from a Git repository URL (or takes a prebuilt image), so call this before varity_deploy when you have code locally but no repository yet. Requires GitHub CLI authentication or a GITHUB_TOKEN/GH_TOKEN environment variable with repository access.
Inputs: name (required), path, visibility, description.
varity_delete_deploymentRequest Deletion of a DeploymentADestructiveIdempotent
Request deletion of an existing Varity deployment by id or app name. Returns as soon as the delete is accepted, usually with status deleting; it does not wait. Billing stop is proven only when varity_deploy_status shows status deleted and billing.state stopped, so poll that tool before telling the developer billing has stopped. Use this when a developer says 'stop my ', 'shut down my deployment', 'I'm done with ', 'delete ', or when they no longer need a running app or agent. The durable operation independently reconciles route removal, reserved hardware release, and billing stop. Use varity_deploy_status or list deployments at https://developer.store.varity.so/dashboard to confirm the deployment first if the developer is unsure.
Inputs: deployment (required).
varity_deployDeploy to ProductionA
Submit a Git repository, a local project folder, or a prebuilt container image to Varity's deployment owner. A folder with no public GitHub repository is tried as a direct upload, which Varity may not have switched on yet: never promise the upload or private code before it succeeds; if it answers UPLOAD_UNAVAILABLE, Varity can't take a folder from this computer yet. The control plane detects the framework, selects hosting, builds, and manages lifecycle state. Use this when a developer wants to deploy, publish, ship, or make their app live. If the developer wants to deploy a certified template rather than their own code, use varity_deploy_template instead. To ship new code for an app that is already deployed, push it and call varity_deploy again with the same app_name: the same owner and workload shape updates that app in place at the latest commit (varity_redeploy does not pick up new commits). For an uploaded folder, call varity_deploy again with the same path and app_name: it uploads the folder again. To stop a deployment and its billing, use varity_delete_deployment.
Inputs: path, port, image, source, +4 more.
varity_deploy_agentDeploy an AI Agent TemplateA
Backward-compatible alias for varity_deploy_template. Deploys only public certified templates with no required environment variables; private or secret-bearing templates are refused.
Inputs: agent (required), name.
varity_deploy_logsDeployment Info & LogsARead-onlyIdempotent
Get recent runtime logs for a deployment from the Varity public API. Use this when a developer asks for logs from a live app. If a deploy failed while building, call varity_deploy_status with the deployment: it returns the build error lines.
Inputs: limit, deployment, deployment_id.
varity_deploy_statusDeployment StatusARead-onlyIdempotent
List deployments or get status of a specific deployment. Shows the owner-scoped fields returned by the Varity public interface, including URL, status, runtime when available, and creation time. A separate HTTP probe records reachability without overwriting the owner's lifecycle status; authenticated, POST-only, or transiently unavailable apps may return a non-2xx probe. Use this when a developer asks about their deployments, wants to check status, or needs to find a deployment URL. For one deployment it also says, in plain words, the current stage and time so far while deploying, how long it took once live, and, when a build failed, the last lines of the build error (build_error.lines) so the cause can be fixed in the code.
Inputs: path, limit, deployment_id.
varity_deploy_templateDeploy a Varity TemplateA
Deploy a public certified Varity template. Call varity_template_info first: if it lists required env vars, ask the user to put them in a .env file in their project folder and pass that folder as path (values never go through chat). Private templates are refused.
Inputs: template (required), name, path, confirm, +1 more.
varity_dev_serverDevelopment ServerB
Start, stop, or check the local development server. Returns the localhost URL for previewing the app.
Inputs: action (required), path, port.
varity_doctorCheck EnvironmentARead-onlyIdempotent
Check local-development and deployment readiness independently. Node.js and npm qualify local JavaScript tools; a verified deploy key qualifies deployment, and the report names which source supplied the key. varitykit is needed only for varity_migrate. Run this before varity_deploy to catch missing prerequisites early.
Inputs: no named parameters.
varity_domain_addAdd a Custom DomainAIdempotent
Point the user's own domain (e.g. app.example.com or example.com) at a deployed app. Returns the exact DNS record to add at their domain registrar, in plain words. Then call varity_domain_verify.
Inputs: hostname (required), deployment (required).
varity_domain_removeRemove a Custom DomainADestructiveIdempotent
Stop serving an app at its custom domain. The app keeps its Varity web address; the DNS record can then be deleted at the registrar.
Inputs: deployment (required).
varity_domain_verifyCheck a Custom DomainBIdempotent
Check whether the DNS record for an app's custom domain is in place and whether the domain is live.
Inputs: deployment (required).
varity_install_depsInstall DependenciesBIdempotent
Install npm dependencies in a Varity project. Use after creating a project or when adding new packages.
Inputs: path, packages.
varity_list_agentsList Available AI Agent TemplatesARead-onlyIdempotent
Backward-compatible alias for varity_list_templates. Returns the gateway-owned certified template catalog, not a hardcoded MCP list.
Inputs: no named parameters.
varity_list_templatesList Certified Varity TemplatesARead-onlyIdempotent
List the certified Varity deploy templates from the gateway-owned catalog. Use this before deploying a template.
Inputs: no named parameters.
varity_loginConnect VarityAIdempotent
Connect Varity on this computer, so deploys work. When browser sign-in is switched on, tell the user before calling: "I'll open a browser tab: confirm there to connect Varity." and confirming in the browser is the only step. When it is not, the call answers SIGN_IN_UNAVAILABLE: then relay its message, which connects with a deploy key added to the editor's MCP settings, never typed into chat. The call waits up to 2 minutes; if it returns status "pending", relay its message to the user and call varity_login again to finish the same sign-in. On a machine without a browser it returns a link and a short code for the user to confirm on any device. Never ask the user for a key; credentials are never accepted as tool input.
Inputs: no named parameters.
varity_logoutSign Out of VarityADestructiveIdempotent
Sign this computer out of Varity: the saved sign-in is revoked on Varity, so it stops working everywhere, then removed from this computer. Use only when the user asks to sign out or disconnect. A key set in the MCP server environment is not changed.
Inputs: no named parameters.
varity_machines_createCreate a MachineA
Create a Varity CPU or GPU virtual machine the developer can SSH into. Requires the developer's own SSH PUBLIC key (e.g. the contents of ~/.ssh/id_ed25519.pub); never pass a private key. Get profile_id and os_image from varity_machines_list with include_profiles (and gpu: true for a GPU VM, then pass gpu: true here too). The machine bills hourly until varity_machines_delete.
Inputs: name (required), os_image (required), profile_id (required), ssh_public_key (required), +3 more.
varity_machines_deleteDelete a Machine and Stop Its BillingADestructiveIdempotent
Delete a Varity CPU or GPU virtual machine by id and wait (up to 10 minutes) until its billing reads stopped.
Inputs: machine_id (required), idempotency_key.
varity_machines_listList MachinesARead-onlyIdempotent
List the developer's Varity CPU and GPU virtual machines with their state, SSH access and billing. Set include_profiles to also get the machine profiles and OS images (profile_id, os_image) that varity_machines_create accepts: CPU profiles by default, GPU VM profiles (with GPU model, VRAM, hourly price and default_os_image) when gpu is true. By default only machines still running or billing are listed; set include_stopped to list machines whose billing has stopped too, at most limit of them.
Inputs: gpu, limit, include_stopped, include_profiles.
varity_migratePreview a Vercel MigrationARead-onlyIdempotent
Clone a GitHub repository into a disposable directory and preview the transformations the current varitykit migration owner would apply. This tool does not mutate the source repository or deploy. Applying a migration requires a user-controlled local checkout so the transformed source can be reviewed, committed, and pushed before deployment.
Inputs: github_url (required), dry_run.
varity_open_browserOpen in BrowserAIdempotent
Open a URL in the user's default browser. Use after deploying to show the live app or after starting the dev server.
Inputs: url (required).
varity_redeployRestart an App's Last ReleaseADestructive
Restart an app that is ALREADY deployed from its last successful release, at that release's saved commit and configuration. The app keeps the same deployment and URL. It does not pick up new commits: to ship new code, push it and call varity_deploy again with the same app_name. An app with no successful release cannot be restarted. Redeploy restarts dynamic and container apps only; for a static site, push the change and call varity_deploy again with the same app_name. Configure secrets through an approved secret-safe interface. To create a NEW deployment instead, use varity_deploy.
Inputs: name (required).
varity_search_docsSearch Varity DocsARead-onlyIdempotent
Search the live Varity documentation for how-to guides, getting-started tutorials, deployment, supported stacks, pricing, and troubleshooting. Content is fetched from the live docs with a five-minute cache.
Inputs: query (required), maxResults.
varity_set_envSet App Settings From .envADestructive
Set environment variables (settings such as API keys) on a deployed app from the project's own .env file. Pass the app, the project folder and the setting NAMES; the values are read from the file on this computer and never go through chat. Never ask the user to type a value into chat: ask them to put it in .env. This restarts the app, and restarting holds one more month's maximum, released when billing next settles, usually within 20 minutes, so tell the user before calling. The user is asked to confirm the names and the restart before anything is sent. Call it once; do not repeat it on a timeout (check varity_deploy_status instead).
Inputs: keys (required), path (required), deployment (required), confirm, +1 more.
varity_template_infoShow Varity Template DetailsARead-onlyIdempotent
Show full details for a certified Varity template: required env, resources, access mode, hardware profile, and certification state.
Inputs: template (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 30 tools
Most tools target distinct operations, but the deploy family is crowded (varity_deploy, varity_deploy_template, varity_deploy_agent, varity_redeploy, varity_delete_deployment) and three tools (varity_list_agents, varity_agent_info, varity_deploy_agent) are explicit backward-compatible aliases of other tools in the same set. Descriptions do explain the differences and the refusal behaviors, but the aliases invite misselection by an agent that keys off names like 'agent' rather than 'template'.
Everything shares the varity_ prefix and snake_case, which is highly predictable. However, ordering is mixed: most tools use verb_noun (varity_create_repo, varity_list_templates, varity_install_deps) while the machines group uses noun_verb (varity_machines_list, varity_machines_create, varity_machines_delete), and a few are bare nouns (varity_doctor, varity_balance).
The server spans several genuinely distinct domains (deployments, domains, VMs, templates, billing, local dev tooling, docs), so breadth is defensible. But 30 tools is heavy, and at least three of them are pure aliases that add no surface area, pushing well past a comfortable agent-facing set.
Coverage is strong: full deployment lifecycle (deploy, redeploy, status, logs, env, delete), domain add/verify/remove, VM create/list/delete, template discovery/deploy, billing, auth, and local build/deps/dev-server/create-repo. Gaps remain: VMs cannot be stopped or started without deletion, there is no domain listing and no explicit rollback/ship-a-specific-commit operation, and no generic secrets tool beyond per-app .env.
Maintenance
Related MCP Connectors
Build, deploy and manage web apps with the AI you already use.
Deploy and manage your apps, databases, storage, and scheduled jobs from your AI agent
Deploy and run web apps, APIs and databases on Light Cloud from your AI agent.
Build, deploy and run backend functions, APIs, webhooks and cron jobs from your AI client.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to deploy code to any hosting provider by creating PRs, building, and verifying health checks, all from a single natural language command.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI coding assistants to deploy websites directly to Vercel from the IDE, automating framework detection, build validation, and secure environment variable synchronization, with live status updates.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables checking deployability, planning deployments, viewing status and logs, and redeploying projects on your own cloud infrastructure directly from AI coding tools.70 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables AI coding agents to check repository deploy readiness, deploy apps to your own cloud (AWS, Google Cloud, Azure, DigitalOcean), and migrate apps from platforms like Heroku, Railway, Render, or Vercel with rollback.MIT