---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://docs.sendcorex.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://docs.sendcorex.com/llms.txt"
---

Source: https://docs.sendcorex.com/ja/api-reference/mcp/connect

AIアプリ（MCP）

# アプリを接続

SendcorexをClaude、Claude Code、Cursor、VS Code、または任意のMCPクライアントに追加します。アカウントのURL、メールボックスのURL、またはその両方を使います。

- Streamable HTTP
- ClaudeではOAuth
- どこでもAPI key

## サーバーのURL

アカウント`https://g.sendcorex.com/mcp/account`

ドメイン、送信者、テンプレート、ログ、連絡先、検証、メール送信。

メールボックス`https://g.sendcorex.com/mcp/inbox`

1つのメールボックス：読み取り、検索、返信、整理、ルール。

モデルのコンテキストのツールを減らしたい場合は、アカウントのURLに `?tools=domain,logs` を、メールボックスのURLに `?tools=mail,compose` を追加します。

## Claude（claude.aiとデスクトップアプリ）

OAuth

1. 1
Settings → Connectors → Add custom connectorを開きます。
2. 2
アカウントのURL（またはメールボックスのURL）を貼り付けてAddをクリックします。
3. 3
Connectをクリックします。Sendcorexのウィンドウが開くので、必要ならサインインし、権限（またはメールボックス）を選んで「承認」をクリックします。
4. 4
Claudeに戻り、新しいチャットで頼みます。Claudeはアクセスを自動で更新します。

アカウント

```
https://g.sendcorex.com/mcp/account
```

メールボックス（メールボックスごとに1つ）

```
https://g.sendcorex.com/mcp/inbox
```

Claudeに使わせたいメールボックスごとにメールボックスのURLを再度追加し、毎回別のメールボックスを選びます。

## Claude Code

OAuthまたはAPI key

1. 1
OAuthの場合：サーバーを追加し、Claude Codeで/mcpを実行してAuthenticateを選びます。
2. 2
API keyの場合：ヘッダーとして渡します。表示されるツールはキーの権限で決まります。

OAuth

```
claude mcp add --scope user --transport http sendcorex https://g.sendcorex.com/mcp/account
```

API key

```
claude mcp add --scope user --transport http sendcorex https://g.sendcorex.com/mcp/account \
  --header "Authorization: Bearer $SENDCOREX_API_KEY"
```

## Cursor

API key

1. 1
Settings → MCP → Add new MCP serverを開くか、~/.cursor/mcp.jsonを編集します。
2. 2
設定を貼り付けて再読み込みします。

~/.cursor/mcp.json

```
{
  "mcpServers": {
    "sendcorex": {
      "url": "https://g.sendcorex.com/mcp/account",
      "headers": { "Authorization": "Bearer YOUR_SENDCOREX_API_KEY" }
    }
  }
}
```

## VS Code (GitHub Copilot)

API key

1. 1
プロジェクトに.vscode/mcp.jsonを作成します（またはMCP: Add Serverを実行）。
2. 2
VS Codeは初回にキーを尋ね、安全に保存します。

.vscode/mcp.json

```
{
  "inputs": [
    { "type": "promptString", "id": "sendcorex-key", "description": "Sendcorex API key", "password": true }
  ],
  "servers": {
    "sendcorex": {
      "type": "http",
      "url": "https://g.sendcorex.com/mcp/account",
      "headers": { "Authorization": "Bearer ${input:sendcorex-key}" }
    }
  }
}
```

## ほかのMCPクライアント

OAuthまたはAPI key

1. 1
トランスポート：Streamable HTTP（POST、JSONレスポンス、セッションなし）。
2. 2
認証：API keyによるAuthorization: Bearer、またはPKCE付きOAuth 2.1（401レスポンスから検出）。
3. 3
プロトコルのバージョン：2024-11-05、2025-03-26、2025-06-18、2025-11-25。

## 接続をテスト

キーで使えるツールを一覧表示します。空のリストは、キーにアカウントの権限が1つもないことを意味します。 [キーを編集](https://app.sendcorex.com/dashboard/developer) または読む [認証](https://docs.sendcorex.com/ja/api-reference/mcp/authentication) .

curl

```
curl -s https://g.sendcorex.com/mcp/account \
  -H "Authorization: Bearer $SENDCOREX_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
```
