{"_id":"126-email-mcp-server","_rev":"3-2809ea844e6a09ac9d6b6eb76959645e","name":"126-email-mcp-server","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.2":{"name":"126-email-mcp-server","version":"1.0.2","keywords":["mcp","email","smtp","126","mail","model-context-protocol","ai","assistant","automation","npx"],"author":"","license":"ISC","_id":"126-email-mcp-server@1.0.2","maintainers":[{"name":"tanwenxin","email":"tanwenxin.2022@bytedance.com"}],"homepage":"https://github.com/your-username/126-email-mcp-server#readme","bugs":{"url":"https://github.com/your-username/126-email-mcp-server/issues"},"bin":{"126-email-mcp-server":"dist/bin.js"},"dist":{"shasum":"4343a06a1f0bb8141687799ffa01a0a0393ef404","tarball":"https://registry.npmjs.org/126-email-mcp-server/-/126-email-mcp-server-1.0.2.tgz","fileCount":6,"integrity":"sha512-7FDL9W/nz3+Fs0Pj0BsslfyFYI3c/4bpyRQ8pRVogBlEW3zaMSNX46r7zF6E34wUOAzw3BksZ/6WZ8Hb5qW4zA==","signatures":[{"sig":"MEUCIHyoSVP/IhmrzhYP5T7cNs8BdvbpyIVL8wo37L097gW1AiEAo4F+Qu602wNDI89AhWD3Zn6jDL8q9yFhcc9U5b8JipI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18005},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./src/index.ts","engines":{"node":">=18.0.0"},"gitHead":"8f405a586e2592b42f3f8abdc7c59b584313fb91","scripts":{"dev":"npx @smithery/cli dev","test":"node dist/bin.js --help","build":"tsc && chmod +x dist/bin.js","clean":"rm -rf dist","start":"node dist/bin.js","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"tanwenxin","email":"tanwenxin.2022@bytedance.com"},"repository":{"url":"git+https://github.com/your-username/126-email-mcp-server.git","type":"git"},"_npmVersion":"10.9.2","description":"A powerful MCP server for sending emails via 126.com SMTP service. Perfect for AI assistants and automation workflows!","directories":{},"_nodeVersion":"22.17.0","dependencies":{"zod":"^3.25.46","nodemailer":"^7.0.5","@types/nodemailer":"^6.4.17","@modelcontextprotocol/sdk":"^1.12.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.4","typescript":"^5.0.0","@types/node":"^20.0.0","@smithery/cli":"^1.2.4"},"_npmOperationalInternal":{"tmp":"tmp/126-email-mcp-server_1.0.2_1755171161755_0.34136023530499093","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"126-email-mcp-server","version":"1.0.3","keywords":["mcp","email","smtp","126","mail","model-context-protocol","ai","assistant","automation","npx"],"author":"","license":"ISC","_id":"126-email-mcp-server@1.0.3","maintainers":[{"name":"tanwenxin","email":"tanwenxin.2022@bytedance.com"}],"homepage":"https://github.com/your-username/126-email-mcp-server#readme","bugs":{"url":"https://github.com/your-username/126-email-mcp-server/issues"},"bin":{"126-email-mcp-server":"dist/bin.js"},"dist":{"shasum":"29285243c06213e45476e54359bca61d9bec0610","tarball":"https://registry.npmjs.org/126-email-mcp-server/-/126-email-mcp-server-1.0.3.tgz","fileCount":6,"integrity":"sha512-9jqkfz2Q6WWwCG71gphn12z0LNbVeLEfDyrA/KCdf0jNMr9/WUFJXq/au8mlw7DyDuHduTyHcLDxIO+32mYSXw==","signatures":[{"sig":"MEQCIBA9Yx9NmwnjTS2r5fQFjplN//fnf/uiFxOIhtqtnIqvAiB9JfzTNDCQ1Q7bf9+7iyZBTpu1b6iY4YpK0xCjCPy0YA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18003},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./src/index.ts","engines":{"node":">=18.0.0"},"gitHead":"8f405a586e2592b42f3f8abdc7c59b584313fb91","scripts":{"dev":"npx @smithery/cli dev","test":"node dist/bin.js --help","build":"tsc && chmod +x dist/bin.js","clean":"rm -rf dist","start":"node dist/bin.js","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"tanwenxin","email":"tanwenxin.2022@bytedance.com"},"repository":{"url":"git+https://github.com/your-username/126-email-mcp-server.git","type":"git"},"_npmVersion":"10.9.2","description":"A powerful MCP server for sending emails via 126.com SMTP service. Perfect for AI assistants and automation workflows!","directories":{},"_nodeVersion":"22.17.0","dependencies":{"zod":"^3.25.46","nodemailer":"^7.0.5","@types/nodemailer":"^6.4.17","@modelcontextprotocol/sdk":"^1.12.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.4","typescript":"^5.0.0","@types/node":"^20.0.0","@smithery/cli":"^1.2.4"},"_npmOperationalInternal":{"tmp":"tmp/126-email-mcp-server_1.0.3_1755171443260_0.3611890717034558","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"126-email-mcp-server","version":"1.0.4","description":"A powerful MCP server for sending emails via 126.com SMTP service. Perfect for AI assistants and automation workflows!","main":"dist/index.js","module":"./src/index.ts","type":"module","bin":{"126-email-mcp-server":"dist/bin.js"},"scripts":{"build":"tsc && chmod +x dist/bin.js","dev":"npx @smithery/cli dev","test":"node dist/bin.js --help","clean":"rm -rf dist","prepublishOnly":"npm run clean && npm run build","start":"node dist/bin.js"},"keywords":["mcp","email","smtp","126","mail","model-context-protocol","ai","assistant","automation","npx"],"author":"","license":"ISC","repository":{"type":"git","url":"git+https://github.com/your-username/126-email-mcp-server.git"},"homepage":"https://github.com/your-username/126-email-mcp-server#readme","bugs":{"url":"https://github.com/your-username/126-email-mcp-server/issues"},"engines":{"node":">=18.0.0"},"dependencies":{"@modelcontextprotocol/sdk":"^1.12.1","@types/nodemailer":"^6.4.17","nodemailer":"^7.0.5","zod":"^3.25.46"},"devDependencies":{"@smithery/cli":"^1.2.4","@types/node":"^20.0.0","typescript":"^5.0.0","tsx":"^4.19.4"},"_id":"126-email-mcp-server@1.0.4","gitHead":"8f405a586e2592b42f3f8abdc7c59b584313fb91","types":"./dist/index.d.ts","_nodeVersion":"22.17.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-3C1UFlGGfyIPJKm1xDBvrnRF0MrLfkqJ1hM4a/Ex0/cFHQG8bPA/N/bmpnQy16BRms3KwcjRra7oukh1BkBixw==","shasum":"9b895c2de2993bbd38c4a8cb969d6f8d13c4bf1b","tarball":"https://registry.npmjs.org/126-email-mcp-server/-/126-email-mcp-server-1.0.4.tgz","fileCount":6,"unpackedSize":23179,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGUl5p9u5XAbOruWFdjRoKxZH5p1j2EZHQ8+3anINbkMAiEA34gm/ZrHndm4IyKd0TYSRaT1eSA0On1RThYtfvk8m4M="}]},"_npmUser":{"name":"tanwenxin","email":"tanwenxin.2022@bytedance.com"},"directories":{},"maintainers":[{"name":"tanwenxin","email":"tanwenxin.2022@bytedance.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/126-email-mcp-server_1.0.4_1755172673887_0.8490108615952938"},"_hasShrinkwrap":false}},"time":{"created":"2025-08-14T11:32:41.754Z","modified":"2025-08-14T11:57:54.259Z","1.0.2":"2025-08-14T11:32:41.938Z","1.0.3":"2025-08-14T11:37:23.446Z","1.0.4":"2025-08-14T11:57:54.076Z"},"bugs":{"url":"https://github.com/your-username/126-email-mcp-server/issues"},"license":"ISC","homepage":"https://github.com/your-username/126-email-mcp-server#readme","keywords":["mcp","email","smtp","126","mail","model-context-protocol","ai","assistant","automation","npx"],"repository":{"type":"git","url":"git+https://github.com/your-username/126-email-mcp-server.git"},"description":"A powerful MCP server for sending emails via 126.com SMTP service. Perfect for AI assistants and automation workflows!","maintainers":[{"name":"tanwenxin","email":"tanwenxin.2022@bytedance.com"}],"readme":"# 126 Email MCP Server\n\n🚀 A powerful MCP (Model Context Protocol) server for sending emails via 126.com SMTP service. Perfect for AI assistants like Claude Desktop!\n\n## ✨ Features\n\n- 🔒 **Secure email sending** via 126.com SMTP with SSL/TLS\n- 📧 **Rich email support** - HTML, plain text, CC, BCC\n- 🤖 **MCP Protocol ready** - Works seamlessly with Claude Desktop and other MCP clients\n- ⚡ **Zero configuration** - Works entirely via command line arguments\n- 🎯 **npx ready** - No installation required, use directly with npx\n\n## 🚀 Quick Start for Claude Desktop\n\n### 1. Add to Claude Desktop Configuration\n\nEdit your `~/.claude_desktop_config.json` file:\n\n```json\n{\n  \"mcpServers\": {\n    \"126-email\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"-y\",\n        \"126-email-mcp-server\",\n        \"--email-user\", \"your-email@126.com\",\n        \"--email-password\", \"your-password-or-app-specific-password\"\n      ]\n    }\n  }\n}\n```\n\n### 2. With Custom Settings\n\n```json\n{\n  \"mcpServers\": {\n    \"126-email\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"-y\",\n        \"126-email-mcp-server\",\n        \"--email-user=your-email@126.com\",\n        \"--email-password=your-password-or-app-specific-password\",\n        \"--from-name=Your Name\",\n        \"--debug=false\"\n      ]\n    }\n  }\n}\n```\n\n### 3. Restart Claude Desktop\n\nAfter saving the configuration, restart Claude Desktop to load the MCP server.\n\n## 📧 Available Tools in Claude\n\nOnce configured, Claude will have access to these email tools:\n\n### `send_email`\nSend emails with rich content support:\n- **to** (required): Recipient email address\n- **subject** (required): Email subject\n- **text** (optional): Plain text content\n- **html** (optional): HTML content\n- **cc** (optional): CC recipients (comma-separated)\n- **bcc** (optional): BCC recipients (comma-separated)\n\n### `verify_smtp_connection`\nTest your SMTP configuration:\n- No parameters required\n- Returns connection status and details\n\n## 🔧 Configuration Parameters\n\n### Required Parameters\n- `--email-user <email>` - Your 126.com email address\n- `--email-password <password>` - Your 126.com password or app-specific password\n\n### Optional Parameters\n- `--debug <true|false>` - Enable debug mode (default: false)\n- `--smtp-host <host>` - SMTP server (default: smtp.126.com)\n- `--smtp-port <port>` - SMTP port (default: 465)\n- `--smtp-secure <true|false>` - Use SSL/TLS (default: true)\n- `--from-name <name>` - Display name for sender\n- `--require-tls <true|false>` - Require TLS (default: false)\n\n## 🔐 126.com Email Setup\n\n### Step 1: Enable SMTP Service\n1. Log into your 126.com email account\n2. Go to **Settings** → **POP3/SMTP/IMAP**\n3. **Enable SMTP service**\n4. Note down the SMTP settings (usually smtp.126.com:465 with SSL)\n\n### Step 2: Get App-Specific Password (if using 2FA)\n1. If you have 2-factor authentication enabled\n2. Generate an **app-specific password**\n3. Use this app-specific password instead of your regular password\n\n### Step 3: Test Configuration\n```bash\nnpx 126-email-mcp-server --email-user your@126.com --email-password yourpass --help\n```\n\n## 🎯 Usage Examples\n\n### Basic MCP Configuration\n```json\n{\n  \"mcpServers\": {\n    \"126-email\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"126-email-mcp-server\", \"--email-user\", \"you@126.com\", \"--email-password\", \"yourpass\"]\n    }\n  }\n}\n```\n\n### Advanced MCP Configuration\n```json\n{\n  \"mcpServers\": {\n    \"126-email\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"-y\", \"126-email-mcp-server\",\n        \"--email-user=you@126.com\",\n        \"--email-password=yourpass\",\n        \"--from-name=AI Assistant\",\n        \"--debug=true\",\n        \"--smtp-secure=true\"\n      ]\n    }\n  }\n}\n```\n\n### Alternative MCP Client Configuration\n```json\n{\n  \"servers\": {\n    \"126-email-server\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"126-email-mcp-server\", \"--email-user\", \"you@126.com\", \"--email-password\", \"yourpass\"],\n      \"env\": {}\n    }\n  }\n}\n```\n\n## 🧪 Testing Outside Claude\n\n### Interactive Mode\n```bash\nnpx 126-email-mcp-server --email-user you@126.com --email-password yourpass\n```\n\n### STDIO Mode (for MCP clients)\n```bash\nnpx 126-email-mcp-server --stdio --email-user you@126.com --email-password yourpass\n```\n\n### Configuration Check\n```bash\nnpx 126-email-mcp-server --email-user you@126.com --email-password yourpass --help\n```\n\n## 🔍 Troubleshooting\n\n### Claude Desktop Not Recognizing the Server\n1. **Check configuration syntax** - Ensure JSON is valid\n2. **Restart Claude Desktop** - Required after config changes\n3. **Check credentials** - Verify email and password are correct\n4. **Enable SMTP** - Ensure SMTP is enabled in your 126.com account\n\n### Authentication Issues\n1. **Use app-specific password** if 2FA is enabled\n2. **Check SMTP settings** in your 126.com account\n3. **Try debug mode**: Add `--debug=true` to see detailed logs\n\n### Connection Issues\n1. **Check firewall settings**\n2. **Try different ports**: 25, 465, 587\n3. **Verify SMTP host**: Should be smtp.126.com\n\n## 📋 Configuration File Locations\n\n### Claude Desktop\n- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`\n- **Windows**: `%APPDATA%\\Claude\\claude_desktop_config.json`\n- **Linux**: `~/.config/Claude/claude_desktop_config.json`\n\n## 🚀 Advanced Usage\n\n### Multiple Email Accounts\n```json\n{\n  \"mcpServers\": {\n    \"126-email-personal\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"126-email-mcp-server\", \"--email-user\", \"personal@126.com\", \"--email-password\", \"pass1\"]\n    },\n    \"126-email-work\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"126-email-mcp-server\", \"--email-user\", \"work@126.com\", \"--email-password\", \"pass2\"]\n    }\n  }\n}\n```\n\n### Custom SMTP Settings\n```json\n{\n  \"mcpServers\": {\n    \"126-email-custom\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"-y\", \"126-email-mcp-server\",\n        \"--email-user=you@126.com\",\n        \"--email-password=yourpass\",\n        \"--smtp-host=smtp.126.com\",\n        \"--smtp-port=587\",\n        \"--smtp-secure=false\",\n        \"--require-tls=true\"\n      ]\n    }\n  }\n}\n```\n\n## 📦 Package Information\n\n- **Package**: `126-email-mcp-server`\n- **npx ready**: Use directly without installation\n- **Node.js**: Requires Node.js 18+\n- **MCP SDK**: Built with official MCP SDK\n\n## 🤝 Support\n\n- **Issues**: Report bugs and feature requests\n- **Documentation**: Complete usage examples\n- **Community**: Share your use cases\n\n## 📄 License\n\nISC License - see LICENSE file for details.\n\n---\n\n**Ready to send emails from Claude?** Just add the configuration above to your Claude Desktop settings and restart! 🚀","readmeFilename":"README.md"}