Skip to content

Commit db0c029

Browse files
authored
Merge pull request #473 from ElcanoTek/feature/ses-s3-email-mcp
Add SES S3 Email MCP server for inbox polling
2 parents ac36a05 + f5429f3 commit db0c029

File tree

5 files changed

+514
-1
lines changed

5 files changed

+514
-1
lines changed

configs/crush/crush.template.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,22 @@
124124
"SNOWFLAKE_USER": "${SNOWFLAKE_USER}",
125125
"SNOWFLAKE_PASSWORD": "${SNOWFLAKE_PASSWORD}"
126126
}
127+
},
128+
"email": {
129+
"type": "stdio",
130+
"command": "python3",
131+
"args": ["${EMAIL_MCP_SCRIPT}"],
132+
"cwd": "${EMAIL_MCP_DIR}",
133+
"env": {
134+
"AWS_ACCESS_KEY_ID": "${AWS_ACCESS_KEY_ID}",
135+
"AWS_SECRET_ACCESS_KEY": "${AWS_SECRET_ACCESS_KEY}",
136+
"AWS_REGION": "${AWS_REGION}",
137+
"EMAIL_S3_BUCKET": "${EMAIL_S3_BUCKET}",
138+
"EMAIL_S3_PREFIX": "${EMAIL_S3_PREFIX}",
139+
"EMAIL_ATTACHMENT_DIR": "${EMAIL_ATTACHMENT_DIR}",
140+
"EMAIL_LAST_CHECK_FILE": "${EMAIL_LAST_CHECK_FILE}",
141+
"PYTHONPATH": "${EMAIL_MCP_DIR}"
142+
}
127143
}
128144
}
129145
}

example.env

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,26 @@ SMITHERY_BROWSERBASE_URL="https://server.smithery.ai/@browserbasehq/mcp-browserb
3838
# -------------------------------
3939
SNOWFLAKE_ACCOUNT="your-snowflake-account-here" # e.g. xy12345.us-east-1
4040
SNOWFLAKE_USER="your-snowflake-username-here" # e.g. ELYSE
41-
SNOWFLAKE_PASSWORD="your-pat-token-here" # paste your PAT (API key) here
41+
SNOWFLAKE_PASSWORD="your-pat-token-here" # paste your PAT (API key) here
42+
43+
# -------------------------------
44+
# AWS SES + S3 Email Inbox Configuration
45+
# For receiving emails via AWS SES and storing in S3
46+
# -------------------------------
47+
48+
# AWS Credentials (create an IAM user with S3 read access)
49+
AWS_ACCESS_KEY_ID="your-aws-access-key-id-here"
50+
AWS_SECRET_ACCESS_KEY="your-aws-secret-access-key-here"
51+
AWS_REGION="us-east-2"
52+
53+
# S3 bucket where SES deposits emails
54+
EMAIL_S3_BUCKET="victoria-email-inbox"
55+
56+
# Prefix (folder) within the bucket where emails are stored
57+
EMAIL_S3_PREFIX="emails/"
58+
59+
# Local directory to save downloaded attachments
60+
EMAIL_ATTACHMENT_DIR="${HOME}/Victoria/email_attachments"
61+
62+
# File to track when inbox was last checked
63+
EMAIL_LAST_CHECK_FILE="${HOME}/Victoria/email_last_checked.txt"

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
altair
22
black
3+
boto3
34
duckdb
45
email-validator
56
flake8

0 commit comments

Comments
 (0)