Skip to main content
Glama
r3-yamauchi

blastengine-mailer

by r3-yamauchi
README.md
# blastengine-mailer MCP Server

Blastengine APIを使用してメールを送信するModel Context Protocol (MCP) サーバー

このJavaScriptベースのMCPサーバーは、LLM(大規模言語モデル)がBlastengine APIを通じてメールを送信できるようにします。

## 機能

### ツール
- `send_email` - Blastengine APIを使用してメールを送信
  - 必須パラメータ:
    - `to`: 送信先メールアドレス
    - `from`: 送信元メールアドレス
    - `subject`: メールの件名
    - `text`: メール本文
  - 送信成功時はdelivery_idを返します
  - エラー時は詳細なエラーメッセージを返します

## 前提条件

- Node.js (ESモジュール対応)
- Blastengine APIアカウントとAPIキー

## 開発

依存関係のインストール:
```bash
npm install
```

サーバーのビルド:
```bash
npm run build
```

開発時の自動リビルド:
```bash
npm run watch
```

## インストールと設定

### Claude Desktopでの使用

Claude Desktopで使用するには、以下の設定ファイルにサーバー設定を追加します:

macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
Windows: `%APPDATA%/Claude/claude_desktop_config.json`

```json
{
  "mcpServers": {
    "blastengine-mailer": {
      "command": "node",
      "env": {
        "BLASTENGINE_USER_ID": "userid-of-blastengine",
        "BLASTENGINE_API_KEY": "apikey-of-blastengine"
      },
      "args": [
        "/path/to/blastengine-mailer/server.js"
      ]
    }
  }
}
```

### デバッグ

MCPサーバーはstdio経由で通信するため、デバッグが困難な場合があります。[MCP Inspector](https://github.com/modelcontextprotocol/inspector)の使用を推奨します:

```bash
npm run inspector
```

インスペクターは、ブラウザでデバッグツールにアクセスするためのURLを提供します。

## 使用例

Claude Desktopで設定後、以下のようにメールを送信できます:

```
「test@example.comに『テストメール』という件名でメールを送信して」
```

## ライセンス

このプロジェクトはプライベートプロジェクトです。

TDQS

B3.1/5.0

Scored across 1 tool

Disambiguation5/5

With only one tool, there is no possibility of ambiguity or overlap between tools. The single tool 'send_email' has a clear and distinct purpose that cannot be confused with any other tool in this set.

Naming Consistency5/5

The naming is trivially consistent as there is only one tool, 'send_email', which follows a clear verb_noun pattern. There are no other tools to compare against, so no inconsistency can exist.

Tool Count2/5

A single tool is too few for a mailer server's apparent scope, which typically involves operations like listing emails, managing templates, or checking statuses. This minimal set limits functionality and may cause agent failures due to lack of essential operations.

Completeness2/5

The tool surface is severely incomplete for an email service domain. While 'send_email' covers a core action, there are significant gaps such as retrieving sent emails, managing recipients, handling attachments, or error checking, which are essential for comprehensive email workflows.

Maintenance

ActivityInactive
ResponsivenessNo issues