Skip to main content
Glama

Email Management MCP Server

by Karopatu
email.ts1 kB
import { SendEmailInputSchema } from "@/types/email"; import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp"; const promptSendEmail = ` You are about to send an email with the following details: Tone: {{tone}} To: {{to}} Subject: {{subject}} Body: {{body}} `; export function registerEmailPrompts(server: McpServer) { server.registerPrompt( "send-email", { title: "Send email", description: "Send an email to a specified recipient with a subject and body content.", argsSchema: SendEmailInputSchema.shape, }, ({ tone, to, subject, body }) => { const prompt = promptSendEmail .replace("{{tone}}", tone) .replace("{{to}}", to) .replace("{{subject}}", subject) .replace("{{body}}", body); return { messages: [ { role: "user", content: { type: "text", text: prompt, }, }, ], }; } ); }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Karopatu/email-management-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server