resend-mcp-server

resend-mcp-server

Enables Claude to send emails via the Resend API using the send_email tool.

Category
Visit Server

README

Resend MCP Server — Shift Mobilidade

Servidor MCP remoto (HTTPS) que dá ao Claude a ferramenta send_email, enviando pela API do Resend. Use nas automações (ex.: Relatório Diário de Contas a Pagar) para que o envio funcione mesmo com a sua máquina desligada.

O que tem aqui

  • server.js — servidor MCP (Streamable HTTP) com a ferramenta send_email.
  • package.json, Dockerfile, .env.example, .gitignore.

Pré-requisitos no Resend

  1. Domínio verificado: em Resend → Domains, adicione shiftmobilidade.com.br e crie os registros DNS (SPF, DKIM) até ficar Verified.
  2. API key nova com permissão Sending access (rotacione a antiga que foi exposta).
  3. Remetente: ex. automacoes@shiftmobilidade.com.br.

Variáveis de ambiente

Veja .env.example. Em produção, configure no painel do host (não use arquivo .env):

  • RESEND_API_KEY (segredo)
  • SENDER_EMAIL_ADDRESS
  • MCP_AUTH_TOKEN (segredo — protege o endpoint)
  • ALLOWED_RECIPIENT_DOMAINS (opcional, recomendado)

Rodar local (teste)

cd resend-mcp-server
npm install
cp .env.example .env   # preencha os valores
node --env-file=.env server.js
# Servidor em http://localhost:3000  (endpoint MCP: POST /mcp)

Deploy

Render (simples)

  1. Suba esta pasta num repositório Git.
  2. Render → New → Web Service → conecte o repo.
  3. Runtime: Docker (usa o Dockerfile).
  4. Em Environment, adicione as variáveis acima.
  5. Deploy. A URL pública fica tipo https://resend-mcp-shift.onrender.com.

Google Cloud Run

gcloud run deploy resend-mcp \
  --source . \
  --region southamerica-east1 \
  --allow-unauthenticated \
  --set-env-vars SENDER_EMAIL_ADDRESS=automacoes@shiftmobilidade.com.br,ALLOWED_RECIPIENT_DOMAINS=shiftmc.com.br,shiftmobilidade.com.br \
  --set-secrets RESEND_API_KEY=resend-api-key:latest,MCP_AUTH_TOKEN=mcp-auth-token:latest

(crie os secrets no Secret Manager antes).

Railway

New Project → Deploy from repo → adicione as variáveis → Railway expõe uma URL HTTPS.

Adicionar como conector no Claude (Cowork)

  1. Configurações → Conectores → Adicionar conector personalizado.
  2. URL: https://SEU-HOST/mcp
  3. Cabeçalho de autenticação: Authorization: Bearer <MCP_AUTH_TOKEN>
  4. Salvar. A ferramenta send_email fica disponível e a automação passa a enviar pelo Resend.

Teste rápido do endpoint (lista de ferramentas)

curl -s https://SEU-HOST/mcp \
  -H "Authorization: Bearer <MCP_AUTH_TOKEN>" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Deve retornar a ferramenta send_email.

Segurança

  • MCP_AUTH_TOKEN impede que terceiros usem seu endpoint de envio.
  • ALLOWED_RECIPIENT_DOMAINS evita uso indevido para enviar a domínios externos.
  • Guarde RESEND_API_KEY e MCP_AUTH_TOKEN no secret manager do host; nunca em Git.
  • Logue os envios (id do Resend, destinatários, assunto) para auditoria.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured