Skip to main content
Install crewai and mcp, and add Doconda’s remote MCP server to the agent with MCPServerHTTP. When the task asks for a Word report, the agent calls create_document with format: "docx" and the crew’s result is the Word file’s download link (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:
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 it locally instead of the remote server: MCPServerStdio(command="npx", args=["-y", "@doconda/mcp"], env={"DOCONDA_API_KEY": key}) from crewai.mcp.

What you get back

The create_document tool returns to the agent:
  • An editable Word file: the look lives in its styles (Normal, Heading 1…) and the layout fits the kind of document.
  • status: ready, ready_with_warnings, needs_review or failed (not charged).
  • Links expire after 5 minutes. To keep the file, download it with the id: Doconda().documents.download(id, "docx") (pip install doconda).

FAQ

Yes. With the local server the agent uploads files from your disk with upload_file; with the remote one, by URL or as base64. Then it passes them as sources to create_document.
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”.
You pay per delivered document; failed ones are not charged. See pricing.

Keep reading