Skip to main content

PlugLayer MCP server — deploy and manage infrastructure via AI

Project description

PlugLayer MCP Server

Deploy and manage your infrastructure through natural language with any MCP-compatible AI assistant.

Installation

Option 1: uvx (recommended — no install needed)

PLUGLAYER_API_KEY=your-pluglayer-api-token uvx pluglayer-mcp

This local command mode uses the MCP stdio transport by default, which is the right mode for Cursor, Claude Code, and other editor-launched command servers. The pluglayer-mcp command now always uses stdio so editor clients cannot accidentally switch it into HTTP mode.

Option 2: pip

pip install pluglayer-mcp
PLUGLAYER_API_KEY=your-pluglayer-api-token pluglayer-mcp

Configuration

Claude Desktop

Add to ~/.config/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "pluglayer": {
      "command": "uvx",
      "type": "stdio",
      "args": ["pluglayer-mcp"],
      "env": {
        "PLUGLAYER_API_KEY": "your-pluglayer-api-token"
      }
    }
  }
}

Cursor

Add to ~/.cursor/mcp.json:

{
  "pluglayer": {
    "command": "uvx",
    "type": "stdio",
    "args": ["pluglayer-mcp"],
    "env": {
      "PLUGLAYER_API_KEY": "your-pluglayer-api-token"
    }
  }
}

Remote HTTP (hosted)

The remote MCP server runs at mcp.pluglayer.com. Pass your token as:

Authorization: Bearer your-pluglayer-api-token

If you intentionally want to run the package itself as an HTTP MCP server, use:

pluglayer-mcp-http

Release Checklist

Before publishing a new pluglayer-mcp build:

  1. Confirm local command mode still uses stdio by default.
  2. Confirm PLUGLAYER_API_URL override works when pointed at a dev API.
  3. Confirm package version will be unique for the publish run.
  4. Publish from the public repo main branch after reviewing the dev -> main PR.

After publishing:

  1. Restart Cursor, Claude Code, or the MCP client you are testing.
  2. If the editor still behaves like an older MCP build, remove and re-add the MCP server entry, then restart the editor.
  3. Re-test with a simple command such as:
    • get_current_user
    • list_projects
    • get_compute_summary

Cursor Notes

  • For command-based MCP setup, use uvx pluglayer-mcp.
  • Do not force HTTP transport for local editor usage.
  • pluglayer-mcp always uses stdio, which is the correct transport for Cursor-launched command servers.
  • Only use pluglayer-mcp-http when you intentionally want to run the package itself as an HTTP MCP server.

Available Tools

The MCP calls the PlugLayer FastAPI backend instead of re-implementing backend business logic. Auth, roles, ownership, compute guards, and k3s orchestration remain in the backend. MCP and editor plugins should authenticate with a PlugLayer API token created in the PlugLayer Settings page, not the browser/session auth token.

Managed registries are configured by PlugLayer admins in the platform UI/API. When deploy_image uses mirroring, the backend picks a registry the current user is allowed to use and keeps Kubernetes pull secrets in sync automatically.

