MCP

Manage Apt Packages Securely

TypeScript MCP server that exposes apt package manager tools to AI agents for installing, removing, updating, and querying Linux packages via secure sudo

Works with github

90
Spark score
out of 100
Updated 4 months ago
Version 1.0.0
Models

Add to Favorites

Why it matters

Empower AI agents to securely manage Linux apt packages. This asset enables automated installation, removal, updates, and queries of packages via sudo operations.

Outcomes

What it gets done

01

Install, remove, and upgrade apt packages.

02

Query the status of apt packages.

03

Update the apt package list.

04

Securely execute package management tasks using passwordless sudo.

Install

Add it to your toolbox

Run in your project directory:

curl -fsSL https://spark.entire.vc/get/vb-apt-mcp | bash

Capabilities

Tools your agent gets

installAptPackage

Install one or more apt packages on the system

removeAptPackage

Remove one or more apt packages from the system

queryAptPackageStatus

Check if a package is installed, available, or can be upgraded

updateAptPackages

Update the apt package list and upgrade all packages

listUpgradableAptPackages

List all packages available for upgrade

upgradeSpecificAptPackage

Upgrade a specific apt package to the latest version

Overview

APT MCP Server

What it does

Six apt package management tools (install, remove, query status, update packages, list upgradable, upgrade specific) accessible via MCP protocol with passwordless sudo support and automatic retry logic for apt lock situations.

How it connects

Use when you need AI agents to perform apt package operations on Linux systems-checking package status, installing or removing packages, updating package lists, listing available upgrades, or upgrading specific packages through secure sudo commands.

Source README

TypeScript-based MCP server that provides AI agents with tools to manage the apt package manager on Linux systems, enabling package installation, removal, updates, and queries through secure sudo operations.

Installation

From source code

git clone <your-repo-url>
cd popos-control-mcp
npm install
npm run build
npm run dev
# or
npm start

Available Tools

Tool Description
installAptPackage Install one or more apt packages
removeAptPackage Remove one or more apt packages
queryAptPackageStatus Check if a package is installed, available, or can be upgraded
updateAptPackages Update the apt package list and upgrade all packages
listUpgradableAptPackages List all packages available for upgrade
upgradeSpecificAptPackage Upgrade a specific apt package

Features

  • Install, remove, upgrade, and query apt packages through MCP tools
  • Secure passwordless sudo operations
  • Input validation and robust error handling
  • Consistent, human-readable output for all tools
  • Designed for stdio transport (default for integration with local AI agents)

Notes

Requires passwordless sudo configuration for apt operations. Uses stdio transport by default for integration with local AI agents. Includes automatic retry logic for apt lock situations.

Discussion

Questions & comments · 0

Sign In Sign in to leave a comment.