一个简单的 CLI,可将 MCP 服务器安装到任何客户端 - 包括身份验证!
Installing MCPs is a huge pain, so I made a CLI tool to make it easier.
The CLI now supports multiple installation methods with automatic detection:
npx install-mcp mcp-package-name --client claude-desktopnpx install-mcp @org/mcp-server --client claude-desktopnpx install-mcp 'npx some-mcp-server --custom-args' --client claude-desktopnpx install-mcp https://mcp.example.com/server --client claude-desktopThe tool automatically:
npx package-namemcp.example.com → mcp-example-com)When installing a server hosted on https://api.supermemory.ai/*, you can pass a project name via --project. This is a convenience alias for adding the header x-sm-project: .
Rules:
https://api.supermemory.ai/*.--project for these URLs, you'll be prompted. Pressing Enter uses default.--header flags.Examples:
# Explicit project
npx install-mcp https://api.supermemory.ai/servers/my-server \
--client cursor \
--project myproj
# Prompted for project (Enter defaults to "default")
npx install-mcp https://api.supermemory.ai/servers/my-server --client cursorWarp users: the generated config will include --header "x-sm-project: " in the args array when installing Supermemory URLs.
You can pass headers for authentication or other purposes using the --header flag:
# Single header
npx install-mcp https://api.example.com/mcp --client claude-desktop --header "Authorization: Bearer token123"
# Multiple headers
npx install-mcp https://api.example.com/mcp --client claude-desktop \
--header "Authorization: Bearer token123" \
--header "X-API-Key: secret-key"When installing remote servers (URLs), the CLI will ask if the server uses OAuth authentication:
npx install-mcp https://api.example.com/mcp --client claude-desktop
# Output: Does this server use OAuth authentication? (Y/n)You can bypass this prompt using the --oauth flag:
# Automatically run OAuth authentication
npx install-mcp https://api.example.com/mcp --client claude-desktop --oauth yes
# Skip OAuth authentication entirely
npx install-mcp https://api.example.com/mcp --client claude-desktop --oauth noIf you answer yes, the authentication flow:
# Output: Running authentication for https://api.example.com/mcpIf authentication fails, you'll see:
Authentication failed. Use the client to authenticate.If the server doesn't use OAuth (you answer no), the installation proceeds directly without authentication.
This ensures secure access to remote servers while maintaining flexibility for servers that don't require OAuth.
The --client flag specifies which MCP client you're installing for:
claude-desktopclineroo-clinewindsurfwitsyenconvocursorvscodegemini-cliclaude-codegoosezedopencodewarp (outputs config to copy/paste into Warp's cloud-based settings)codex (OpenAI's Codex CLI tool)droid (Factory.AI's Droid CLI tool)aider (AI pair programming tool)aider-desk (Desktop version of aider)MIT
暂无开放 Issues,或尚未同步最近议题。