Word MCP Server
Enables creation and management of Word documents from markdown content, with support for multiple templates and conversion of chat conversations to formatted Word documents.
README
Word MCP Server
A FastAPI-based Word document generation server with full MCP (Model Context Protocol) support.
Features
- REST API for document creation and management
- MCP Protocol Support for integration with MCP-compatible clients
- Markdown Support in documents
- Multiple Templates (standard, report, memo, letter)
- Chat Export functionality to convert conversations to Word documents
- Health Check endpoint for monitoring
API Endpoints
Health Check
GET /health- Service health status
Document Operations
POST /word/create- Create a new Word documentPOST /word/create-from-chat- Create a document from chat messagesGET /word/list- List all documentsGET /word/download/{filename}- Download a documentDELETE /word/delete/{filename}- Delete a document
MCP Protocol
POST /mcp- MCP JSON-RPC 2.0 endpoint
Service Info
GET /- Root endpoint with service informationGET /tools- Get available tools
Deployment
Docker Compose
cd word-mcp-server
docker-compose build
docker-compose up -d
The service will be available at https://word.mac.mndambuki.me.ke via Traefik.
Local Development
pip install -r requirements.txt
python server.py
The server will run on http://localhost:8004
MCP Protocol Support
The server implements the MCP JSON-RPC 2.0 protocol with the following methods:
initialize- Initialize the MCP connectiontools/list- List available toolstools/call- Call a toolresources/list- List available resourcesresources/read- Read a resource
Example Requests
Create a Document (REST)
curl -X POST http://localhost:8004/word/create \
-H "Content-Type: application/json" \
-d '{
"title": "My Document",
"content": "# Heading\n\nThis is a paragraph.",
"author": "John Doe",
"template": "standard"
}'
Create a Document (MCP Protocol)
curl -X POST http://localhost:8004/mcp \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "create_document",
"arguments": {
"title": "My Document",
"content": "# Heading\n\nThis is a paragraph."
}
},
"id": 1
}'
Environment Variables
TZ- Timezone (default: Africa/Nairobi)PORT- Server port (default: 8004)
Requirements
- Python 3.11+
- Docker (for containerized deployment)
- External Traefik network (for Docker Compose)
Configuration
Documents are stored in /app/documents inside the container. In Docker Compose, this can be mounted to a local directory.
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
E2B
Using MCP to run code via e2b.