Yowes
A headless MCP server that generates PNG teacher verification documents for 13 countries.
List all supported countries, their display names, and available document types (
list_countries_tool).List real schools for a given country code with name, address, town, postcode, state, phone, and LEA (
list_schools).Generate one or more teacher documents (employment letter, teacher ID, teaching license, payslip, etc.) for a specified country and teacher.
Configure generation with country, first/last name, school name, position, date of birth, gender (Random/Male/Female), document types, and output directory.
Return absolute file paths to generated PNGs, count, and output directory.
Connect via MCP stdio or directly from Python code.
Generates teacher verification documents for Canva Education — employment/confirmation letters, teacher IDs, teaching licenses, payslips and similar records — as high-quality PNG files across 13 countries, using real school data (name, address, town, postcode, phone), per-person consistent portrait photos, and bundled fonts.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Yowes generate a teacher ID for the UK"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Công Cụ Tạo Tài Liệu Canva Education
MCP server chạy ngầm (headless) giúp tạo giấy tờ xác minh giáo viên — thư xác nhận công tác, thẻ giáo viên, giấy phép giảng dạy, phiếu lương và nhiều loại khác — cho 13 quốc gia.
Nhỏ gọn, độc lập, cài đặt ở đâu cũng chạy.
Mục Lục
Related MCP server: mcp_server
Ảnh mẫu
Tài liệu được xuất ra file ảnh PNG chất lượng cao. Ví dụ do công cụ này tạo:
Thẻ giáo viên (Mỹ) | Thư xác nhận công tác (Mỹ) |
|
|
Thẻ giáo viên (Anh) | Thư xác nhận công tác (Anh) |
|
|
Tính năng
MCP server chạy ngầm — tạo tài liệu thông qua tool gọi được từ AI agent qua stdio.
13 quốc gia, mỗi nước có loại giấy tờ và quy cách riêng theo thực tế.
Dữ liệu trường học thật gồm tên trường, địa chỉ, quận/huyện, số điện thoại.
Ảnh chân dung nhất quán theo từng người — chọn ảnh theo hash, phân biệt nam/nữ.
Font chữ đi kèm — dùng DejaVu Sans có sẵn, không phụ thuộc font hệ thống.
Đóng gói gọn nhẹ — xuất ra file wheel tự chứa (code + ảnh + font), cài bằng 1 lệnh.
Các quốc gia hỗ trợ
Mã | Quốc gia | Các loại giấy tờ |
| Anh (United Kingdom) | employment_letter, teacher_id, teaching_license |
| Mỹ (United States) | employment_letter, teacher_id, teaching_license |
| Pháp (France) | installation_statement, iprof_screenshot, bylaws_extract, teaching_certificate |
| Hà Lan (Netherlands) | employment_contract, teacher_registration, duo_declaration, school_id |
| Indonesia | payslip, teaching_experience_letter, nuptk_card, appointment_letter |
| Úc (Australia) | signed_school_letter, school_id, teaching_license |
| Canada | oct_card, teaching_license, signed_school_letter |
| Tây Ban Nha (Spain) | teaching_id, signed_school_letter, employment_contract |
| Argentina | payslip, employment_certificate, signed_school_letter |
| Slovakia | payslip, employment_letter, signed_school_letter |
| Mexico | teaching_id, signed_school_letter, employment_certificate |
| Philippines | teaching_id, employment_certificate, teaching_license |
| Thái Lan (Thailand) | payslip, letter_of_employment |
Yêu cầu
Python 3.10 trở lên
Thư viện tự cài kèm theo:
Pillow,mcp
Cài đặt
Cài từ file wheel build sẵn
pip install dist/yowes_doc_generator-0.1.0-py3-none-any.whlCài từ source (chế độ sửa code trực tiếp)
pip install -e .Cài qua uv
uvx --from . yowes-mcpCách dùng — MCP server
Server giao tiếp qua MCP chuẩn stdio — kiểu kết nối mà hầu hết agent/AI app dùng (Hermes, Claude Desktop và các MCP client khác). Bạn kết nối vào, xem danh sách tool rồi gọi thôi.
Bước 1 — Cài đặt & kiểm tra
# cài từ file wheel
pip install dist/yowes_doc_generator-0.1.0-py3-none-any.whl
# hoặc cài từ source
pip install -e .Kiểm tra cài đặt thành công và tài nguyên đi kèm (font, ảnh) đã nhận:
python -c "from countries.utils import load_font, get_profile_photo; \
print(load_font(30).getname()); print(get_profile_photo((280,340), person_id='x', gender='Male') is not None)"
# ('DejaVu Sans', 'Book') <-- font đi kèm, không phải font hệ thống
# True <-- đã tìm thấy ảnh đi kèmBước 2 — Chạy server
# Sau khi cài:
yowes-mcp
# Hoặc chạy từ source:
python mcp_server.pyLệnh này sẽ đứng chờ request MCP qua stdin/stdout — đừng chạy rồi ngồi đợi nó hiện prompt gì nhé.
Bước 3 — Khai báo vào agent / app của bạn
Trỏ MCP client tới lệnh yowes-mcp:
{
"mcpServers": {
"yowes": {
"command": "yowes-mcp",
"args": []
}
}
}Nếu yowes-mcp không có trong PATH, dùng đường dẫn tuyệt đối tới python và module:
{
"mcpServers": {
"yowes": {
"command": "/path/to/python",
"args": ["-m", "mcp_server"]
}
}
}Danh sách tool
Tool | Mô tả |
| Liệt kê các quốc gia, tên hiển thị và loại giấy tờ của từng nước. |
| Liệt kê toàn bộ trường học của 1 quốc gia theo mã nước. |
| Tạo 1 hoặc nhiều giấy tờ ra file PNG, trả về đường dẫn file. |
list_countries_tool()
Không cần tham số. Trả về mỗi quốc gia 1 mục — { code, name, document_types }. (Vì kiểu trả về list sẽ tách thành nhiều content item, bạn duyệt từng content để xem hết.)
list_schools(country: str)
country(bắt buộc) — mã quốc gia lấy từlist_countries_tool(ví dụ"us").Trả về mỗi trường 1 mục —
{ name, address, town, postcode, state, phone, lea }. Duyệtcontentđể xem hết.
generate_documents(...)
Tham số | Kiểu | Bắt buộc | Mặc định | Mô tả |
| string | ✅ | — | Mã quốc gia (ví dụ |
| string | ✅ | — | Tên của giáo viên. |
| string | ✅ | — | Họ của giáo viên. |
| string | ✅ | — | Tên trường (đúng hoặc gần đúng, sẽ tự khớp với danh sách trường của nước đó). |
| string | ✅ | — | Chức vụ / vị trí giảng dạy. |
| string | ✅ | — | Ngày sinh, in lên thẻ giáo viên (ví dụ |
| string | — |
|
|
| string[] | — | tất cả | Chọn loại giấy tờ muốn tạo, ví dụ |
| string | — |
| Thư mục lưu file PNG (tính từ thư mục chạy server). |
Trả về { country, school, document_types, files, count, output_dir } — files là đường dẫn tuyệt đối tới các file PNG.
Kết nối từ code Python
Code client tối thiểu (cần pip install mcp):
import asyncio
from mcp import ClientSession, StdioServerParameters
from mcp.client.stdio import stdio_client
async def main():
params = StdioServerParameters(command="yowes-mcp", args=[])
async with stdio_client(params) as (read, write):
async with ClientSession(read, write) as session:
await session.initialize()
countries = await session.call_tool("list_countries_tool", {})
# Kết quả list được tách thành nhiều content item:
for item in countries.content:
print(item.text)
res = await session.call_tool("generate_documents", {
"country": "us",
"first_name": "John",
"last_name": "Smith",
"school_name": "Valley High",
"position": "Head of Science Department",
"date_of_birth": "12/05/1988",
"gender": "Male",
})
print(res.content[0].text)
asyncio.run(main())Quy trình mẫu cho agent
Gọi
list_countries_toolđể xem có những nước nào.Gọi
list_schools("us")để chọn trường thật.Gọi
generate_documents(...)với thông tin quốc gia, trường, tên người.Lấy đường dẫn PNG trả về để dùng file.
File PNG tạo ra nằm trong output/ (hoặc thư mục output_dir bạn truyền vào).
Giao diện GUI cũ
Vẫn còn bản giao diện tkinter (CustomTkinter) để dùng tay. Phần lõi sinh tài liệu dùng chung.
python main_gui.py # trên Windows dùng run.bat (đã set sẵn TCL_LIBRARY)MCP server mới là giao diện chính, chạy ngầm. GUI chỉ là tùy chọn, không bắt buộc.
Cấu trúc thư mục
yowes/
├── countries/ # Lõi sinh tài liệu (package)
│ ├── base.py # Class cha CountryGenerator (hợp đồng chung)
│ ├── utils.py # Font, ảnh chân dung, hàm dùng chung
│ ├── foto/ # Ảnh chân dung đi kèm (package data)
│ ├── fonts/ # Font DejaVu đi kèm (package data)
│ └── <country>/ # Mỗi quốc gia 1 package riêng
├── mcp_server.py # MCP server chứa các tool
├── main_gui.py # GUI tkinter bản cũ
├── docs/examples/ # Ảnh tài liệu mẫu đã tạo
├── pyproject.toml # Đóng gói, thư viện, entry point
├── output/ # Tài liệu tạo ra (không commit lên git)
└── run.bat # File chạy GUI trên WindowsThêm quốc gia mới
Tạo
countries/<mã_nước>/__init__.pyvới class kế thừacountries.base.CountryGenerator.Viết các hàm bắt buộc:
get_country_name,get_country_code,get_schools_data,get_first_names,get_last_names,get_positions,get_document_types,generate_document.Đăng ký vào
countries/__init__.pybằngregister_country("<mã_nước>", <Tên>Generator).(Tùy chọn) Thêm tên hiển thị trong
main_gui.py(get_country_list/on_country_change).
Quốc gia mới sẽ tự hiện trong tool MCP list_countries_tool và list_schools.
Người đóng góp
quyen2867 — tác giả & duy trì
Giấy phép
MIT © 2026 quyen2867
Available Tools
3 toolsgenerate_documentsA
Generate teacher verification documents (employment letter, teacher ID, teaching license).
Args: country: Country code from list_countries (e.g. 'us', 'uk'). first_name / last_name: The teacher's name. school_name: Exact or partial school name (matched against that country's school list). position: Teaching position/title. date_of_birth: Display date of birth string (shown on the teacher ID). gender: 'Random', 'Male', or 'Female' — selects which photo pool is used. document_types: Which documents to render. Omit for all. e.g. ['employment_letter', 'teacher_id']. output_dir: Where to save PNGs (relative to project root). Defaults to 'output'.
Returns: Dict with 'files' (absolute paths), 'count', and 'output_dir'.
Inputs: country (required), position (required), last_name (required), first_name (required), +5 more.
list_countries_toolA
List all available countries, their display names, and the document types each can generate.
Inputs: no named parameters. Returns: result
list_schoolsA
List all schools for a given country code (e.g. 'us', 'uk'). Each entry has name/address/town/postcode/state/phone/lea.
Inputs: country (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool targets a distinct step in the workflow: country discovery, school lookup, and document generation. There is no overlap in purpose or input/output that would cause misselection.
Two tools follow verb_noun snake_case, but list_countries_tool adds a redundant '_tool' suffix. This minor deviation is the only inconsistency in an otherwise predictable pattern.
Three tools are exactly sufficient for the service: discover countries, find schools, and generate documents. No tool feels redundant or missing within this minimal workflow.
The surface covers the full generation lifecycle from country/document-type discovery through school lookup to document creation. No obvious gaps prevent an agent from completing the core task.
Related MCP Connectors
KYB for AI agents: verify business registrations from MCP clients.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Manage the AI agents your company employs: workforce review, contracts, bill checks. 46 MCP tools.
CareerProof MCP gives AI agents direct access to a professional-grade career and workforce intelligence platform. Two namespaces: atlas_* for HR/TA teams (candidate evaluation, batch shortlisting, competency scoring, interview generation, JD analysis, custom eval frameworks, research reports) and ceevee_* for professionals (CV optimization, career positioning, salary intelligence, market reports). Backed by RAG knowledge from 50+ premium research sources (McKinsey, BCG, HBR, Gartner, WEF)
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to generate teaching materials such as PPTs, handouts, lecture scripts, mind maps, teaching video storyboards, and Manim math animations, plus run quality checks and language normalization through 15 MCP tools.MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to access document processing tools for extracting text, generating summaries, and identifying skills via MCP.-
- AlicenseAqualityNot gradedmaintenanceEnables generating realistic teacher verification documents such as employment letters, teacher ID cards, teaching licenses, and payslips across 13 countries via MCP.3225MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to retrieve and work with Moscow Electronic School data, including schedules, homework, grades, rankings, school info, meals, passes, olympiads, and portfolio, via authenticated MCP tools.MIT



