mcp-installer

repository·main·Indexed 23 days ago

https://github.com/anaisbetts/mcp-installer

An MCP server designed to automate the installation and configuration of other MCP servers. It allows users to manage Node.js (via npx) and Python (via uv) based servers through natural language instructions in Claude, supporting installations from npm, PyPi, or local paths via the install_repo_mcp_server and install_local_mcp_server tools.

Tokens
986
Snippets
2
Records
6
Agent score
31%

What's inside mcp-installer

  1. Install mcp-installer for Claude Desktop

    main

    To use mcp-installer to automate the installation of other MCP servers, add it to your Claude Desktop configuration file.

    Configuration Locations:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: C:\Users\NAME\AppData\Roaming\Claude\claude_desktop_config.json

    Prerequisites:

    • npx must be installed to handle Node.js-based servers.
    • uv must be installed to handle Python-based servers.
    "mcpServers": {
      "mcp-installer": {
        "command": "npx",
        "args": [
          "@anaisbetts/mcp-installer"
        ]
      }
    }
  2. Use mcp-installer via Claude prompts

    main

    Once installed, you can instruct Claude to install MCP servers from npm, PyPi, or local paths. The server supports specifying package names, local directories, and environment variables.

    Supported installation patterns:

    • NPM/PyPi packages: Provide the package name (e.g., mcp-server-fetch or @modelcontextprotocol/server-filesystem).
    • Local paths: Provide the absolute path to the server directory.
    • Arguments: You can specify arguments for the server being installed (e.g., directory paths).
    • Environment Variables: You can instruct Claude to set specific environment variables for the new server (e.g., API tokens).
    > Hey Claude, install the MCP server named mcp-server-fetch
    
    > Hey Claude, install the @modelcontextprotocol/server-filesystem package as an MCP server. Use ['/Users/anibetts/Desktop'] for the arguments
    
    > Hi Claude, please install the MCP server at /Users/anibetts/code/mcp-youtube, I'm too lazy to do it myself.
    
    > Install the server @modelcontextprotocol/server-github. Set the environment variable GITHUB_PERSONAL_ACCESS_TOKEN to '1234567890'
  3. Install an MCP server via npx or uvx

    main

    Use the install_repo_mcp_server tool to install an MCP server from a remote package registry. The tool automatically detects if the package is available via npm (using npx) or if it should use uvx (Python's uv tool).

    Note: After a successful installation, you must restart the Claude Desktop app for the changes to take effect.

  4. Install a locally cloned MCP server

    main

    Use the install_local_mcp_server tool to install an MCP server from a directory already present on your local machine. The tool will attempt to run npm install in the directory and resolve the correct entry point using the package.json bin or main fields.

    Note: After a successful installation, you must restart the Claude Desktop app for the changes to take effect.

  5. Reference: install_local_mcp_server arguments

    main

    The install_local_mcp_server tool accepts the following arguments:

    ArgumentTypeDescription
    pathstringRequired. The absolute path to the MCP server code cloned on your computer.
    argsarray<string>Optional. Additional arguments to pass to the server command.
    envarray<string>Optional. Environment variables to set, provided as strings delimited by = (e.g., ['DEBUG=true']).
  6. Reference: install_repo_mcp_server arguments

    main

    The install_repo_mcp_server tool accepts the following arguments:

    ArgumentTypeDescription
    namestringRequired. The package name of the MCP server (e.g., @modelcontextprotocol/server-everything).
    argsarray<string>Optional. Additional arguments to pass to the server command.
    envarray<string>Optional. Environment variables to set, provided as strings delimited by = (e.g., ['API_KEY=secret']).