Aspose.Words Cloud MCP Server
Convert, create and compare Word documents, replace text, and read bookmarks, comments, properties and statistics, through Aspose.Words Cloud's REST API, from any MCP-compatible AI client.
Instalează Aspose.Words Cloud
Ai nevoie de Python 3.11 sau o versiune ulterioară. Instalează serverul într-un mediu virtual; primul pachet este biblioteca partajată de instrumente de fișiere de care depinde fiecare server MCP Aspose Cloud.
python -m venv .venv source .venv/bin/activate # Windows: .venv\Scripts\activate pip install \ git+https://github.com/aspose-cloud/aspose-storage-cloud-python-mcp.git@v1.0.5 \ git+https://github.com/aspose-cloud/aspose-words-cloud-python-mcp.git@v2.0.1
Aceasta pune comanda aspose-words-mcp în mediul virtual.
Configurează Aspose.Words Cloud în clientul tău AI
Creează o aplicație în tabloul de bord Aspose Cloud pentru a obține un ID de client și un Secret de client (este disponibil un nivel gratuit de evaluare). Serverul le citește din mediul său la pornire; nu sunt niciodată transmise ca argument de instrument. ASPOSE_FILES_PATH este dosarul de pe calculatorul tău din care serverul poate citi fișiere și în care poate scrie rezultatele.
{
"mcpServers": {
"words": {
"command": "C:\\path\\to\\.venv\\Scripts\\aspose-words-mcp.exe",
"env": {
"ASPOSE_CLIENT_ID": "your-client-id",
"ASPOSE_CLIENT_SECRET": "your-client-secret",
"ASPOSE_FILES_PATH": "C:\\Users\\you\\Documents\\aspose-files"
}
}
}
}
// macOS / Linux: "command": "/path/to/.venv/bin/aspose-words-mcp"{
"servers": {
"words": {
"type": "stdio",
"command": "/path/to/.venv/bin/aspose-words-mcp",
"env": {
"ASPOSE_CLIENT_ID": "your-client-id",
"ASPOSE_CLIENT_SECRET": "your-client-secret",
"ASPOSE_FILES_PATH": "/home/you/aspose-files"
}
}
}
}// Same JSON shape as VS Code above — use the config path for your tool: // ~/.cursor/mcp.json · Cline settings · Windsurf mcp_config.json
Exemple de prompturi
- Upload report.docx, convert it to PDF and download the result.
- How many pages and words does contract.docx have?
- In proposal.docx replace every "Acme Ltd" with "Acme Inc" and save the result as proposal-v2.docx.
- List the comments and bookmarks in review-draft.docx.
Instrumente disponibile (11)
Fiecare instrument expus de acest server, direct din manifestul său de instrumente.
| Instrument | Descriere | Parametri |
|---|---|---|
words_get_document_bookmarks |
Retrieves the list of bookmarks and their common information from a specified Word document stored in Aspose Cloud. Numai citire |
filename: str (obligatoriu), folder_name: str | None, storage_name: str | None
|
| prompt: listează semnele de carte din contract.docx folosind aspose words cloud mcp | ||
| prompt: listează semnele de carte din contract.docx din folderul legal al stocării mele MyStorage folosind aspose words cloud mcp | ||
words_get_comments |
Retrieves all comments from a specified Word document stored in Aspose Cloud. Numai citire |
name: str (obligatoriu), folder: str | None, storage: str | None, load_encoding: str | None
|
| prompt: arată toate comentariile din review-draft.docx folosind aspose words cloud mcp | ||
| prompt: arată toate comentariile din review-draft.docx din folderul reviews, citind fișierul ca utf-8, folosind aspose words cloud mcp | ||
| prompt: arată toate comentariile din review-draft.docx din stocarea mea MyStorage folosind aspose words cloud mcp | ||
words_compare_document |
Compares a source Word document with another document and produces a new file that highlights the differences. Execuție de probă |
filename: str (obligatoriu), compare_request: dict[str, Any] (obligatoriu), folder_name: str | None, storage_name: str | None, load_encoding: str | None, destination_filename: str | None, dry_run: bool
|
| prompt: compară contract-v1.docx cu contract-v2.docx și salvează diferențele evidențiate ca contract-diff.docx folosind aspose words cloud mcp | ||
| prompt: previzualizează compararea dintre draft.docx și final.docx, fără a salva nimic, utilizând execuție de probă, folosind aspose words cloud mcp | ||
words_download_document |
Exports a document stored in Aspose Cloud to the specified output format, optionally saving the result to a given path. Numai citire |
filename: str (obligatoriu), target_format: str (obligatoriu), folder_name: str | None, storage_name: str | None, output_path: str | None, output_filename: str | None, return_base64: bool
|
| prompt: descarcă report.docx din stocarea cloud ca pdf folosind aspose words cloud mcp | ||
| prompt: exportă notes.docx ca html și salveaz‑o ca notes.html în folderul exports folosind aspose words cloud mcp | ||
| prompt: exportă summary.docx din folderul reports ca pdf și returneaz‑ă ca text base64 în loc de a-l salva, folosind aspose words cloud mcp | ||
words_convert_to_format |
Converts a supplied document to a specified format and returns the converted file (or saves it to a given storage path). Numai citire |
document_filename: str (obligatoriu), target_format: str (obligatoriu), storage_name: str | None, output_path: str | None, source_filename_hint: str | None, content_base64: str | None, output_filename: str | None, return_base64: bool
|
| prompt: convertește report.docx în pdf folosind aspose words cloud mcp | ||
| prompt: convertește letter.rtf în docx și salveaz‑o ca letter.docx în folderul converted folosind aspose words cloud mcp | ||
| prompt: convertește acest conținut base64, care este un fișier docx numit report.docx, în pdf și returnează rezultatul ca base64 folosind aspose words cloud mcp | ||
words_save_document_as |
Save a Cloud-stored Word document in another format via explicit save options Execuție de probă |
filename: str (obligatoriu), save_options: dict[str, Any] (obligatoriu), folder_name: str | None, storage_name: str | None, load_encoding: str | None, destination_filename: str | None, fonts_location: str | None, dry_run: bool
|
| prompt: salvează proposal.docx ca pdf numit proposal-final.pdf folosind aspose words cloud mcp | ||
| prompt: execută o probă de salvare a brochure.docx ca pdf utilizând fonturile din folderul my-fonts, folosind aspose words cloud mcp | ||
| prompt: salvează legacy.docx din folderul archive ca pdf, citind fișierul ca utf-8, folosind aspose words cloud mcp | ||
words_get_document_properties |
Retrieves the full set of document properties from a Word file stored in Aspose Cloud. Numai citire |
filename: str (obligatoriu), folder_name: str | None, storage_name: str | None
|
| prompt: arată proprietățile documentului report.docx folosind aspose words cloud mcp | ||
| prompt: arată proprietățile documentului report.docx din folderul reports al stocării mele MyStorage folosind aspose words cloud mcp | ||
words_get_available_fonts |
Retrieves the list of fonts that are available for processing Aspose.Words documents. Numai citire |
fonts_location: str | None
|
| prompt: listează fonturile disponibile pentru procesarea documentelor folosind aspose words cloud mcp | ||
| prompt: listează fonturile disponibile în folderul my-fonts folosind aspose words cloud mcp | ||
words_get_document_statistics |
Retrieves statistical information (e.g., word, character, paragraph, and page counts) for a specified Word document stored in Aspose Cloud. Numai citire |
filename: str (obligatoriu), folder_name: str | None, storage_name: str | None, include_comments: bool | None, include_footnotes: bool | None, include_text_in_shapes: bool | None
|
| prompt: câte pagini, cuvinte și paragrafe are thesis.docx? folosește aspose words cloud mcp | ||
| prompt: numără cuvintele din thesis.docx inclusiv comentarii, note de subsol și text în forme, folosind aspose words cloud mcp | ||
words_replace_text |
Replaces all occurrences of a specified text pattern in a Word document stored in Aspose Cloud and optionally saves the modified document under a new name. Execuție de probă |
filename: str (obligatoriu), replace_request: dict[str, Any] (obligatoriu), folder_name: str | None, storage_name: str | None, load_encoding: str | None, destination_filename: str | None, revision_author: str | None, revision_date_time: str | None, dry_run: bool
|
| prompt: înlocuiește 'Acme Ltd' cu 'Acme Inc' în proposal.docx și salvează ca proposal-v2.docx folosind aspose words cloud mcp | ||
| prompt: înlocuiește 'draft' cu 'final' în handbook.docx ca modificare urmărită de autorul 'Jane Doe' cu data 2026-10-23T09:00:00Z folosind aspose words cloud mcp | ||
| prompt: execută o probă de înlocuire a lui 2025 cu 2026 în handbook.docx din folderul hr, citind ca utf-8, folosind aspose words cloud mcp | ||
words_create_document |
Creates a new Word document in Aspose Cloud storage with a filename and format inferred from its extension. Execuție de probă |
storage_name: str | None, filename: str | None, folder_name: str | None, dry_run: bool
|
| prompt: creează un document nou gol numit meeting-notes.docx folosind aspose words cloud mcp | ||
| prompt: creează un document nou gol numit minutes.docx în folderul meetings al stocării mele MyStorage folosind aspose words cloud mcp | ||
| prompt: execută o probă de creare a unui document nou numit agenda.docx folosind aspose words cloud mcp | ||
Fiecare server include, de asemenea, patru instrumente de fișiere partajate (încărcare, descărcare, listare și ștergere), astfel încât un singur server este suficient pentru un flux complet de încărcare, procesare și descărcare.