# anaisbetts/mcp-installer architecture

> Architecture diagram of the GitHub repository anaisbetts/mcp-installer, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-04-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/anaisbetts/mcp-installer
- Repository: https://github.com/anaisbetts/mcp-installer

## Overview

##### Project Type and Purpose
- The README explains that this is a “server that installs other MCP servers”. It does not act as a full-blown web server with separate frontend/backends; rather, it handles command processing (from Claude) and then delegates installation tasks.
- It interacts with external package management tools such as npx (for Node.js) and uv (for Python), which indicates that it plays the role of a command dispatcher or orchestrator for further installations.

##### File Structure
- The top-level files include configuration files (.gitignore, .prettierrc, eslint.config.mjs, tsconfig.json), the package files (package.json and package-lock.json), and licensing/Github policy documents (CODE_OF_CONDUCT.md, COPYING).
- The main application logic lies in the “src” directory with at least one file: src/index.mts. This is likely the entry point, setting up the server and handling the core installation logic.
- There is no explicit separation into folders like “frontend” or “backend”, which suggests a consolidated codebase primarily focused on orchestrating installations instead of serving a complex web interface.

##### README for More Insights
- The README explains how to integrate this installer with the Claude configuration, along with example prompts. This shows that the system design needs to accommodate processing of natural language commands and transforming them into installation commands.
- Specific examples indicate that the system should: parse the prompt, determine which MCP server to install, optionally interpret installation arguments, and interact with package managers (npx & uv).
- The provided image link (even though not visible in this explanation) might serve as inspiration for how components interact.

##### Elements
- Use clear labels like “Claude Command Interface”, “MCP Installer Core”, “NPM Adapter (npx)”, “Python Adapter (uv)”, and “External Package Repositories”.
- Command interfaces or entry points (e.g., rectangles).
- Core logic modules (e.g., rounded rectangles).

##### Final Advice
- The command reception element from Claude.
- The decision/planning stage that interprets installation commands.
- The invocation of external package management tools.
- Don’t hesitate to add any additional intermediary components (such as logging or error handling routines) if the architecture expands over time.

## Diagram (Mermaid)

```mermaid
graph TD
    A["Claude Command Interface"]:::commandInterface
    B["MCP Installer Core"]:::core
    A -->|"receives_command"| B

    B -->|"parse_and_decide:if_npm_package"| C["NPM Adapter (npx)"]:::adapter
    B -->|"parse_and_decide:if_Python_package"| D["Python Adapter (uv)"]:::adapter

    C -->|"invokes"| E["NPM Registry/External Package Repo"]:::external
    D -->|"invokes"| F["PyPi/Local Repository"]:::external

    E -->|"status_update"| B
    F -->|"status_update"| B
    B -->|"returns_response"| A

    subgraph "Project Configuration & Dependencies"
        G["package.json"]:::config
        H["package-lock.json"]:::config
        I["tsconfig.json"]:::config
        J["eslint.config.mjs"]:::config
    end
    B ---|"depends_on"| G
    B --- H
    B --- I
    B --- J

    click B "https://github.com/anaisbetts/mcp-installer/blob/main/src/index.mts"
    click G "https://github.com/anaisbetts/mcp-installer/blob/main/package.json"
    click H "https://github.com/anaisbetts/mcp-installer/blob/main/package-lock.json"
    click I "https://github.com/anaisbetts/mcp-installer/blob/main/tsconfig.json"
    click J "https://github.com/anaisbetts/mcp-installer/blob/main/eslint.config.mjs"

classDef commandInterface fill:#a8d0e6,stroke:#083c5a,stroke-width:2px;
classDef core fill:#f76c6c,stroke:#7B241C,stroke-width:2px;
classDef adapter fill:#f8c471,stroke:#B9770E,stroke-width:2px;
classDef external fill:#82E0AA,stroke:#1E8449,stroke-width:2px;
classDef config fill:#d2b4de,stroke:#6C3483,stroke-width:2px;
```
