Installation de serveur MCP

VérifiéPrudence

Installe des serveurs MCP en exécutant la commande `claude mcp add`. Utile pour ajouter un nouveau serveur MCP comme GitHub ou Filesystem, en guidant l'utilisateur dans le choix du nom, de la portée (utilisateur ou projet) et la configuration des variables d'environnement nécessaires.

Spar Skills Guide Bot
DeveloppementDébutant
6002/06/2026
Claude Code
#mcp#installation#claude-code#server-setup

Recommandé pour

Notre avis

Installe un serveur MCP (Model Context Protocol) via la commande `claude mcp add` après confirmation de l'utilisateur.

Points forts

  • Guide l'utilisateur étape par étape avec des confirmations claires.
  • Prise en charge des MCP populaires avec variables d'environnement intégrées.
  • S'adapte au scope (utilisateur ou projet).

Limites

  • Ne configure pas les valeurs des variables d'environnement pour des raisons de sécurité.
  • Nécessite que l'utilisateur connaisse le nom exact du serveur MCP.
Quand l'utiliser

Quand vous devez ajouter un serveur MCP à Claude Code pour étendre ses capacités (GitHub, base de données, etc.).

Quand l'éviter

Pour une installation en masse ou automatisée sans interaction utilisateur.

Analyse de sécurité

Prudence
Score qualité90/100

The skill uses Bash to run a configuration command, which is a powerful tool, but only for adding MCP servers. It includes user confirmation and explicitly avoids setting environment variable values. The risk is low, but caution is warranted due to Bash usage.

Points d'attention
  • Uses Bash to execute 'claude mcp add' command which modifies MCP server configuration; requires user confirmation but still a system-level change.

Exemples

Install GitHub MCP
Install the GitHub MCP server so I can interact with GitHub from Claude Code.
Add filesystem MCP
Add the filesystem MCP server to my project scope.
Install PostgreSQL MCP
I need to install a MCP server for PostgreSQL. Please help me add it.

name: install-mcp description: MCP サーバーをインストールする。「MCP インストール」「MCP を追加」「MCP サーバー追加」「mcp add」「MCP を入れて」「MCP サーバーをインストール」「新しい MCP」などで起動。 allowed-tools: [Bash, AskUserQuestion]

Install MCP

MCP サーバーをインストールします。

実行手順

  1. ユーザーに以下を確認:
    • MCP サーバー名(例: github, filesystem, puppeteer)
    • スコープ(user または project)
  2. claude mcp add <name> --scope <scope> コマンドを実行
  3. 必要に応じて環境変数の設定を案内
  4. インストール完了メッセージを表示

人気の MCP サーバー

| 名前 | 説明 | 必要な環境変数 | |------|------|----------------| | github | GitHub API 操作 | GITHUB_PERSONAL_ACCESS_TOKEN | | filesystem | ファイルシステム操作 | なし | | puppeteer | ブラウザ自動化 | なし | | postgres | PostgreSQL 操作 | DATABASE_URL | | sqlite | SQLite 操作 | なし |

インストール確認フォーマット

## MCP サーバーインストール

以下の設定でインストールしますか?

| 項目 | 値 |
|------|-----|
| サーバー名 | github |
| スコープ | user |

実行するコマンド:
\`\`\`bash
claude mcp add github --scope user
\`\`\`

出力フォーマット(インストール完了時)

## インストール完了

MCP サーバー「github」をインストールしました。

### 環境変数の設定

このサーバーには以下の環境変数が必要です:

| 変数名 | 説明 |
|--------|------|
| GITHUB_PERSONAL_ACCESS_TOKEN | GitHub パーソナルアクセストークン |

設定方法:
\`\`\`bash
export GITHUB_PERSONAL_ACCESS_TOKEN="your_token_here"
\`\`\`

または `.claude/settings.json``env` セクションに追加してください。

重要な注意事項

  • ✅ インストール前に確認を求める
  • ✅ 必要な環境変数を案内
  • ✅ スコープの選択肢を提示
  • ❌ 環境変数の値自体は設定しない(セキュリティ上の理由)
Skills similaires