Generate Cover MCP
A Model Context Protocol (MCP) server for generating HTML-based covers using CoverMaster2.
Features
- Generate beautiful covers from article data
- Multiple style options (Swiss, Acid, Pop, Shock, etc.)
- Automatic style selection based on content
- Batch processing support
- HTML-based rendering with Playwright
Installation
pip install generate-cover-mcp
Or install from source:
git clone https://github.com/yourusername/generate-cover-mcp
cd generate-cover-mcp
pip install -e .
Prerequisites
You need to install Playwright browsers:
playwright install chromium
Usage
Command Line Interface (推荐)
直接通过命令行生成单个封面:
# 基本用法
generate-cover "AI编程技术分享"
# 指定副标题和分类
generate-cover "AI编程技术分享" --subtitle "技术干货" --categories "技术,AI,编程"
# 指定风格
generate-cover "重要通知" --style shock
# 指定输出文件名和目录
generate-cover "我的文章" --output "my_cover.png" --output-dir "my_covers"
# 列出所有可用风格
generate-cover --list-styles
As MCP Server
Add to your MCP client configuration:
{
"mcpServers": {
"generate-cover": {
"command": "generate-cover-mcp",
"args": []
}
}
}
Available Tools
generate_cover: Generate a single cover from article databatch_generate_covers: Generate multiple covers from a list of articleslist_styles: List available cover styles
Configuration
The server includes a CoverMaster.html template file. You can also specify a custom template path via environment variable:
export COVER_HTML_PATH=/path/to/your/CoverMaster.html
Article Data Format
{
"title": "Your Article Title",
"categories": ["tech", "programming"],
"url": "https://example.com/article?sn=12345678"
}
Available Styles
swiss: 🇨🇭 瑞士国际 - For tech, tools, development contentacid: 💚 故障酸性 - For design, creative, art contentpop: 🎨 波普撞色 - For news, entertainment, trending contentshock: ⚡️ 冲击波 - For warnings, important, urgent contentdiffuse: 🌈 弥散光 - For lifestyle, health, emotional contentsticker: 🍭 贴纸风 - For cute, casual, simple contentjournal: 📝 手账感 - For diary, thoughts, literary contentcinema: 🎬 电影感 - For deep, movie, story contenttech: 🔵 科技蓝 - For technology, data, analysis contentminimal: ⚪️ 极简白 - For minimalist, design, aesthetic contentmemo: 🟡 备忘录 - For notes, lists, practical contentgeek: 🟢 极客黑 - For hacker, geek, programming content
Development
# Install development dependencies
pip install -e ".[dev]"
# Run tests
pytest
# Format code
black src/
isort src/
# Type checking
mypy src/
License
MIT License - see LICENSE file for details.
Metadata
Release files for generate-cover-mcp 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| generate_cover_mcp-0.0.1.tar.gz | 27.5 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| generate_cover_mcp-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 49.5 kB
Release files / generate_cover_mcp-0.0.1.tar.gz
| Download URL | generate_cover_mcp-0.0.1.tar.gz |
|---|---|
| Size | 27.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
637ff399bea70f54d471c64327a4a8a4b8756d37ba95e633737f5c315a0377e8
|
|
BLAKE2b-256 checksum How to use checksums |
56715290eec228bc18f016869a289ab3d657b044008b8bd0058f57386c304401
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 28, 2026.
Transparency logRelease files / generate_cover_mcp-0.0.1-py3-none-any.whl
| Download URL | generate_cover_mcp-0.0.1-py3-none-any.whl |
|---|---|
| Size | 22.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
63c2a783b19c8c9b27d08a1f3d835f690dd368396b23b9827f0e8812914babd1
|
|
BLAKE2b-256 checksum How to use checksums |
f398f770641dbf66cf5345ef0bb683b7d2eca36b4af98ce1eb3db3cde4375f48
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 28, 2026.
Transparency logSecurity for generate-cover-mcp 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for generate_cover_mcp-0.0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.