Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .claude/settings.local.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"permissions": {
"allow": [
"Bash(git push:*)",
"Bash(git remote set-url:*)",
"Bash(find:*)",
"Bash(npm run build:*)",
"Bash(npm run:*)",
"Bash(npx tsc:*)",
"Bash(timeout:*)",
"Bash(git add:*)",
"Bash(git tag:*)",
"Bash(gh release create:*)",
"Bash(gh pr create:*)",
"Bash(git fetch:*)",
"Bash(gh pr view:*)",
"Bash(gh pr edit:*)",
"Bash(gh repo view:*)"
],
"deny": []
},
"enableAllProjectMcpServers": false
}
25 changes: 24 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,38 @@

This server is a server that installs other MCP servers for you. Install it, and you can ask Claude to install MCP servers hosted in npm or PyPi for you. Requires `npx` and `uv` to be installed for node and Python servers respectively.

**✨ Enhanced for Claude CLI Support**: This fork has been modified to work with the `claude` CLI tool, automatically detecting and using the appropriate installation method.

![image](https://github.com/user-attachments/assets/d082e614-b4bc-485c-a7c5-f80680348793)

### How to install:

#### For Claude CLI (Recommended):
```bash
claude mcp add mcp-installer npx --args @o2alexanderfedin/mcp-installer
```

#### For Claude Desktop:
Put this into your `claude_desktop_config.json` (either at `~/Library/Application Support/Claude` on macOS or `C:\Users\NAME\AppData\Roaming\Claude` on Windows):

```json
"mcpServers": {
"mcp-installer": {
"command": "npx",
"args": [
"@anaisbetts/mcp-installer"
"@o2alexanderfedin/mcp-installer"
]
}
}
```

### Claude CLI vs Claude Desktop

This enhanced version automatically detects which installation method to use:

- **Claude CLI**: Servers are installed immediately and available right away
- **Claude Desktop**: Servers are added to config file and require app restart

### Example prompts

> Hey Claude, install the MCP server named mcp-server-fetch
Expand All @@ -28,3 +43,11 @@ Put this into your `claude_desktop_config.json` (either at `~/Library/Applicatio
> 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'

### Features Added for Claude CLI

- **Automatic Detection**: Detects if `claude` CLI is available
- **Immediate Availability**: Servers installed via CLI are available instantly
- **Graceful Fallback**: Falls back to Claude Desktop config if CLI unavailable
- **Environment Variables**: Supports setting environment variables via `--env`
- **Custom Arguments**: Supports custom arguments via `--args`
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@anaisbetts/mcp-installer",
"version": "0.5.0",
"version": "0.6.1",
"bin": {
"mcp-installer": "./lib/index.mjs"
},
Expand Down
Loading