Skip to main content
Add Doconda’s remote MCP server to the agent that writes the deliverable, with MCPServerHTTP, and make the link its expected_output. When the task asks for a Word report, the agent calls create_document with format: "docx" and the crew’s result is the download link to the .docx (with its PDF).

Steps

  1. Put your Doconda API key (dashboard → API keys) in DOCONDA_API_KEY, plus the key of the model CrewAI uses.
  2. Install the dependencies: uv add crewai mcp.
  3. Define the agent with the MCP server and a task whose expected_output is the link:
The crew prints the agent’s answer with the .docx link. In a crew with several agents, let the others research and analyse, and give the MCP server only to the agent that writes the deliverable. To run the server on your machine instead of the remote one, use MCPServerStdio(command="npx", args=["-y", "@doconda/mcp"], env={"DOCONDA_API_KEY": key}) from crewai.mcp.

What you get back

create_document returns this summary to the agent:
  • An editable Word file: the look lives in its styles (Normal, Heading 1…) and the layout fits the kind of document (report, contract, letter…).
  • status: ready or failed. Failed documents are not charged.
  • Links expire after 5 minutes. To keep the file, download it by id with the Python SDK: Doconda().documents.download(id, "docx").

FAQ

Yes. The agent uploads it with upload_file, then passes it in source_file_ids to create_document (up to 5 documents). The local server reads files from your disk; the remote one takes a public URL or base64.
Yes. Ask for the style in the task (“dark blue headings, Lora font”), or pass one of your files and ask for “our template’s design”. See How do I apply my brand style?.
A document from a sentence costs €0.15 at fast, €0.50 at standard and €1.50 at best. Failed documents are not charged. See pricing.
  • CrewAI: the full guide.
  • MCP server: local and remote, and how to authenticate.