impreza-mcp is a server based on the Model Context Protocol (MCP), designed specifically for Impreza Host, aiming to enable AI coding assistants to complete application deployment to hosted VPS directly within a conversation. It supports a variety of AI coding tools, including Claude Code, Cursor, Codex CLI, Continue, and Zed.
Purpose
The main purpose of this tool is to simplify the process from code to deployment. Users can deploy local projects to Impreza-managed VPS without leaving the AI chat interface. When a user says "deploy this for me" to the AI, the AI will call the impreza_deploy_custom tool to automatically complete project packaging, upload, build, and run, and return the application's access URL.
Main capabilities
- One-click deployment: Deploy custom applications directly through AI instructions, supporting Node.js servers/static sites, etc., with the option to specify a package manager (such as pnpm, yarn).
- Server management: Supports adding existing servers (any Linux machine with root access and outbound HTTPS), and returns a one-time installation command. The first external server for each account is free.
- Inbound access control: Manage access allowlists for non-HTTP ports (such as databases, game servers) through
impreza_get_ingressandimpreza_set_ingress, supporting IPv4/IPv6 CIDR rules. - Exact top-ups:
impreza_topupaccepts exact decimal string amounts to avoid floating-point conversion errors. - Application protection: Provides a guided prompt
impreza_protect_appto help users create a cold standby on their own server in another country and conduct recovery drills. - Agent installation:
impreza_install_agentcan install the Impreza agent on a hosted VPS, requiring explicit user confirmation. - Secure secret entry: Secret values do not pass through chat; they are entered by the account owner through a one-time portal link.
- Deployment management: Supports canceling deployments, viewing deployment progress and runtime health status, saving project plans, and retrying safely.
- Project plans:
impreza_plan_projectsupports inspecting projects from a Git repository (requiring an exact commit hash) or a retained context ID, and saving deployment configurations.
Usage
- Pair the local CLI: Generate a one-time code in the Impreza customer area (valid for 10 minutes), then run
npx -y impreza-mcp login --code <code-from-clientarea>on the machine running the MCP server. The CLI will save the returned key, secret, scopes, and expiration time in~/.impreza/credentials.json(POSIX system directory permissions 0700, file permissions 0600; Windows uses protected ACLs). - Environment variables: You can set
IMPRESA_API_KEYandIMPRESA_API_SECRETto explicitly override the saved credentials. SettingIMPRESA_BASE_URLcan change the API endpoint (HTTPS required; v3 onion endpoints require settingIMPRESA_PROXYfor an explicit SOCKS5 proxy). Unofficial APIs or local addresses also require settingIMPRESA_ORIGIN_AUTHORIZEDto the exact origin. - Add an existing server: call
impreza_add_serverto connect an existing server and return a one-time installation command (the token is valid for 10 minutes). - Deploy an application: request deployment directly in the AI chat, and the AI will call the corresponding tool to complete it.
Use cases
- Developers want to quickly deploy a local project to a VPS without leaving the AI programming environment.
- Need to manage multiple servers (including external servers) and unify the deployment process.
- Need to control access to non-HTTP ports (such as databases and game servers).
- Need to set up cross-region cold standby and recovery drills for critical applications.
- Need to enter secrets securely and avoid exposing sensitive information in chat.
Limitations
- Requires an Impreza Host account and the corresponding VPS or external server.
- Some features require a specific agent version (for example, inbound access control requires agent 0.6.26+, and runtime health requires 0.6.4+).
- Pairing codes are valid for 10 minutes and are single-use; credential files are not overwritten, and the old key must be revoked first.
- Adding external servers: the first one is free; after that, an active Impreza VPS is required to obtain more slots (up to 5 external servers).
- Project plans store at most 20 pending records, valid for no more than 24 hours.
- Only Git repositories on public network HTTPS port 443 are supported; redirects and submodules are rejected.
- Some operations (such as restricting inbound access) may block your own access and require confirmation.
- Deployment progress is not a real-time percentage and does not represent current runtime health.
- Canceling a deployment requires the exact
last_operation.command_idand management permissions. - Application protection features only cover reviewed failover applications (such as Memos 0.31.0 and Uptime Kuma 2.5.5), and do not automatically purchase servers, switch traffic, or change DNS.
- Secret values cannot be passed through tool parameters and must be entered via the portal link.
- Some features require the corresponding scoped permissions (such as deploy, read, manage).