Skip to content

ajaychinthapalli/copilot-mcp-email

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

copilot-mcp-email

MCP (Model Context Protocol) server for sending emails using nodemailer.

Features

  • Implements sendEmail tool for sending emails via MCP protocol
  • Uses nodemailer for email delivery
  • Supports Gmail and other SMTP services

Setup

  1. Install dependencies:
npm install
  1. Create a .env file with your email credentials:
cp .env.example .env

Edit .env and add your Gmail credentials:

  1. Build the project:
npm run build

Usage

Verify Installation

To verify the MCP server is properly configured:

npm run verify

This will display the sendEmail tool configuration and usage instructions.

As an MCP Server

Run the server:

npm start

The server runs on stdio and exposes the sendEmail tool with the following parameters:

  • to (string): Recipient email address
  • subject (string): Email subject
  • body (string): Email body content

Send Test Email

To send a test email to srisowmyarupaputta@gmail.com:

npm run send-test

This will send an email with:

MCP Tool Schema

{
  "name": "sendEmail",
  "description": "Send an email using nodemailer",
  "inputSchema": {
    "type": "object",
    "properties": {
      "to": {
        "type": "string",
        "description": "Recipient email address"
      },
      "subject": {
        "type": "string",
        "description": "Email subject"
      },
      "body": {
        "type": "string",
        "description": "Email body content"
      }
    },
    "required": ["to", "subject", "body"]
  }
}

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors