# Zektor [Health: Active]

**Category:** 🗄️ Databases  
**Repository:** https://github.com/m-akcan/zektor-cli  
**GitHub Stars:** 1  
**npm Downloads (last month):** 730  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/zektor

## Description
Managed Postgres and Valkey hosted in Germany. Agents can create a trial database with no signup.

## Tools
Capabilities this server exposes over MCP:

- **whoami** — Reports which Zektor account the current token belongs to, the API it is talking to, and whether the token came from the environment or the config file.
- **list_instances** — Every database and cache on the account, with id, name, status, engine and plan.
- **get_instance** — Full detail for a single instance, including storage and autoscaling where it applies. Does not include credentials — use get_connection for those.
- **get_action** — How the background work started by create_instance, scale_instance, set_parameters or resize_storage is going, by the actionId they return. status is "Running", "Success" or "Failure"; on Failure, errorMessage says why. While it is Running, call this again every few seconds.
- **get_parameters** — The Postgres settings that can be changed on this instance (timeouts, memory, planner, autovacuum, slow-statement logging), each with its current value, Postgres' default, and the range its plan allows. Durations are in ms and memory in kB; booleans are 1 or 0. `off` is a value outside the range that turns the setting off. `refused` says why they can't be changed right now.
- **set_parameters** — Changes settings from get_parameters on a running database. Each value is a number in the setting's unit (ms, kB, or as is), "on" / "off" for booleans, or null to go back to Postgres' default. Settings left out keep their value.

Applied by reload, without a restart, and read back: if Postgres doesn't take a value, the old settings stay. A timeout applies to every session of the database, so a short statement_timeout can cancel the application's own long queries. Returns an actionId; poll get_action until "Success" or "Failure".
- **list_extensions** — The extensions one database of an instance can use, and which are installed. tier "trusted" ones are installed as the database owner into public; "on_request" ones (vector among them) into a schema named extensions that is on the search path; "locked" ones are always there. Also lists the instance's databases.
- **install_extension** — Installs an extension from list_extensions into one database. Takes a second or two; nothing restarts. Anything not on that list is refused.
- **remove_extension** — Drops an extension from one database. Never cascades: while a table, index or function uses it, Postgres refuses and the reason comes back. Code that calls its functions stops working.
- **list_plans** — The plans an instance can be created on or scaled to, with price, engine, memory, storage and the engine versions each one can run. Call this before create_instance or scale_instance rather than guessing a plan name.
- **list_regions** — Regions an instance can be created in. `available` is false where there is no capacity right now; creating there will be refused. `plans` are the plans a new instance can be created on there right now (null: every plan). `haPlans` are the plans a database can be created on with high availability (copies: 3) there right now; empty means none.
- **get_connection** — RETURNS A LIVE CREDENTIAL for caches: the connection string includes the password. Treat the result as a secret and do not repeat it anywhere it would be stored or logged.

For PostgreSQL there is no password to return — one is shown only when a role is created, and the server does not keep it — so the result carries host, port and database. Use create_ephemeral_role to obtain a usable credential.
- **create_instance** — Provisions a database or cache. THIS COSTS MONEY — the plan is billed monthly from creation until the instance is deleted.

High availability: `copies` 3 (PostgreSQL only, on a plan list_regions shows in haPlans for the region) runs each copy on its own server with automatic failover; EVERY COPY IS BILLED AS A DATABASE, and it cannot be switched off later. The first one in a region can take about 15 minutes to create.

Storage is not a parameter: it starts at the plan's included storage; grow it later with resize_storage. Creating runs in the background, so this returns an instance id and an actionId immediately. Poll get_action with the actionId until it reports "Success" (the instance is then "active") or "Failure".
- **scale_instance** — Changes the plan an instance runs on, which changes what it costs. Scaling DOWN reduces memory; storage stays (it never shrinks) and GB above the smaller plan are billed at €0.15/GB/month. If the instance is using more memory than the smaller plan provides, that becomes a problem during the move. Check current usage with get_instance first.
- **list_branches** — The instance's cluster: the default database and every branch forked from it. `isDefault` marks the one promotion would replace.
- **create_branch** — Creates a copy-on-write clone of a PostgreSQL instance: it has the source's data from the moment of branching, and the two diverge independently afterwards.

THIS COSTS MONEY — a branch is billed hourly like any instance: on its plan, and on what it writes itself above that plan's included storage at €0.15/GB/month, while it is a branch. Once promoted, it is billed on its full size. Pick a smaller plan than the source when the branch is for a test.

Takes about a minute: the clone itself is instant, but a second PostgreSQL has to start. Poll get_instance until status is "active". Branching is refused on instances not using branch-capable storage.
- **set_branch_expiry** — Branches delete themselves after a while, so a forgotten one does not keep costing money. This extends that deadline, or removes it entirely.

