Token导航 LogoToken导航TokenDH.com
Install MCP (install-mcp) logo
开发工具stdio官方级别未说明来源级核验

Install MCP (install-mcp)

MCP Server

install-mcp

一个用于安装和管理MCP服务器的命令行工具,支持多种安装方法和OAuth认证,适用于开发者和系统管理员。

工具数

0

提示词数

0

GitHub Stars

188

资源数

0
命令行工具开发工具TypeScriptClaude服务器管理ClaudeCursorWindsurfCline

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

supermemoryai

提供方

supermemoryai

最后核验

2026/5/17 20:23

运行时

Node.js

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

npx install-mcp mcp-package-name --client claude-desktop

详细介绍

安装MCP CLI

用于安装和管理MCP服务器的CLI工具。

安装MCP非常痛苦,所以我制作了一个CLI工具来简化它。

用法

CLI现在支持多种自动检测的安装方法:

简单的包名称

npx install-mcp mcp-package-name --client claude-desktop

范围包

npx install-mcp @org/mcp-server --client claude-desktop

完整命令(用于自定义参数)

npx install-mcp 'npx some-mcp-server --custom-args' --client claude-desktop

远程URL(自动命名)

npx install-mcp https://mcp.example.com/server --client claude-desktop

该工具自动执行以下操作:

  • 将简单包名称转换为 npx package-name
  • 按原样保留完整命令
  • 从包名称或URL推断服务器名称(例如。, mcp.example.commcp-example-com)
  • 处理远程服务器的OAuth身份验证

超级内存项目支持

安装托管在上的服务器时 https://api.supermemory.ai/*,您可以通过传递项目名称 --project。这是用于添加标头的方便别名 x-sm-project: .

规则:

  • 仅适用于URL安装目标 https://api.supermemory.ai/*.
  • 值不得包含空格。
  • 如果你忽略了 --project 对于这些URL,系统会提示您。按Enter键使用 default.
  • 该值作为头注入,与任何 --header 旗帜。

示例:

# 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 cursor

Warp用户:生成的配置将包括 --header "x-sm-project: "args 安装超级内存URL时使用数组。

标头支持

您可以使用 --header 标志:

# 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"

远程服务器的OAuth身份验证

安装远程服务器(URL)时,CLI将询问服务器是否使用OAuth身份验证:

npx install-mcp https://api.example.com/mcp --client claude-desktop
# Output: Does this server use OAuth authentication? (Y/n)

您可以使用以下命令绕过此提示 --oauth 标志:

# 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 no

如果您回答“是”,则身份验证流程为:

  • 安装前自动运行
  • 在后台无缝处理OAuth流
  • 身份验证状态在全局共享 -一旦您通过服务器身份验证,所有MCP客户端都可以自动使用该身份验证
  • 在不同客户端中使用同一服务器时,无需重新进行身份验证
# Output: Running authentication for https://api.example.com/mcp

如果身份验证失败,您将看到:

Authentication failed. Use the client to authenticate.

如果服务器不使用OAuth(您回答“否”),安装将直接进行,无需身份验证。

这确保了对远程服务器的安全访问,同时为不需要OAuth的服务器保持灵活性。

支持的客户

--client flag指定要为哪个MCP客户端安装:

  • claude-desktop
  • cline
  • roo-cline
  • windsurf
  • witsy
  • enconvo
  • cursor
  • vscode
  • gemini-cli
  • claude-code
  • goose
  • zed
  • opencode
  • warp (输出配置以复制/粘贴到Warp的基于云的设置中)
  • codex (OpenAI的Codex CLI工具)
  • droid (Factory的Droid命令行界面工具)
  • aider (AI配对编程工具)
  • aider-desk (aider的桌面版)

许可证

麻省理工学院

目录标签

目录标签

命令行工具开发工具TypeScriptClaude服务器管理本地部署OAuth认证自动化

支持客户端

ClaudeCursorWindsurfCline

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

oauth

运行时(runtime,运行环境)

Node.js

来源包(packageName,安装包名)

install-mcp

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiooauth部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP