GenFiles MCP Server
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., "@GenFiles MCP ServerCreate a PowerPoint summary of our latest quarterly sales results."
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.
GenFiles MCP Server
GenFiles is a local-first MCP server for generating PowerPoint, Excel, Word, and Markdown files from agent requests. It runs over streamable-http, stores outputs locally under generated_files/, and returns machine-readable download metadata for every generated file.
For a single-instance private Azure VM deployment, see Azure deployment. The root docker-compose.yml is a local example, not the Azure deployment configuration.
What You Can Do
Generate
PPTX,XLSX,DOCX, andMDfiles through MCP tools.Review existing
DOCXfiles and write targeted comments back into a reviewed copy.Register catalog images over HTTP for remote clients, then reuse their
asset_idvalues inDOCXandPPTXgeneration.Return structured results containing
download_url,file_name,download_markdown, andassistant_response_markdown.
Related MCP server: docforge-mcp
Quick Start
1. Install dependencies
uv sync2. Create .env
Copy the tracked template, then adjust values for your machine. .env is ignored by Git and is the server's local configuration source.
Copy-Item .env.example .env3. Start the MCP server
powershell -ExecutionPolicy Bypass -File .\scripts\start_streamable_http.ps14. Use the default endpoints
MCP: http://127.0.0.1:8016/mcp
Downloads: http://127.0.0.1:8016/downloads/{filename}
Catalog: POST http://127.0.0.1:8016/image-catalog/assets
Search: POST http://127.0.0.1:8016/image-catalog/search
Image GET: http://127.0.0.1:8016/images/{asset_id}
Source extract: POST http://127.0.0.1:8016/source-extract (`.xlsx`, `.docx`, `.pptx`)5. Change configuration
Change values in .env, then restart the server. For example, set a reachable base URL for clients on another machine:
PUBLIC_BASE_URL=http://192.168.1.10:8016Enable structured Word generation instead of Python-script Word generation:
ENABLE_WORD_ELEMENT_FILLING=trueTypical Flow
Start the server.
Connect your MCP client to
http://127.0.0.1:8016/mcp.Call
generate_powerpoint,generate_excel,generate_markdown, or the active Word tool.Download generated files from the returned
download_url.Register remote images with
POST /image-catalog/assetsand pass the returnedasset_idvalues into the document-generation tool.
Environment Variables
server.py loads .env on startup. Values already present in the process environment take precedence, which is useful for container or deployment configuration.
Variable | Description | Example |
| Port where the MCP server listens. |
|
| Directory where generated files are saved. |
|
| Base URL used to build |
|
| Generated document lifetime before cleanup. |
|
| How often the server runs cleanup. |
|
| Permanent image catalog directory. |
|
| SQLite database for catalog metadata. |
|
| Maximum text returned by the source-extraction endpoint. |
|
| Author name used inside Word comments created by |
|
| Enables the structured Word builder instead of code-generation mode. |
|
Source-document extraction
Submit exactly one .xlsx, .docx, or .pptx file as multipart/form-data to POST /source-extract. The response contains bounded plain text: worksheet rows are tab-separated, DOCX paragraphs/tables are labeled, and PPTX slide text/tables are grouped by slide.
Current Image Support
DOCX: Supports real image embedding from local image paths and permanent catalogasset_idvalues. Script mode acceptsimages_listandimage_ids, and structured mode accepts image references inside document elements.PPTX: Supports real image embedding from local image paths and permanent catalogasset_idvalues. The generated script must use the preloadedimagesobjects withadd_picture(...).XLSX: Supports catalogasset_idvalues and local image paths. Images are preloaded for the generation script, which anchors each image to a cell and sets its explicit pixel size while preserving aspect ratio.MD: Does not embed binary images into the file. Markdown content can reference images by path or URL, but there is no dedicated image preload pipeline.
Image Catalog For Remote Clients
Register one image at
POST /image-catalog/assetsusingmultipart/form-datawith the binary field namedimage.Include
purpose,prompt,description,keywords(JSON array),style,aspect_ratio,embedding(JSON number array), andsource(generatedoruser_upload).Images are normalized to JPEG at quality 85, or PNG when transparency is required, with a maximum side length of 1920px.
Exact duplicate binaries return the existing
asset_idinstead of storing another file.Search existing assets with
POST /image-catalog/search, providing an embedding and optional style/aspect-ratio filters.Pass returned
asset_idvalues asimage_idstogenerate_word,generate_powerpoint, orgenerate_excel.images_listremains available for same-machine local paths.
Current Limits
Generated files are saved on the host under
generated_files/and served through/downloads/{filename}.Catalog images stay permanently under
image_library/and are never removed by the cleanup worker.Generated documents are cleaned after 7 days by default. Set
GENERATED_FILE_TTL_SECONDSto adjust this value.If a file is deleted from the host, its
download_urlwill return404.
Additional setup notes live in docs/installation.md, docs/features.md, and docs/codex-plugin-streamable-http.md.
This server cannot be deployed
Maintenance
Related MCP Connectors
Create real Word .docx files from your AI chat: proposals, quotes, contracts, statements of work.
Create real Word .docx files from your AI chat: proposals, quotes, contracts, statements of work.
Create and manage documents, spreadsheets, and presentations from your AI assistant.
Document conversion and OCR for AI agents: PDF, Office docs, images to text.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to extract and analyze text content from various document formats (PDF, DOCX, PPTX, XLSX) in local knowledge bases, and create new formatted Word and Excel documents with structured data and reports.5MIT
- AlicenseBqualityCmaintenanceEnables complete Office document lifecycle management for AI agents, including creation, editing, conversion, and templating of DOCX, XLSX, PPTX, PDF, and EML files.4031 PyPIMIT
- AlicenseNot gradedqualityCmaintenanceEnables AI to open, navigate, and export Markdown documents, and to import/export PPTX files.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to generate editable PPTX presentations and standardized Word simulation reports with format confirmation, asynchronous task processing, semantic revision, and secure file download via MCP.MIT