Portainer + Memtro

Ask Portainer which stacks are running, which environments are down, and who deployed what.

Connect Portainer with your server's host and an access token, and Memtro reads the environments it manages and whether they are up, stacks with status and who deployed them, containers, groups, tags, teams and users on your own server. Stack environment variables are never shown. When you ask, and once an administrator has granted them by name, it can deploy, redeploy, start, stop and delete stacks, start, stop, restart and remove containers, scale or roll back Kubernetes deployments, and add people to teams. These change running services on your servers, and deleting a stack or container is permanent.

In Memtro

What you can do with Portainer in Memtro

Ask in plain English from chat, your editor, a scheduled job or your own agent. The model picks the right Portainer tool, reads what it needs, and answers with the source cited.

What it does

  1. 01Environments with kind, whether up or down, group, tags and last check-in
  2. 02Stacks by environment, with status, git source, and when created or updated and by whom
  3. 03Containers on a Docker environment with image, state and the stack each belongs to
  4. 04Environment groups, tags, teams and users
  5. 05When asked and granted, deploys, updates, redeploys, starts, stops and deletes stacks, and starts, stops, restarts or permanently removes containers, which changes running services on your servers
  6. 06When asked and granted, scales, rolls back or restarts Kubernetes workloads, force-updates Swarm services, creates tags, teams, groups and namespaces, and adds a user to a team, giving them its access

Acts when asked

When you ask it to

These tools change something in Portainer. The model is told to use them only when you ask for exactly that, and an administrator grants each one by name to the teams that may use it; a personal connection acts only after its owner allows it.

  1. 01Create a tag in Portainer
  2. 02Delete a tag in Portainer (removed from every environment and group that carries it)
  3. 03Start a stopped stack in Portainer (its containers start on that environment)
  4. 04Stop a running stack in Portainer (its services go down)
  5. 05Delete a stack in Portainer (its containers are removed and the stack definition is gone)
  6. 06Deploy a new stack in Portainer from a compose file or git repository (its containers start)
  7. 07Replace a Portainer stack's compose file and redeploy it (services restart; the old file is overwritten)
  8. 08Redeploy a git-based Portainer stack from its repository (services restart)
  9. 09Start a stopped Docker container in Portainer
  10. 10Stop a running Docker container in Portainer
  11. 11Restart a Docker container in Portainer
  12. 12Remove a Docker container in Portainer
  13. 13Force-update a Docker Swarm service in Portainer (its tasks are recreated)
  14. 14Scale a Kubernetes deployment in Portainer
  15. 15Roll a Kubernetes deployment back to an earlier revision in Portainer
  16. 16Restart a Kubernetes pod's containers in Portainer
  17. 17Delete a Kubernetes pod in Portainer
  18. 18Create a Kubernetes namespace in Portainer
  19. 19Refresh Portainer's snapshot of an environment
  20. 20Create a team in Portainer
  21. 21Add a user to a Portainer team (gives them the team's environment access)
  22. 22Create an environment group in Portainer
In practice

Ask it like you would a colleague

Once Portainer is connected, these are the kinds of things people ask. Plain questions, no syntax. If the answer lives partly in another system you have connected, Memtro looks there too.

Portainer + Memtro
  • Which stacks are not active right now?

  • Which environments are down?

  • Who last updated the billing stack, and when?

  • Which containers on the production host have exited?

  • Restart the reporting container on staging

01

Something is down

The platform lead at Northwind asks why the reporting site is offline. Memtro reads Portainer: the staging environment is up, but the reporting stack is inactive and its three containers exited at 02:15, last updated by Dan Fletcher.

02

Bringing it back

Maya Okafor asks Memtro to start the reporting stack. Memtro confirms the stack and environment, then starts it from its saved definition, so its containers are created and started again on the staging server.

Teams

Where it fits

The teams that lean on Portainer most, a question each of them asks, and what they connect beside it.

Better together

Works with

A record in Portainer is rarely the whole story. Connect the systems that hold the rest and Memtro checks them together, then remembers what it learned so the next question starts further along.

Also in Engineering and operations

Using something else for the same job, or both? Each connector has its own tools; connect as many as you like.

Setup

How to connect

Connect withHost and access token
  1. 1

    Needs Portainer 2.9 or later, Community Edition is enough. Give Portainer a certificate from a public authority (Settings → SSL certificate) or put it behind a reverse proxy that has one

  2. 2

    Create a dedicated Portainer user for Memtro with access only to the environments it should see, then your username → My account → Access tokens → Add access token, and copy it: it is shown once. Creating tags, teams and groups needs that user to be an administrator

  3. 3

    In Connections → Portainer in Memtro paste the Access token and type your server's name in Host only, with no https://, path or port, and the HTTPS port: 9443 unless behind a proxy on 443

  4. 4

    Ask which stacks are not active

Also works from

Chat in the dashboard, the OpenAI-compatible API, scheduled jobs, and any MCP client: Claude Code, OpenCode, Cursor, Claude Desktop. The Portainer tools are the same everywhere.

FAQ

Questions

Can Memtro change anything in Portainer?+

Only when you ask, and only what it has been granted: create a tag in Portainer; delete a tag in Portainer (removed from every environment and group that carries it); start a stopped stack in Portainer (its containers start on that environment); stop a running stack in Portainer (its services go down); delete a stack in Portainer (its containers are removed and the stack definition is gone); deploy a new stack in Portainer from a compose file or git repository (its containers start); replace a Portainer stack's compose file and redeploy it (services restart; the old file is overwritten); redeploy a git-based Portainer stack from its repository (services restart); start a stopped Docker container in Portainer; stop a running Docker container in Portainer; restart a Docker container in Portainer; remove a Docker container in Portainer; force-update a Docker Swarm service in Portainer (its tasks are recreated); scale a Kubernetes deployment in Portainer; roll a Kubernetes deployment back to an earlier revision in Portainer; restart a Kubernetes pod's containers in Portainer; delete a Kubernetes pod in Portainer; create a Kubernetes namespace in Portainer; refresh Portainer's snapshot of an environment; create a team in Portainer; add a user to a Portainer team (gives them the team's environment access); create an environment group in Portainer. Every other tool reads, searches or lists. The Connections page labels the tools that act, an administrator grants each one by name to the teams that may use it, and a personal connection acts only after its owner allows it.

Who can use a Portainer connection?+

A personal connection serves only your own requests. A shared connection serves the organisation: everyone, or only the teams an admin chooses. Admins can always add shared connections; other members need the permission.

Does Memtro store my Portainer data?+

Credentials are encrypted at rest. Tool results are cached briefly so agent loops do not repeat identical calls, and the facts the model extracts are saved to your organisation's memory with provenance (system, record and link) so they can be checked and superseded.

How do I connect Portainer?+

Host and access token. Needs Portainer 2.9 or later, Community Edition is enough. Give Portainer a certificate from a public authority (Settings → SSL certificate) or put it behind a reverse proxy that has one.

Connect Portainer in a few minutes

Seven-day free trial, then one monthly price per organisation. Connectors, jobs and memory are never metered.

Where agents remember your company

Sign in, add a provider key, create an API key and point your tools at Memtro. It takes about five minutes.

7-day free trial · card on file, nothing charged until it ends · cancel any time