README.mdโข1.28 kB
# ๐ DOCX Document Creator (FastMCP-Powered)
Welcome to the **DOCX Document Creator** โ a FastMCP-powered microserver that allows users to generate well-formatted `.docx` documents programmatically with a consistent style guide.
## ๐ Features
- ๐ Create a new DOCX document with Times New Roman styling
- ๐ Add a document title with 22pt bold centered text and underline
- ๐งพ Insert justified paragraphs with 12pt Times New Roman
- ๐งฉ Add section headings (18pt, justified, not bold)
- ๐ Include properly formatted clickable source citations
- ๐ Add footers with copyright and title
- ๐ Save documents to a local `document/` directory
- โ๏ธ Customize margins and view current document status
- ๐ Retrieve a built-in formatting guide
## ๐ Usage
This app runs as a FastMCP tool server. After launching `docsserver.py`, you can use the provided tools programmatically via the FastMCP protocol.
### Example Tool Calls
```python
create_new_document()
add_document_title("Economic Trends Report")
add_section_heading("Introduction")
add_paragraph_text("This report covers market trends observed during Q1 2025...")
add_source_citation("June 2025", "https://example.com/report", "Market Report")
add_document_footer()
save_document("Q1_Report.docx")