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.
Instalēt Aspose.Words Cloud
Jums vajag Python 3.11 vai jaunāku. Instalējiet serveri virtuālajā vidē; pirmais pakotne ir kopīgā failu-rīku bibliotēka, no kuras atkarīgi visi Aspose Cloud MCP serveri.
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
Tas ieliek aspose-words-mcp komandu virtuālajā vidē.
Konfigurējiet Aspose.Words Cloud savā AI klientā
Izveidojiet lietojumprogrammu savā Aspose Cloud informācijas panelī, lai iegūtu Klienta ID un Klienta noslēpumu (pieejama bezmaksas izvērtējuma pakāpe). Serveris tos lasa no savas vides, kad tiek startēts; tie nekad netiek nodoti kā rīka arguments. `ASPOSE_FILES_PATH` ir mape jūsu datorā, no kuras serveris var lasīt failus un rakstīt rezultātus.
{
"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"
}
}
}
}// Tā pati JSON struktūra kā VS Code augstāk — izmantojiet konfigurācijas ceļu savam rīkam: // ~/.cursor/mcp.json · Cline iestatījumi · Windsurf mcp_config.json
Piemēru uzvedņi
- 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.
Pieejami rīki (11)
Katrs rīks, ko šis serveris piedāvā, tieši no savas rīku manifestācijas.
| Rīks | Apraksts | Parametri |
|---|---|---|
words_get_document_bookmarks |
Retrieves the list of bookmarks and their common information from a specified Word document stored in Aspose Cloud. Tikai lasīšanai |
filename: str (nepieciešams), folder_name: str | None, storage_name: str | None
|
| uzvednis: uzskaitīt grāmatzīmes dokumentā contract.docx, izmantojot aspose words cloud mcp | ||
| uzvednis: uzskaitīt grāmatzīmes dokumentā contract.docx no mana MyStorage glabāšanas likumiskās mapes, izmantojot aspose words cloud mcp | ||
words_get_comments |
Retrieves all comments from a specified Word document stored in Aspose Cloud. Tikai lasīšanai |
name: str (nepieciešams), folder: str | None, storage: str | None, load_encoding: str | None
|
| uzvednis: parādīt visus komentārus dokumentā review-draft.docx, izmantojot aspose words cloud mcp | ||
| uzvednis: parādīt visus komentārus dokumentā review-draft.docx no reviews mapes, lasot kā utf-8, izmantojot aspose words cloud mcp | ||
| uzvednis: parādīt visus komentārus dokumentā review-draft.docx mana MyStorage glabāšanā, izmantojot aspose words cloud mcp | ||
words_compare_document |
Compares a source Word document with another document and produces a new file that highlights the differences. Testa režīms |
filename: str (nepieciešams), compare_request: dict[str, Any] (nepieciešams), folder_name: str | None, storage_name: str | None, load_encoding: str | None, destination_filename: str | None, dry_run: bool
|
| uzvednis: salīdzināt contract-v1.docx ar contract-v2.docx un saglabāt izceltās atšķirības kā contract-diff.docx, izmantojot aspose words cloud mcp | ||
| uzvednis: priekšskatīt salīdzinājumu starp draft.docx un final.docx, neko nesaglabājot, izmantojot testa izpildi, izmantojot 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. Tikai lasīšanai |
filename: str (nepieciešams), target_format: str (nepieciešams), folder_name: str | None, storage_name: str | None, output_path: str | None, output_filename: str | None, return_base64: bool
|
| uzvednis: lejupielādēt report.docx no mākoņa glabāšanas kā pdf, izmantojot aspose words cloud mcp | ||
| uzvednis: eksportēt notes.docx kā html un saglabāt kā notes.html exports mapē, izmantojot aspose words cloud mcp | ||
| uzvednis: eksportēt summary.docx no reports mapes kā pdf un atgriezt kā base64 tekstu, nevis saglabāt, izmantojot 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). Tikai lasīšanai |
document_filename: str (nepieciešams), target_format: str (nepieciešams), storage_name: str | None, output_path: str | None, source_filename_hint: str | None, content_base64: str | None, output_filename: str | None, return_base64: bool
|
| uzvednis: konvertēt report.docx uz pdf, izmantojot aspose words cloud mcp | ||
| uzvednis: konvertēt letter.rtf uz docx un saglabāt kā letter.docx converted mapē, izmantojot aspose words cloud mcp | ||
| uzvednis: konvertēt šo base64 saturu, kas ir docx fails ar nosaukumu report.docx, uz pdf un atgriezt rezultātu kā base64, izmantojot aspose words cloud mcp | ||
words_save_document_as |
Save a Cloud-stored Word document in another format via explicit save options Testa režīms |
filename: str (nepieciešams), save_options: dict[str, Any] (nepieciešams), folder_name: str | None, storage_name: str | None, load_encoding: str | None, destination_filename: str | None, fonts_location: str | None, dry_run: bool
|
| uzvednis: saglabāt proposal.docx kā pdf ar nosaukumu proposal-final.pdf, izmantojot aspose words cloud mcp | ||
| uzvednis: veikt testa izpildi, saglabājot brochure.docx kā pdf, izmantojot fontus mapē my-fonts, izmantojot aspose words cloud mcp | ||
| uzvednis: saglabāt legacy.docx no archive mapes kā pdf, lasot kā utf-8, izmantojot aspose words cloud mcp | ||
words_get_document_properties |
Retrieves the full set of document properties from a Word file stored in Aspose Cloud. Tikai lasīšanai |
filename: str (nepieciešams), folder_name: str | None, storage_name: str | None
|
| uzvednis: parādīt dokumenta īpašības report.docx, izmantojot aspose words cloud mcp | ||
| uzvednis: parādīt dokumenta īpašības report.docx no reports mapes mana MyStorage glabāšanā, izmantojot aspose words cloud mcp | ||
words_get_available_fonts |
Retrieves the list of fonts that are available for processing Aspose.Words documents. Tikai lasīšanai |
fonts_location: str | None
|
| uzvednis: uzskaitīt fontus, kas pieejami dokumentu apstrādei, izmantojot aspose words cloud mcp | ||
| uzvednis: uzskaitīt fontus mapē my-fonts, izmantojot 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. Tikai lasīšanai |
filename: str (nepieciešams), folder_name: str | None, storage_name: str | None, include_comments: bool | None, include_footnotes: bool | None, include_text_in_shapes: bool | None
|
| uzvednis: cik lapas, vārdus un rindas ir thesis.docx? izmanto aspose words cloud mcp | ||
| uzvednis: saskaitīt vārdus thesis.docx, ieskaitot komentārus, kājas, kā arī teksta formas, izmantojot 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. Testa režīms |
filename: str (nepieciešams), replace_request: dict[str, Any] (nepieciešams), 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
|
| uzvednis: aizstāt 'Acme Ltd' ar 'Acme Inc' dokumentā proposal.docx un saglabāt kā proposal-v2.docx, izmantojot aspose words cloud mcp | ||
| uzvednis: aizstāt 'draft' ar 'final' handbook.docx kā izsekotu izmaiņu autoram 'Jane Doe' datētām 2026-10-23T09:00:00Z, izmantojot aspose words cloud mcp | ||
| uzvednis: veikt testa izpildi, aizstājot 2025 ar 2026 handbook.docx no hr mapes, lasot kā utf-8, izmantojot 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. Testa režīms |
storage_name: str | None, filename: str | None, folder_name: str | None, dry_run: bool
|
| uzvednis: izveidot jaunu tukšu dokumentu ar nosaukumu meeting-notes.docx, izmantojot aspose words cloud mcp | ||
| uzvednis: izveidot jaunu tukšu dokumentu ar nosaukumu minutes.docx meetings mapē mana MyStorage glabāšanā, izmantojot aspose words cloud mcp | ||
| uzvednis: veikt testa izpildi, izveidojot jaunu dokumentu ar nosaukumu agenda.docx, izmantojot aspose words cloud mcp | ||
Katrs serveris arī ietver četrus kopīgus failu rīkus (augšupielāde, lejupielāde, saraksts un dzēšana), tāpēc viens serveris pietiek pilnīgai augšupielādes, apstrādes un lejupielādes darbplūsmmai.