Skip to main content

DeployKar MCP server

Deploy, monitor and debug your DeployKar apps from your IDE's AI chat: Kiro, Cursor, VS Code (Copilot), Claude Code, Windsurf, or any other MCP client.

"Deploy my app" · "Why did my build fail?" · "Give my API a Postgres database" · "Connect my frontend to my backend"

Your IDE's assistant does the thinking. This server only translates its tool calls into DeployKar API requests, using a personal API token.

Setup (2 minutes)

You need:

  • uv installed (it provides the uvx command)
  • a DeployKar account. Sign in at https://deploykar.com
  • your app's code in a GitHub repository that DeployKar can access (connect GitHub once in the dashboard)

1. Sign in

First sign in to the DeployKar dashboard in your browser, then run:

uvx deploykar-mcp login

Your browser opens DeployKar's approval page. Choose Deploy (recommended) or Read-only access and click Approve. The token is saved on your computer, readable only by you: ~/.config/deploykar/credentials.json (Windows: %APPDATA%\deploykar\credentials.json).

2. Add DeployKar to your IDE

For Claude Code, create a file named .mcp.json in your project folder (or run claude mcp add --scope user deploykar -- uvx deploykar-mcp@latest to add it for all projects):

{
  "mcpServers": {
    "deploykar": {
      "command": "uvx",
      "args": ["deploykar-mcp@latest"]
    }
  }
}

The same JSON works in other IDEs:

IDE Where
Cursor ~/.cursor/mcp.json
Kiro ~/.kiro/settings/mcp.json (or .kiro/settings/mcp.json in a workspace)
Windsurf ~/.codeium/windsurf/mcp_config.json

VS Code (Copilot agent mode) uses .vscode/mcp.json with a slightly different shape:

{
  "servers": {
    "deploykar": {
      "type": "stdio",
      "command": "uvx",
      "args": ["deploykar-mcp@latest"]
    }
  }
}

Open the folder in your IDE, approve the deploykar server when asked, and start chatting. @latest means you get new versions automatically when your IDE restarts the server.

Without the browser (remote machines, or if you prefer to paste a token): create a token on DeployKar's API tokens page (https://deploykar.com/auth/api/v1/api-tokens/authorize), then run uvx deploykar-mcp login --no-browser and paste it. It's saved in your user settings, so the config above (without a token) can stay in your project folder.

In CI, store the token as a secret environment variable instead. Only put it in an MCP config file that lives outside your projects (e.g. ~/.cursor/mcp.json), never in one you might commit:

{
  "mcpServers": {
    "deploykar": {
      "command": "uvx",
      "args": ["deploykar-mcp@latest"],
      "env": { "DEPLOYKAR_API_TOKEN": "dk_live_..." }
    }
  }
}

What you can ask

  • "Deploy this repo to DeployKar as a frontend"
  • "Deploy my latest changes" (the assistant pushes first, then deploys and waits for the live URL)
  • "Turn on auto-deploy for main"
  • "Why did my last deploy fail? Fix it."
  • "Show me the API's logs from the last few minutes"
  • "Create a Postgres database for my API and connect it"
  • "Connect my frontend to my backend under /api"
  • "What tables does my database have?"
  • "Set STRIPE_KEY to … and restart"
  • "Scale the API to 3 instances"

Tools

Tool What it does
check_setup Signed-in account, token access level, GitHub connection (with an install link if missing)
list_projects Your projects with status and live URL. Pass repo_url to find the project for the current repo
deploy Deploy an existing project, or create one from a GitHub repo URL (frontend or backend)
get_status Deployment status and live URL. wait=true follows the build; failures include the error lines
get_logs Build logs (source="build") or live backend logs (source="runtime"), with errors_only
list_env_vars Environment variable names (never values)
set_env_var Create or update environment variables; apply_now=true restarts/redeploys
scale Set the number of instances (1-10) of a backend service
list_databases Your PostgreSQL and MongoDB databases, their status, size and connected backends
create_database Create a PostgreSQL (default) or MongoDB database. Its credentials are emailed to you
connect_database Give a backend DATABASE_URL (MONGODB_URI for MongoDB), set by DeployKar on its side, and restart it
get_database_schema Tables and columns (PostgreSQL) or collections (MongoDB); data is never read
connect_frontend_to_backend Send a path of the frontend's address (default /api) to a backend: the frontend calls fetch("/api/…"), no CORS needed

How deployments work

DeployKar builds from GitHub, not from your local files, exactly like deploying from the dashboard. Whatever is pushed to the project's branch is what gets deployed, so the assistant commits and pushes your changes (after asking you) before deploying. With auto-deploy enabled, every push to the branch deploys automatically and the assistant just follows the deployment for the commit it pushed.

