Skip to main content
Glama

@varity-labs/mcp

npm License: see LICENSE Status: Beta

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%7D

Each 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@latest

VS Code with Copilot

  1. Command Palette → MCP: Add Server

  2. Select Command (stdio)

  3. Command: npx -y @varity-labs/mcp@latest

  4. Name: 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

varity_search_docs

Search the Varity documentation

varity_cost_calculator

Project the live owner's monthly or hourly USD estimate without converting units; pre-deploy estimates need no sign-in

varity_balance

Read your available balance, the amount set aside for your running apps (reserved_usd) and the amount owed; the message rounds to cents and the data keeps the exact decimal USD strings; unavailable reads never become zero

varity_doctor

Check that your environment is ready to deploy

varity_login

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

varity_logout

Sign this computer out: revokes the saved sign-in on Varity, then removes it

varity_install_deps

Install project dependencies

varity_build

Build the project

varity_open_browser

Open a URL locally

varity_dev_server

Start the local development server

varity_create_repo

Create a GitHub repository and push the project

varity_deploy

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

varity_deploy_status

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

varity_deploy_logs

Read runtime logs

varity_delete_deployment

Request deletion; poll varity_deploy_status until it is deleted and billing is stopped. If Varity saved a private copy of a folder for this app, that copy is deleted too.

varity_set_env

Set an app's settings (such as API keys) from the project's own .env file: you name the settings, the values are read on your computer and never pass through chat. Your app restarts; restarting may temporarily hold additional balance until billing settles

varity_domain_add

Point your own domain at an app and get the exact DNS record to add at your registrar

varity_domain_verify

Check whether that DNS record is in place and the domain is live

varity_domain_remove

Stop serving an app at its custom domain (it keeps its Varity address)

varity_redeploy

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 varity_deploy again with the same app name

varity_machines_list

List your CPU and GPU virtual machines that are still running or billing, one line each (include_stopped adds stopped ones; limit, default 20, up to 100), optionally with the CPU or, with gpu, GPU VM profile catalog

varity_machines_create

Quote and create a CPU or (gpu: true) GPU virtual machine with your SSH public key

varity_machines_delete

Delete a CPU or GPU virtual machine and confirm its billing stopped

varity_list_templates

List certified gateway-owned Varity templates

varity_template_info

Show full details for one certified template

varity_deploy_template

Deploy a public certified template; a template's required settings are read from your project's .env file, never typed into chat; private templates are refused

varity_list_agents

Backward-compatible alias for varity_list_templates

varity_agent_info

Backward-compatible alias for varity_template_info

varity_deploy_agent

Backward-compatible alias for varity_deploy_template

varity_migrate

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@latest

The 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_KEY in 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_login opens 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_login says 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 legacy VARITY_API_KEY. varity_doctor reports which source supplied it.

  • varitykit (pipx install varitykit) only for varity_migrate


Deploy supported apps from your AI coding tool.

Documentation · GitHub · Discord

Available Tools

30 tools
varity_agent_infoShow AI Agent Template DetailsA
Read-onlyIdempotent

Backward-compatible alias for varity_template_info. Pass a certified template ID from varity_list_templates.

Inputs: name (required).

varity_balanceAccount BalanceA
Read-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 ProjectA
Idempotent

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 CalculatorA
Read-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 DeploymentA
DestructiveIdempotent

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 & LogsA
Read-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 StatusA
Read-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 EnvironmentA
Read-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 DomainA
Idempotent

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 DomainA
DestructiveIdempotent

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 DomainB
Idempotent

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 DependenciesB
Idempotent

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 TemplatesA
Read-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 TemplatesA
Read-onlyIdempotent

List the certified Varity deploy templates from the gateway-owned catalog. Use this before deploying a template.

Inputs: no named parameters.

varity_loginConnect VarityA
Idempotent

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 VarityA
DestructiveIdempotent

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 BillingA
DestructiveIdempotent

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 MachinesA
Read-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 MigrationA
Read-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 BrowserA
Idempotent

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 ReleaseA
Destructive

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 DocsA
Read-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 .envA
Destructive

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 DetailsA
Read-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

    A3.6/5.0

    Scored across 30 tools

    Disambiguation3/5

    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'.

    Naming Consistency4/5

    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).

    Tool Count3/5

    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.

    Completeness4/5

    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

    ActivityActive
    ResponsivenessMixed handling

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to deploy code to any hosting provider by creating PRs, building, and verifying health checks, all from a single natural language command.
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables 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.
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables 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