Software Management MCP Server

Software Management MCP Server

Enables AI agents to automate local software management workflows including installation, uninstallation, updates, and environment recommendations. It provides a standardized, non-interactive interface for managing system applications and tracking software versions safely.

Category
Visit Server

README

MCP - Software Management ๐Ÿš€

A local Model Context Protocol (MCP) server that empowers AI coding agents to manage software on a computer in a safe, automated, and non-interactive way.

This project focuses on system automation: it enables AI agents to execute common software management workflows through explicit MCP tools, from installing applications to checking updates and recommending software for specific tasks.

๐ŸŒŸ Overview

Modern AI coding agents excel at understanding requirements and automating tasks, but they often lack standardized, non-interactive access to system software management workflows.

This project bridges that gap by exposing software management capabilities as explicit MCP tools, allowing AI agents to manage system software safely and predictably without relying on terminal prompts or interactive installers.

๐Ÿ—๏ธ Architecture

The project follows a clean layered architecture inspired by best practices from modern MCP servers:

main.py (MCP Tool Endpoints)
    โ†“ Async/Sync Bridge (asyncio.to_thread)
services/ (Business Logic)
    โ†“
utils/ (Low-level Utilities)
    โ†“
models/ (Data Validation)

Directory Structure

software/
โ”œโ”€โ”€ main.py                 # MCP tool endpoints
โ”œโ”€โ”€ settings.py             # Configuration management
โ”œโ”€โ”€ pyproject.toml          # Project metadata
โ”œโ”€โ”€ requirements.txt        # Python dependencies
โ”œโ”€โ”€ README.md               # This file
โ”œโ”€โ”€ models/                 # Data validation & response models
โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ”œโ”€โ”€ result.py           # ToolResult, ErrorInfo
โ”‚   โ”œโ”€โ”€ cmd_result.py       # CmdResult (command execution)
โ”‚   โ””โ”€โ”€ software_models.py  # Input validators (Pydantic)
โ”œโ”€โ”€ services/               # Business logic layer
โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ””โ”€โ”€ software_service.py # SoftwareService class
โ”œโ”€โ”€ utils/                  # Utility functions
โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ”œโ”€โ”€ errors.py           # Error code constants
โ”‚   โ”œโ”€โ”€ paths.py            # Path utilities
โ”‚   โ””โ”€โ”€ validate.py         # Input validation helpers
โ””โ”€โ”€ tests/                  # Test suite (future)

Architecture Principles

  • Separation of Concerns: Each layer has a single responsibility
  • Error Handling: Structured error codes for programmatic handling
  • Non-Interactive: All operations run asynchronously, suitable for AI agents
  • Type Safety: Pydantic models for input/output validation
  • Immutability: Frozen dataclasses for reliable state management

๐Ÿ› ๏ธ Available Tools

install_software

Install a software application with automatic version management and tracking.

Parameters:

  • software_name (string, required): Name of the software to install

Returns:

  • ok (boolean): Success indicator
  • data (object): Contains software name, version, and status

Error Codes:

  • software_not_found: Software not in database
  • already_installed: Software already installed
  • invalid_input: Input validation failed
  • registry_error: Error saving registry

uninstall_software

Remove software from the system with proper cleanup and registry updates.

Parameters:

  • software_name (string, required): Name of the software to uninstall

Returns:

  • ok (boolean): Success indicator
  • data (object): Contains software name and status

Error Codes:

  • software_not_found: Software not in database
  • not_installed: Software is not currently installed
  • invalid_input: Input validation failed
  • registry_error: Error saving registry

list_installed_software

Display a comprehensive list of all installed software with versions.

Parameters:

  • None

Returns:

  • ok (boolean): Success indicator
  • data (object): Contains installed_software array and count

Response Example:

{
  "ok": true,
  "data": {
    "installed_software": [
      {
        "name": "python",
        "version": "3.11.0",
        "description": "Python programming language"
      }
    ],
    "count": 1
  }
}

check_updates

Identify software with available updates.

Parameters:

  • None

Returns:

  • ok (boolean): Success indicator
  • data (object): Contains available_updates array and count

update_software

Update a software application to the latest version.

Parameters:

  • software_name (string, required): Name of the software to update

Returns:

  • ok (boolean): Success indicator
  • data (object): Contains old version, new version, and status

Error Codes:

  • software_not_found: Software not in database
  • not_installed: Software not currently installed
  • up_to_date: Already at latest version
  • invalid_input: Input validation failed
  • registry_error: Error saving registry

get_recommendations

Get software recommendations for a specific task or goal.

Parameters:

  • task (string, required): Task name (e.g., "web development")

Supported Tasks:

  • web development โ†’ Python, Node.js, VS Code, Git
  • data science โ†’ Python, Node.js, Git
  • database โ†’ MySQL, PostgreSQL, Git
  • containerization โ†’ Docker, Git
  • java development โ†’ Java, VS Code, Git
  • full stack โ†’ Python, Node.js, MySQL, Docker, VS Code, Git

Returns:

  • ok (boolean): Success indicator
  • data (object): Contains task name, recommendations array, and count

Error Codes:

  • software_not_found: Task not found
  • invalid_input: Input validation failed

set_auto_update

Configure automatic update settings for software.

Parameters:

  • software_name (string, required): Name of the software
  • enabled (boolean, required): Enable (true) or disable (false) auto-update

Returns:

  • ok (boolean): Success indicator
  • data (object): Contains software name, auto_update status, and status message

Error Codes:

  • software_not_found: Software not in database
  • not_installed: Software not currently installed
  • invalid_input: Input validation failed
  • registry_error: Error saving registry

