Use koigrid from ChatGPT, Claude or any MCP client
koigrid has a remote MCP server. Connect it once and your assistant can deploy apps, create databases, read logs and check your spend — acting as you, with only the permissions you approve.
Server URL
Add this URL as a custom connector (remote MCP server) in your assistant:
https://koigrid.com/mcp
Connect
The first time, your assistant opens a koigrid window: sign in (or create an account) and approve what it may do and in which organization. No API key to copy. Your assistant gets a short-lived token, refreshed automatically.
Try it
Once connected, ask your assistant in plain words. For example:
“What do I have running on koigrid?”
list_resources — your apps with status and URL, your databases and caches.
“Deploy https://github.com/me/my-app as a new app called my-app and tell me when it is live.”
deploy_app, then get_app_status until the deploy is live or failed.
“My last deploy failed. Why?”
get_app_status for the error, then get_app_logs with the build log.
“Create a Postgres database called my-db and connect it to my-app.”
create_database, get_database_connection, then set_env_vars with a reference — the password never goes through the chat.
“How much have I spent this month? Cap it at $20 and warn me at 80%.”
get_spend, then set_spend_limit (your assistant asks you to confirm).
Or use an API key
Clients that support a fixed header (Claude Code, Cursor and others) can send a koigrid API token instead of signing in:
claude mcp add --transport http koigrid https://koigrid.com/mcp --header "Authorization: Bearer koi_YOUR_KEY"
What it can do
A small set of task-shaped tools, each requiring its own permission. Read-only tools are marked so your assistant can run them without asking.
list_resourcesread-onlyapps:read · databases:read · redis:readLists the apps (with status and public URL), databases and caches in the user's koigrid organization. Databases and caches carry pendingMaintenance when something is scheduled (for example host_reboot: the reboot of the machine of a single-node database or cache, with its date and deferrableUntil). Start here to find the id of an app or database before acting on it. Each kind is listed only if the token can read it (apps:read, databases:read, redis:read): a token for databases alone sees its databases.
deploy_appapps:write · apps:deployDeploys an app to koigrid. Pass appId to redeploy an existing app; or pass name plus a public Git repo URL (built automatically, Dockerfile or auto-detected) or a container image to create and deploy a new one. Pass env to deploy with its environment variables in the same deploy. Returns at once with the deployment id: the build runs in the background, so poll get_app_status until it is live or failed.
get_app_statusread-onlyapps:readShows an app's status, public URL, its latest deployments with their state and error, and how many times the running process died and was restarted in the last 24 h with the cause (restarts). Use it to follow a deploy, and when something fails read the error here first.
get_app_logsread-onlyapps:readReturns an app's logs: type "build" for the last deployment's build log (why a deploy failed), or "runtime" for what the running app prints (why it errors in production), from ALL its replicas and across restarts and deploys (since/until/replica/runner/q to narrow it down), or "requests" for the requests the edge served per minute split by path, section, user-agent, IP, visitor or status (what hit the app and from where, 30 days).
set_env_varsasks firstapps:writeSets environment variables on an app and redeploys it. Values are stored encrypted. To wire a koigrid database without pasting its password, use a reference such as ${{db.<database-name>.DATABASE_URL}}.
rollback_appasks firstapps:deployPuts a previous deployment of an app live again, without rebuilding. Pass the deploymentId from get_app_status; without it, rolls back to the previous live deployment.
create_databasedatabases:writeCreates a managed Postgres database with the default size (the free one: 512 MB RAM, 1 GB disk, no replicas; resize it later through the API). Provisioning takes a few minutes: call get_database_connection afterwards to get the connection string once it is ready.
get_database_connectionread-onlydatabases:readReturns the connection details of a database (host, port, user, database) and the reference to wire it into an app with set_env_vars. The password is never returned: the reference is resolved by koigrid at deploy time. Also reports the disaster-recovery copy (a replica in another provider that is never promoted automatically): null if the database has none. With includeExtensions:true it also reads, live, which Postgres extensions each database really has installed (name and version, also those created with CREATE EXTENSION).
set_network_accessasks firstdatabases:write · redis:writeSets which IPs can connect to a database or a cache, like a security group: allowedIps null = public (any IP; password and TLS still required), a list of IPv4/CIDR = only those, [] = only from koigrid. The koigrid fleet (apps hosted here) is always allowed. Applied immediately; the result says if it was applied everywhere and warns when the IP of this request is not in the list. Existing connections are not cut.
set_database_parametersasks firstdatabases:read · databases:writeReads and sets database parameters, like an RDS parameter group: idleInTransactionTimeoutMs (cuts a session left idle inside an open transaction; without it one frozen client can fill the connection pool), statementTimeoutMs and lockTimeoutMs, in milliseconds; 0 = no limit; null = remove; and planCacheMode. Call with only databaseId to read the current values and the pooler. Use this instead of connection options: through the pooler, timeouts sent when connecting do not reach Postgres. Applied at once, also to connections already in the pool. roleOverrides lists a role that sets its own value in this database (it wins). poolSize sets how many server connections the pooler opens (null = automatic; the ceiling is in pooler.limits.maxPoolSize) and poolRoles gives an app role its own share, so one app cannot leave another without connections; queryWaitTimeoutS is how long a client waits for a pooler connection before an error (null = the default 120 s); applied live, without dropping connections.
manage_database_maintenanceasks firstdatabases:writeApplies now or defers a maintenance that is waiting for the database's maintenance window, like "Apply now" in RDS. What is pending is in pendingMaintenance of list_resources. op "apply" runs it now: resize, replication_verify_ca, minor_upgrade, host_move (moves the database to another machine before its machine reboots, same address) or dcs_tls (it restarts or moves members, with a short cut on a single-node database), or ca_rotation (applied live, no restart), or pooler_image (recreates the connection pooler on an updated image: a few seconds without connections). op "defer" only for host_reboot (the machine is shared and cannot be rebooted early) and host_move: until is an ISO 8601 date, at most 14 days after the notice; without until it goes to that limit. Errors: not_pending (nothing to do), defer_only (host_reboot cannot be applied), cannot_defer_urgent (it fixes an exploited kernel flaw), beyond_deadline and before_scheduled (the date does not fit).
get_migration_statusread-onlydatabases:readFor a database receiving a live migration (logical replication from an external Postgres): each subscription with its initial-copy progress (tables done of total), replication lag and a cutover verdict saying whether the app can be switched to koigrid yet, plus the remaining cutover steps. Never call the cutover done from lag alone: a subscription still copying tables can show zero lag. After the cutover (cutoverDone) it says which disabled subscriptions still hold a slot on the source that keeps growing its disk, and how to drop them.
get_database_queriesread-onlydatabases:readShows which SQL statements took the most execution time on a database in a time window (default: the last hour; hours up to 168, or since/until), with calls, total and mean time and their share of the database total, from pg_stat_statements sampled every ~2 min. Use it when a database or an app is slow, before guessing at indexes. Statement texts are normalized ($1, $2): no parameter values.
get_spendread-onlyusage:read · spend:read · billing:readShows what the organization has reserved and spent this month, its spend limit if any, whether it has a card on file, its prepaid balance (wallet: balance, koigrid credit, automatic top-up, grace period) and the public price list (koigrid charges for reserved RAM and disk by the hour, shared vCPU and bandwidth included). To price something before creating it, POST /api/v1/pricing/quote needs no credentials.
set_spend_limitasks firstspend:writeSets a monthly spend limit for the organization, with optional alert thresholds and a hard stop that blocks creating new paid resources when it is reached.
create_vmsandboxes:writeCreates a full Linux VM for an agent (sizes small 2 vCPU/4 GB, medium 4/8, large 8/16, xlarge 16/32), running and reachable by run_in_vm, and by SSH with the sshPublicKeys you give it (the result has the ssh command and the ~/.ssh/config block for VS Code / Cursor). It pauses on its own after autoPauseMin idle minutes (default 15, 0 = never) keeping its memory, and a paused VM pays no compute. Billed per second while running: medium $0.02/h (launch price; GET /pricing → agentVms for every size). Needs a card on file (add_payment_method). With fromSnapshot it is born from a named snapshot (a template) or a share code from another organization (koisnap_…): its disk, memory and size.
run_in_vmasks firstsandboxes:writeRuns a shell command in a VM (by id or name) and returns exit code, stdout and stderr (timeoutSec up to 600). If the VM is paused it is resumed first, with its memory and processes intact (resumed: true in the result); if it is still booting, the call waits up to 60 s. With detached: true it runs in the background with no time limit and returns a commandId at once (read it with manage_vm command_status).
manage_vmasks firstsandboxes:read · sandboxes:writeLifecycle of a VM (by id or name). action: pause (keeps memory, stops compute billing), resume, stop (keeps only the disk), start (cold boot from disk), fork (new VM that is an exact copy, needs name), snapshot (named, with memory, needs name; it outlives the VM and create_vm fromSnapshot boots new VMs from it), delete (removes the VM and its disk: cannot be undone; its named snapshots stay), or status. Omit vm to list the VMs of the project; snapshots lists the named snapshots, snapshot_files / snapshot_read (snapshot, path) look inside one without booting it, delete_snapshot (snapshot) deletes one, and share_snapshot / snapshot_shares / revoke_share give, list and revoke a code another organization uses as create_vm fromSnapshot. Background commands: command_status (with commandId: its state and output from stdoutOffset/stderrOffset, up to 256 KB; without it: the list) and command_stop (SIGTERM to its process group, SIGKILL after 5 s). set_ssh_keys (sshPublicKeys) replaces the keys allowed to SSH in; the VM's ssh field has the command and the ~/.ssh/config block for VS Code / Cursor, and connecting wakes a paused VM. history lists the commands run in the VM (90 days, never their output) and processes what runs now. Ports over HTTPS: ports lists them, expose_port (port, public?) exposes one (private by default), set_port_public, unexpose_port, and port_url / port_urls / revoke_port_url give, list and revoke a signed URL https://<port>-<token>.<domain> for one port.
add_payment_methodbilling:writeReturns a link for the user to pay koigrid. With amountUsd (10-10000) it is a top-up of the prepaid balance: the user pays that amount on the provider page, gets an invoice, and the card is saved for automatic top-ups. Without amountUsd it only saves a card and charges nothing. The organization pays for the RAM and disk it reserves by the hour, shared vCPU and bandwidth included (prices: GET /api/v1/pricing). Use it when the free tier is not enough, the account is on the free-tier waitlist or the balance is low. Nothing is charged by this call: give the link to the user. billingMode chooses how reserved resources are paid: prepaid (default, each hour from the balance) or monthly (invoice to the saved card at the end of the month); pass it alone to only change the mode. Owner or admin only.
contact_supportsupport:writeSends a message to the koigrid team: opens a support conversation, or replies in one when you pass its conversationId. Use it when something in koigrid fails and the error does not say how to fix it, when you are blocked, or when the user asks to talk to koigrid. Say what you tried and paste the exact error; pass appId or deploymentId if it is about one. A person answers; read the reply later with get_support_conversations.
get_support_conversationsread-onlysupport:readLists the user's support conversations with koigrid and how many have an unread reply from the team; pass a conversationId to read all its messages. Use it to see whether koigrid has answered.
mark_support_readsupport:writeMarks a support conversation as read, after you have read the koigrid team's reply with get_support_conversations and told the user. It stops the unread-reply notice that koigrid adds to other tool results.
Code mode: the whole API with two tools
Connect to https://koigrid.com/mcp?mode=code instead and your assistant gets two tools for the entire API (every operation, about 700 tokens): search_api runs a JavaScript function over the API spec, and execute_api runs one that calls koigrid.request({ method, path, query, body }), chaining and paginating in a single run. The code runs in a sandbox with no network, files or environment; the calls carry this connection's permissions, project and spend cap, and the credential never enters the sandbox. It uses the same OAuth resource as https://koigrid.com/mcp; when you connect, it asks for access to the whole API instead of just the tools above.
claude mcp add --transport http koigrid-code "https://koigrid.com/mcp?mode=code" --header "Authorization: Bearer koi_YOUR_KEY"
Security
Each connection appears in Settings → API tokens as a connected app. Revoking it disconnects it immediately, including its refresh token. Every action is in your audit log, and a connection limited to a project cannot touch resources of another project. Secrets never go through the chat: the assistant gets your database's host and user but not its password, and wires it into an app with a reference that koigrid resolves when it deploys.
Support
Questions or problems with the connector: [email protected] · Privacy policy · Terms