Metadata-Version: 2.4
Name: commercial-real-estate-mcp
Version: 1.0.1
Summary: Commercial Real Estate Daily Report MCP Server - Email automation for daily reports
Author: WorkBuddy User
License: MIT
Keywords: commercial-real-estate,email,imap,mcp,smtp
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.8
Provides-Extra: dev
Requires-Dist: pytest; extra == 'dev'
Requires-Dist: pytest-asyncio; extra == 'dev'
Description-Content-Type: text/markdown

# Commercial Real Estate Daily Report MCP Server

A Model Context Protocol (MCP) server for automating commercial real estate daily report generation via email.

## Features

- Search emails from Tencent Enterprise Email (腾讯企业邮箱) via IMAP
- Download Excel attachments from emails
- Extract image URLs from email body
- Download images from CDN
- Send reports via SMTP

## Installation

This package is designed to be run with `uvx`:

```bash
uvx commercial-real-estate-mcp
```

## Environment Variables

| Variable | Description | Default |
|----------|-------------|---------|
| `IMAP_HOST` | IMAP server host | `imap.exmail.qq.com` |
| `IMAP_PORT` | IMAP server port | `993` |
| `IMAP_USER` | IMAP username | `huangjiacheng04@58.com` |
| `IMAP_PASSWORD` | IMAP authorization code | - |
| `SMTP_HOST` | SMTP server host | `smtp.exmail.qq.com` |
| `SMTP_PORT` | SMTP server port | `465` |
| `SMTP_USER` | SMTP username | `huangjiacheng04@58.com` |
| `SMTP_PASSWORD` | SMTP authorization code | - |
| `TARGET_EMAIL` | Target email for reports | `494683211@qq.com` |

## Tools

- `search_emails` - Search emails by keyword
- `download_attachment` - Download attachments from email
- `extract_image_urls` - Extract image URLs from email body
- `download_image` - Download image and return base64
- `send_email` - Send email with attachments
- `generate_daily_report` - Complete daily report workflow

## License

MIT