Tool Description
get_current_user Show the Authentik-backed user and roles
get_user_context Load the caller's stored user memory/context
update_user_context Update the caller's stored user memory/context
list_projects List authenticated user's projects
get_my_projects Alias for listing the current user's projects
create_project Create a new project namespace
get_project Get project details, current apps in the project, and attached custom-domain state
archive_project Archive one of the user's projects while keeping history
delete_project Deprecated alias for archive_project
get_compute_summary Show account-level personal + shared compute capacity; estimate first when sizing is still unclear
get_my_available_compute Show the current user's available compute capacity; pair with estimate first for planning
get_my_available_computes Alias for available compute capacity
estimate_compute Estimate required compute, monthly price, and a tailored offer link; preferred before purchase/allocation decisions
list_nodes List accessible compute nodes
list_registries List the registries currently available to the user
deploy_image Mirror a Docker image into PlugLayer's managed Docker Hub namespace, then deploy it after backend compute checks; if a similar app already exists and the namespace is full, use update/replace flow instead of a brand-new app
upload_image_archive_and_deploy Upload a locally built image archive from the user's machine, push it into an allowed registry, and deploy it
deploy_compose Deploy from docker-compose.yml after backend compute checks; if a similar app already exists and the namespace is full, use update/replace flow instead of a brand-new app
list_deployments List running apps/deployments
get_apps_by_project List apps inside a specific project; use this before deploy when you need to clarify update vs replace vs separate new app, especially when a full namespace should block duplicate new-app deploys
get_deployment_status Check app status and URL
get_logs Get app logs
get_app_logs Alias for getting app logs
exec_app_terminal Execute a command in the caller's own deployed app container
redeploy Redeploy an app after confirming the exact app name
restart_app Alias for restarting an app by redeploying it
rollback Roll back to previous version
archive_deployment Archive one of the user's apps while keeping its record in PlugLayer history
delete_deployment Deprecated alias for archive_deployment
list_project_domains List custom domains for a project
get_domains_by_project Alias for project-domain lookup; use this before asking which domain the user wants so existing project domains can be offered as options
detect_custom_domain_provider Detect the likely DNS/domain provider so the user can confirm it before DNS instructions are shown
add_custom_domain Add a single or wildcard custom domain and return DNS records in a provider-friendly table
verify_custom_domain Verify TXT/CNAME DNS and activate if attached
attach_custom_domain Attach a verified custom domain to an app
detach_custom_domain Detach a domain while keeping verification
get_task_status Poll async operation progress
generate_github_actions Get CI/CD pipeline YAML

Example Conversations

Deploy your first app:

"I have a FastAPI app at ghcr.io/myorg/api:latest that runs on port 8000. Deploy it into my production project in my cloud."

Convert docker-compose:

"Here's my docker-compose.yml: [paste]. Deploy this to PlugLayer."

CI/CD setup:

"Generate a GitHub Actions workflow for my api deployment so it auto-deploys on push to main."

Add a custom domain:

"Add api.example.com to my production project, detect the provider, show me the DNS records in a table, then verify it and attach it to my API app."

Getting Your API Key

  1. Go to PlugLayer Settings
  2. Create a PlugLayer API token
  3. Copy it once and store it safely
  4. Use it as PLUGLAYER_API_KEY for MCP, editor plugins, and CI/CD webhook deploys

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pluglayer_mcp-0.26.51110.tar.gz (85.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pluglayer_mcp-0.26.51110-py3-none-any.whl (26.0 kB view details)

Uploaded Python 3

File details

Details for the file pluglayer_mcp-0.26.51110.tar.gz.

File metadata

  • Download URL: pluglayer_mcp-0.26.51110.tar.gz
  • Upload date:
  • Size: 85.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pluglayer_mcp-0.26.51110.tar.gz
Algorithm Hash digest
SHA256 823f3a6b5dd73fa610f98b4344bd7a7b55ba5d6b5a2a4e3273abda4a8b7b9f31
MD5 1e4e8c5cbed4cb29e045ffe187f0ec29
BLAKE2b-256 a99df87df45f7d1db598f2aa42d3c45fa8f4dfe2464cea4f4f73915322836fa3

See more details on using hashes here.

File details

Details for the file pluglayer_mcp-0.26.51110-py3-none-any.whl.

File metadata

  • Download URL: pluglayer_mcp-0.26.51110-py3-none-any.whl
  • Upload date:
  • Size: 26.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pluglayer_mcp-0.26.51110-py3-none-any.whl
Algorithm Hash digest
SHA256 52ce7cde4bf64bd539f7f6f7a96fd36bd7f22186ef4972a5cb148741d2e92cfe
MD5 ae9ceb7373989744377862e18a515184
BLAKE2b-256 6750a442a668270d4004b576f7e357fcd1dffe45c99d9bb22ab3f5a36ee3c2db

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page