get_software_info

Retrieve detailed information about a software application.

Parameters:

  • software_name (string, required): Name of the software

Returns:

  • ok (boolean): Success indicator
  • data (object): Contains full software details

Response Example:

{
  "ok": true,
  "data": {
    "name": "python",
    "description": "Python programming language",
    "latest_version": "3.11.0",
    "current_version": "3.11.0",
    "installed": true,
    "auto_update": false
  }
}

Error Codes:

  • software_not_found: Software not in database
  • invalid_input: Input validation failed

๐Ÿ“‹ Supported Software

Software Latest Version Category
python 3.11.0 Language
git 2.43.0 VCS
vscode 1.87.2 Editor
nodejs 21.6.0 Runtime
docker 25.0.1 Container
java 21.0.1 Language
mysql 8.3.0 Database
postgresql 16.1 Database

โš™๏ธ Requirements

  • Python 3.10+
  • MCP-compatible client (Claude Desktop, etc.)
  • pydantic >= 2.0.0
  • python-dotenv >= 1.0.0

โ–ถ๏ธ Running as a Local MCP Server

Installation

  1. Clone the repository:
git clone <repository-url>
cd software
  1. Install dependencies:
pip install -r requirements.txt
  1. Configure Claude Desktop MCP:

Create or edit ~/AppData/Roaming/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "software-management": {
      "command": "python",
      "args": ["/absolute/path/to/software/main.py"]
    }
  }
}
  1. Restart Claude Desktop

Testing Locally

python -m pytest tests/

๐Ÿงพ Error Codes Reference

The MCP server returns structured error codes for programmatic error handling:

Code Meaning Common Cause Recovery
software_not_found Software not in database Invalid software name Check spelling, use list_installed_software
already_installed Software is installed Attempting to install twice Use update_software instead
not_installed Software not installed Attempting to uninstall/update non-installed software Install software first
up_to_date Already latest version No update needed No action required
invalid_input Input validation failed Missing/invalid parameters Verify input format and constraints
registry_error Registry read/write error Permissions or disk issues Check file permissions and disk space
config_missing Configuration missing Required env variables Check settings.py and .env file

๐Ÿงฐ Troubleshooting

1) Installation fails with "Software not found"

Symptom:

{
  "ok": false,
  "error": {
    "code": "software_not_found",
    "message": "Software 'xyz' not found in database"
  }
}

Fix:

  • Check software name spelling (case-insensitive)
  • Use list_installed_software to see available options
  • Verify supported software in the table above

2) Update fails with "Already up to date"

Symptom:

{
  "ok": false,
  "error": {
    "code": "up_to_date",
    "message": "Software 'python' is already up to date (v3.11.0)"
  }
}

Fix:

  • This is expected behavior when software is current
  • No action needed

3) Recommendation returns empty for unknown task

Symptom:

{
  "ok": false,
  "error": {
    "code": "software_not_found",
    "hint": "Available tasks: web development, data science, ..."
  }
}

Fix:

  • Use supported task names from the list
  • Task names are case-insensitive
  • View all tasks using the recommendations documentation

4) Registry operations fail

Symptom:

{
  "ok": false,
  "error": {
    "code": "registry_error",
    "message": "Error saving registry"
  }
}

Fix:

  • Verify file permissions in project directory
  • Check available disk space
  • Ensure software_registry.json is not corrupted
  • Delete registry file to reset (will recreate on next operation)

๐Ÿ“Š Software Registry

The system maintains a persistent software_registry.json file that tracks:

  • Installed software and versions
  • Installation dates
  • Auto-update preferences

Example Registry:

{
  "installed_software": {
    "python": {
      "version": "3.11.0",
      "installed_date": "2026-02-18T10:30:00.123456",
      "auto_update": false
    },
    "git": {
      "version": "2.43.0",
      "installed_date": "2026-02-18T10:35:00.654321",
      "auto_update": true
    }
  }
}

๐Ÿ” Example Workflow

  1. Discover recommendations for a task:

    Call: get_recommendations("web development")
    Result: Receive list of recommended software
    
  2. Install recommended software:

    Call: install_software("python")
    Call: install_software("nodejs")
    
  3. List installed software:

    Call: list_installed_software()
    Result: View all installed programs and versions
    
  4. Check for updates:

    Call: check_updates()
    Result: See available updates
    
  5. Update individual software:

    Call: update_software("python")
    Result: Update to latest version
    
  6. Enable auto-updates:

    Call: set_auto_update("python", true)
    Result: Enable automatic updates
    

๐Ÿšง Future Improvements

The following features would further enhance the server:

  • Batch Operations: Install/update multiple software at once
  • Dependency Resolution: Automatic installation of software dependencies
  • Repository Integration: Support for custom software repositories
  • Scheduled Updates: Cron-like scheduling for automatic updates
  • Health Checks: Verify installation integrity and functionality
  • Rollback: Revert to previous software versions
  • Configuration Profiles: Save and restore system configurations
  • Multi-Language Support: Localized messages and documentation
  • Cloud Sync: Synchronize installations across machines
  • Notifications: Alert on successful/failed operations

๐Ÿ“„ License

This project is provided as-is for software management and automation purposes.


Project: MCP - Software Management
Version: 1.0.0
Last Updated: February 2026
Architecture: Layered MCP Server
Status: Production Ready

#๏ฟฝ ๏ฟฝm๏ฟฝc๏ฟฝp๏ฟฝ ๏ฟฝ ๏ฟฝ

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured