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 http://187.127.179.204:7100
  • 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 login command (CI, remote machines, or if you prefer to paste a token): create a token on DeployKar's API tokens page (https://dev-32786578325.deploykar.com/auth/api/v1/api-tokens/authorize) and add it to the config. Don't commit a file that contains a token.

{
  "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://dev-32786578325.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 and connection strings are never returned to the assistant: connect_database has DeployKar copy them into the backend's variables on its side. A token can create at most 5 databases a day.
  • Read-only tokens can view projects, statuses and logs, but cannot deploy or read environment variables.
  • Environment variable values are never returned to the assistant.
  • Per-token rate limits apply (120 requests/minute, 30 deploy, scale or create-database actions/hour).

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://dev-32786578325.deploykar.com/api/v1
DEPLOYKAR_AUTH_URL https://dev-32786578325.deploykar.com/auth/api/v1
DEPLOYKAR_DASHBOARD_URL http://187.127.179.204:7100

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 http://187.127.179.204:7100 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.1

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.1
File Size Uploaded Provenance Actions
deploykar_mcp-0.2.1.tar.gz 25.7 kB With provenance Details for deploykar_mcp-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 51.1 kB

Release files / deploykar_mcp-0.2.1.tar.gz

Download URL deploykar_mcp-0.2.1.tar.gz
Size 25.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ea64d38c1f2921c6f9ed7b24320be31f7991449fff21e4af14884619dee86309
BLAKE2b-256 checksum
How to use checksums
e5b7391e29c7b812cffb209447df94c3f2d35610db3e6b8f912d80010d2402ee
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 Oct 26, 2026.

Transparency log

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

Download URL deploykar_mcp-0.2.1-py3-none-any.whl
Size 25.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5c84ab73b4f8c2c8ea489358109c9f56ded7b776b5f6165be26e74a5c7fc383c
BLAKE2b-256 checksum
How to use checksums
26fa6ad0f78d18d8c546476ac44dbeab502d2d725284fbbbedf6038887bef597
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 Oct 26, 2026.

Transparency log

Security for deploykar-mcp 0.2.1

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.1.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 Oct 26, 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