# Mails.ai — エージェント電子メール MCP サーバー (`mailsai-mcp-server`)

> AI エージェント用の実際の受信箱: プロンプト インジェクション ファイアウォールの内側で電子メールを送信、受信、スレッド化します。

- **Canonical URL:** https://syndipath.com/ja/mcp/mailsai-mcp-server
- **Runtime:** `npm` | **Transport:** STDIO | **License:** MIT | **Package:** `@mailsai/mcp-server`
- **Upvotes:** 330 | **GitHub Stars:** 2393 | **Weekly Installs:** 23930
- **Security Note:** HTTP-200 は NPM レジストリ (@mailsai/mcp-server) で検証されました。ワークスペーススコープの STDIO サブプロセスで npx を使用して実行します。

## Quick CLI Setup
```bash
# Run directly via Node npx
npx -y @mailsai/mcp-server

# Add to Claude Code CLI
claude mcp add -e MAILS_API_KEY=${MAILS_API_KEY} mailsai-mcp-server -- npx -y @mailsai/mcp-server
```

## MCP Manifest (`mcp.json`)
```json
{
  "mcpServers": {
    "mailsai-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@mailsai/mcp-server"
      ],
      "env": {
        "MAILS_API_KEY": "${MAILS_API_KEY}"
      }
    }
  }
}
```

## Exposed MCP Tools
- `mailsai_mcp_server_execute(query: string, options?: object)`: A real inbox for AI agents: send, receive and thread email, behind a prompt-injection firewall.
- `mailsai_mcp_server_list_items(filter?: string, limit?: number)`: Lists structured workspace artifacts and capability metadata over JSON-RPC 2.0.