Removing it is a real decision, not a convenience: a kept branch holds its source's old blocks, which count against the source's storage. When that fills, growing it (by hand or automatically) is what costs, which is not obvious from looking at the branch.
- **delete_branch** — PERMANENTLY DESTROYS a branch and anything written to it since it was created. The source database is untouched.

Only works on branches — it refuses the cluster's default database, which has to be removed with delete_instance instead.
- **promote_branch** — Promotes a branch to be its cluster's default database; the previous default becomes a branch. Nothing is deleted and no data moves — this changes which instance the cluster treats as the original.

Connection details do not follow the promotion: each instance keeps its own host, port and credentials.
- **create_ephemeral_role** — RETURNS A LIVE CREDENTIAL. Creates a PostgreSQL role that stops working by itself after ttl_seconds and is then removed.

This is the way to connect to a PostgreSQL instance: passwords are never stored, so get_connection cannot return one. The expiry is enforced by PostgreSQL itself, so the credential dies on time whether or not anything else is running.

The password is returned once and exists nowhere else. Treat it as a secret and do not repeat it anywhere it would be stored or logged.
- **get_storage** — Size, usage, included storage, what is billed above the plan (net €/month), and automatic growth for a PostgreSQL instance.
- **resize_storage** — Grows the storage of a PostgreSQL instance to size_gb (larger than now, at most 1000 GB). Storage only grows: this can't be undone, not even by moving to a smaller plan. Each GB above the plan's included storage costs €0.15/month net, prorated by the hour; get_storage shows the current figures.
- **set_autoscale** — Turns automatic storage growth on or off for a PostgreSQL instance and sets its limit. When on, at 80% full storage grows to the larger of +5 GB or 70% full, never above limit_gb, which is required to turn it on; each grow is permanent and billed like resize_storage. A limit can be raised or lowered but not cleared. Only the fields you pass are sent, so changing one leaves the other alone.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "zektor": {
    "command": "npx",
    "args": ["-y","zektor","mcp"],
    "env": {
      "ZEKTOR_TOKEN": ""
    }
  }
}
```

**Requires environment variables:** `ZEKTOR_TOKEN` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Zektor does

Zektor exposes the Zektor.io managed database and cache API through the Model Context Protocol. It covers PostgreSQL databases and Valkey caches hosted in Germany. Agents can inspect account and instance data, discover available plans and regions, create instances, change plans, and query the status of asynchronous operations.

An unauthenticated session can use `create_trial_database` to obtain a free database that lasts for one hour and includes a claim link. Authenticated sessions can manage existing resources and create billable database or cache instances. The deletion capability is disabled by default.

## How it works

The server is started with the Zektor CLI using `zektor mcp` and communicates with MCP clients over standard input and output. It reuses the token saved by the CLI login flow, so no separate MCP credential setup is needed. In automation, `ZEKTOR_TOKEN` can supply the token instead of the local configuration file.

Instance creation, scaling, and storage resizing run as background actions. The mutating tools return an action identifier, which can be passed to `get_action` to inspect progress and the final result. Read-only tools include account, instance, plan, region, connection, and storage queries.

## Setup and configuration

Install the CLI globally with npm:

```bash
npm install -g zektor
```

Node.js 18 or newer is required. Authenticate with `zektor login`, which stores the credential in `~/.config/zektor/config.json`, or set `ZEKTOR_TOKEN` for scripts and CI environments. The MCP client configuration can launch the server without a global installation:

```json
{
  "mcpServers": {
    "zektor": {
      "command": "npx",
      "args": ["-y", "zektor", "mcp"]
    }
  }
}
```

Claude Code can register the same command with `claude mcp add zektor -- npx -y zektor mcp`.

## Tools and capabilities

- Create a one-hour trial PostgreSQL database without a token and return its claim link.
- List instances, plans, and regions, or inspect a specific instance.
- Create PostgreSQL or Valkey instances and track their background actions.
- Scale instances between plans, with billing and memory implications on downgrades.
- Read PostgreSQL storage size, usage, and billable capacity above the plan.
- Grow PostgreSQL storage or enable and disable automatic growth up to a limit.
- Retrieve connection details, including a live password for caches.
- Delete instances when the deletion tool is enabled.

## Limitations and notes

Creating instances, scaling them, and expanding storage can incur charges. PostgreSQL storage can grow but cannot be reduced; capacity above the plan is billed, including after a downgrade. Automatic growth is opt-in and each increase is permanent.

The `get_connection` tool returns a live cache password, so agents and client logs should be handled accordingly. The trial database is temporary and intended to be claimed within its claim period if its data needs to be retained. Cache and PostgreSQL resources have different storage behavior: PostgreSQL supports separate storage operations, while cache capacity is controlled through the instance plan.

_Full upstream README: https://allmcps.com/mcp/zektor/readme_

