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
- 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:
MCPServerStdio(command="npx", args=["-y", "@doconda/mcp"], env={"DOCONDA_API_KEY": key}) from crewai.mcp.
What you get back
Thecreate_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_revieworfailed(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
Can the report use data I already have?
Can the report use data I already have?
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.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”.
How much does it cost?
How much does it cost?
You pay per delivered document; failed ones are not charged. See pricing.
Keep reading
- CrewAI: the full guide.
- Quickstart.