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
- Put your Doconda API key (dashboard → API keys) in
DOCONDA_API_KEY, plus the key of the model CrewAI uses. - Install the dependencies:
uv add crewai mcp. - Define the agent with the MCP server and a task whose
expected_outputis the link:
.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:readyorfailed. Failed documents are not charged.- Links expire after 5 minutes. To keep the file, download it by
idwith the Python SDK:Doconda().documents.download(id, "docx").
FAQ
Can the report use data I already have?
Can the report use data I already have?
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.Can I give it my company's style?
Can I give it my company's style?
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?.
How much does it cost?
How much does it cost?
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.Related
- CrewAI: the full guide.
- MCP server: local and remote, and how to authenticate.