> ## Documentation Index
> Fetch the complete documentation index at: https://docs.replit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# MCPインストールリンク

> MCPインストールリンクのリファレンス — URLフォーマット、ペイロードスキーマ、バッジのカスタマイズ。

インストールリンクを使うと、ユーザーがワンクリックでMCPサーバーをReplitに追加できます。生成するには、[MCPで接続する](/build/connect-via-mcp#share-an-install-link)のフォームを使用します。

## リンク形式

インストールリンクは、サーバー設定を含むbase64エンコードされたJSONペイロードを使用します：

```
https://replit.com/integrations?mcp={payload}
```

ペイロードには以下が含まれます：

* **displayName**：インストール時にユーザーに表示される名前
* **baseUrl**：MCPサーバーのHTTPSエンドポイント
* **headers**：任意の認証ヘッダー

```json theme={null}
{
  "displayName": "My MCP Server",
  "baseUrl": "https://example.com/mcp",
  "headers": [
    {
      "key": "Authorization",
      "value": "Bearer your-token"
    }
  ]
}
```

## バッジの使用

READMEやドキュメントにクリック可能なバッジを追加して、クリック時にMCPサーバーをインストールできます。

```markdown theme={null}
[![Install My MCP](https://replit.com/badge?caption=Install%20My%20MCP)](https://replit.com/integrations?mcp={payload})
```

<Frame>
  ![MCPインストールバッジ](https://replit.com/badge?caption=Install%20MCP%20Server)
</Frame>

`caption`パラメータのテキストをURLエンコードすることで、バッジのキャプション（最大30文字）をカスタマイズできます。