Security

  • API tokens are stored hashed by DeployKar, shown once, expire after 30, 90 or 365 days, and can be revoked at any time: uvx deploykar-mcp logout, or the API tokens page (https://deploykar.com/auth/api/v1/api-tokens/manage).
  • Tokens can only reach a fixed set of endpoints. They can never delete projects, deployments, databases or connections, remove backends, run SQL, reset database passwords, or manage domains, secret groups or other tokens.
  • Database passwords, connection strings and environment variable values are never returned to a token, so they never reach the assistant: connect_database has DeployKar copy them into the backend's variables on its side. Tokens can create at most 5 databases a day per account.
  • A Deploy token can still deploy code that uses those values (that's what deploying is), so keep it as secret as a password. Use a Read-only token where deploying isn't needed.
  • Read-only tokens can view projects, statuses and logs, but cannot deploy or list environment variables.
  • Secrets that show up in logs (connection URLs, PASSWORD=/API_KEY= values, bearer tokens, common token formats) are masked before the assistant sees them, and the assistant is told to treat log text as data, never as instructions.
  • Tools that change something live (deploy, set_env_var, scale, connect_database, connect_frontend_to_backend) are marked destructive, so IDEs that check ask before running them.
  • The saved token is only sent over https, and only to the address it was saved for: setting DEPLOYKAR_API_URL to another host doesn't send it there.
  • Per-token rate limits apply (120 requests/minute, 30 deploy, scale or create-database actions/hour).
  • To pin a version instead of @latest, use "args": ["deploykar-mcp==0.2.3"].

Commands

uvx deploykar-mcp            run the MCP server (your IDE does this)
uvx deploykar-mcp login      sign in via the browser (--no-browser to paste a token instead)
uvx deploykar-mcp whoami     show the current account and token
uvx deploykar-mcp logout     revoke and delete the saved token

Environment variables (all optional):

Variable Default
DEPLOYKAR_API_TOKEN the token saved by login
DEPLOYKAR_API_URL https://deploykar.com/api/v1
DEPLOYKAR_AUTH_URL https://deploykar.com/auth/api/v1
DEPLOYKAR_DASHBOARD_URL https://deploykar.com

Troubleshooting

  • "Not signed in" / "rejected the API token": run uvx deploykar-mcp login again, then restart the MCP server in your IDE.
  • The approval page asks you to sign in: sign in at https://deploykar.com in the same browser, then reload the approval page.
  • The server shows "Failed" or "Connection closed", or the IDE says uvx was not found: your IDE can't find uvx. Restart the IDE completely after installing uv. If that doesn't help, put the full path to uvx in "command":
    • macOS/Linux: run which uvx and use what it prints, e.g. /Users/you/.local/bin/uvx
    • Windows: run where uvx in PowerShell and use it with forward slashes, e.g. C:/Users/you/.local/bin/uvx.exe. (Git Bash's which uvx prints /c/Users/..., which Windows doesn't understand: write it as C:/Users/....)
  • "This API token is read-only": sign in again and choose Deploy access.
  • Deployment built old code: push your commits; DeployKar builds the latest commit on GitHub.
  • No build logs: DeployKar keeps build logs for about an hour after a build.

Development

uv run --group dev pytest

Releases are published to PyPI from GitHub (see RELEASING.md in the repository).

License

MIT

Metadata

Release files for deploykar-mcp 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for deploykar-mcp 0.2.3
File Size Uploaded Provenance Actions
deploykar_mcp-0.2.3.tar.gz 32.0 kB With provenance Details for deploykar_mcp-0.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for deploykar-mcp 0.2.3
File Interpreter ABI Platform Actions
deploykar_mcp-0.2.3-py3-none-any.whl Python 3 none any Details for deploykar_mcp-0.2.3-py3-none-any.whl

Total release size: 61.3 kB

Release files / deploykar_mcp-0.2.3.tar.gz

Download URL deploykar_mcp-0.2.3.tar.gz
Size 32.0 kB
Tags Source
SHA-256 checksum
How to use checksums
60b37656f968fd2fa967d34d9bad5d00094dcb1ee5c8167f33d2ff65b0744415
BLAKE2b-256 checksum
How to use checksums
b2f5152754de74805b76132a686db6fdee0a33e77456cb5f516a5deb069b373a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Release files / deploykar_mcp-0.2.3-py3-none-any.whl

Download URL deploykar_mcp-0.2.3-py3-none-any.whl
Size 29.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c0850be61f685f3b333f3eccdeca14a32a9677f72f2556aa1eeb478d66b025cc
BLAKE2b-256 checksum
How to use checksums
005f294d252dacf69a41a4892a9c19a6ae379f9a6293f447391e29c3bd00160b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Security for deploykar-mcp 0.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for deploykar_mcp-0.2.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page