Create and export Word, Excel and PowerPoint from any agent
Connect Claude, ChatGPT, Cursor or your own code to Tunc Doc to create, import and export DOCX, XLSX, PPTX and PDF files.
Updated
Most AI apps can write Markdown in a chat, but turning that work into an editable Word document, an Excel workbook with live formulas and charts, or a PowerPoint slide deck usually means copying text by hand or running local scripts. Tunc Doc gives any connected agent 22 cloud tools to create, read, edit, import and export docs, spreadsheets and slide decks.
1. Connect your AI app over MCP
Connect your assistant to https://mcp.tuncdoc.com/mcp and sign in with your Tunc account in the browser. In Tunc Hub, all 22 tools are built in.
| Client | Steps |
|---|---|
| claude.ai, Claude Desktop and Claude mobile | Customize → Connectors → Add custom connector → name Tunc Doc, URL https://mcp.tuncdoc.com/mcp → Add → Connect. The Free plan allows one custom connector; on Team and Enterprise an Owner adds it under Organization settings → Connectors. This link opens the dialog with the name and URL filled in: |
| Claude Code | Add the server, then run /mcp, choose tunc-doc and Authenticate. |
| ChatGPT | Settings → Apps & Connectors → Advanced → turn on Developer mode → Create → name Tunc Doc, URL https://mcp.tuncdoc.com/mcp, Authentication OAuth → Create → Connect. |
| Cursor | Add it to ~/.cursor/mcp.json, then Settings → MCP: it shows “Needs login” → Login. |
| VS Code (Copilot) | Command Palette → MCP: Add Server → HTTP → https://mcp.tuncdoc.com/mcp → name tunc-doc → allow the sign-in prompt. |
| Gemini CLI | Add it to settings.json, then run /mcp auth tunc-doc. |
| Copilot Studio | Tools → Add a tool → New tool → Model Context Protocol → URL https://mcp.tuncdoc.com/mcp → Authentication OAuth 2.0, Dynamic discovery. |
2. Docs, spreadsheets and slide decks
- Documents (kind "doc"): Markdown up to 1 MiB. Agents create them with doc_create, make exact replacements with doc_edit, or rewrite from a full revision with doc_write.
- Spreadsheets (kind "sheet"): cells, formulas, number formats and charts. Agents read ranges with sheet_read, write values and formulas with sheet_write, and run atomic operations (sort, format, merge, charts) with sheet_ops and sheet_add_chart.
- Slide decks (kind "deck"): slides built from templates or HTML. Agents inspect slides with deck_read, edit boxes with deck_edit, add slides with deck_add_slides, render slide PNGs with deck_render and verify layout with deck_check.
3. Import and export Office files and PDFs
Agents bring in existing Word (DOCX), PowerPoint (PPTX), Excel (XLSX, XLS, ODS, CSV) and Markdown files with doc_import (up to 16 MiB through REST, or about 3 MiB per MCP call). When the work is ready, doc_export turns a doc into DOCX, PDF, Markdown or HTML, a deck into editable PPTX, PDF or PNG slides, and a sheet into XLSX, CSV or PDF. Passing to_art saves the exported file directly to Tunc Art with its own private link.
From your own code, over REST or A2A
Create an API key at https://tunchub.com/account/keys/new and call https://api.tuncdoc.com/v1/docs or https://api.tuncdoc.com/v1/tool:
# Create a doc and get its link
curl -s https://api.tuncdoc.com/v1/docs \
-H "Authorization: Bearer $TUNC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"title":"Q3 plan","markdown":"# Q3 plan\n\nShip the beta."}'
# → {"doc":{"id":…,"code":…,"url":"https://tuncdoc.com/<code>",…},"markdown":…,"revision":…}
# Docs you can open (paged), and one doc as Markdown with the revision to edit from
curl -s "https://api.tuncdoc.com/v1/docs?limit=20" -H "Authorization: Bearer $TUNC_API_KEY"
curl -s https://api.tuncdoc.com/v1/docs/<doc> -H "Authorization: Bearer $TUNC_API_KEY"
# Change part of it: every edit applies, or none does
curl -s https://api.tuncdoc.com/v1/docs/<doc>/edit \
-H "Authorization: Bearer $TUNC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"edits":[{"old":"Ship the beta.","new":"Ship the beta in May."}],"if_revision":"<revision>"}'
# Or send the whole new text from the revision you read; newer changes are kept.
# A revision ending in #… (#partial, #edited, #merged, #stale) works as doc_edit's
# if_revision, but not as a write base: read the whole doc again first.
curl -s https://api.tuncdoc.com/v1/docs/<doc>/write \
-H "Authorization: Bearer $TUNC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"markdown":"# Q3 plan\n\nShipped.","base_revision":"<revision>"}'
# Export as pdf, docx, md or html (the file name is in Content-Disposition),
# or save a copy to Tunc Art and get its link
curl -s "https://api.tuncdoc.com/v1/docs/<doc>/export?format=pdf" -H "Authorization: Bearer $TUNC_API_KEY" -OJ
curl -s https://api.tuncdoc.com/v1/docs/<doc>/art \
-H "Authorization: Bearer $TUNC_API_KEY" \
-H "Content-Type: application/json" -d '{"format":"pdf"}'
# → {"url":"https://tuncart.com/<code>","expires_at":…,"display_name":"Q3 plan.pdf",…}
# The doc as the web page tuncdoc.com shows (HTML, no scripts)
curl -s https://api.tuncdoc.com/v1/docs/<doc>/render -H "Authorization: Bearer $TUNC_API_KEY"
# Bring in a Word, PowerPoint, Markdown or spreadsheet file (up to 16 MiB) as the request body.
# format is docx, pptx, md, xlsx, xls, ods or csv; the answer is the new doc, deck or sheet and its link
curl -s "https://api.tuncdoc.com/v1/docs/import?format=pptx" \
-H "Authorization: Bearer $TUNC_API_KEY" \
--data-binary @deck.pptx
# Any of the 22 tools by name, decks and sheets included: read a sheet's cells
curl -s https://api.tuncdoc.com/v1/tool \
-H "Authorization: Bearer $TUNC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"sheet_read","arguments":{"doc":"<doc>","range":"A1:C5"}}'
# Delete a doc, deck or sheet: its link stops working for everyone
curl -s -X DELETE https://api.tuncdoc.com/v1/docs/<doc> -H "Authorization: Bearer $TUNC_API_KEY"Or call the A2A 1.0 agent:
curl -s https://a2a.tuncdoc.com -H "Authorization: Bearer $TUNC_API_KEY" -H 'A2A-Version: 1.0' \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"SendMessage","params":{"message":{
"messageId":"m-1","role":"ROLE_USER",
"parts":[{"data":{"skill":"doc_list","arguments":{}},"mediaType":"application/json"}]}}}'
# → {"jsonrpc":"2.0","id":1,"result":{"message":{"role":"ROLE_AGENT",
# "parts":[{"data":{…the tool's result…},"mediaType":"application/json"}],…}}}Free: 1 GB of storage shared by Tunc Hub, Tunc Art, Tunc Doc and Tunc Orb.
