> ## Documentation Index
> Fetch the complete documentation index at: https://docs.doconda.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CrewAI

> Doconda as tools for your CrewAI agents.

```bash theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
uv add crewai mcp
```

```python theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
import os
from crewai import Agent, Crew, Task
from crewai.mcp import MCPServerHTTP

key = os.environ["DOCONDA_API_KEY"]

writer = Agent(
    role="Writer",
    goal="Deliver flawless documents",
    backstory="You write clear reports and contracts.",
    mcps=[MCPServerHTTP(url="https://api.eu.doconda.com/mcp", headers={"Authorization": f"Bearer {key}"}, streamable=True)],
)

task = Task(
    description="Prepare a Word report on this quarter's sales and return the link.",
    expected_output="The download link of the Word document.",
    agent=writer,
)

Crew(agents=[writer], tasks=[task]).kickoff()
```

To use it locally instead of the remote one:

```python theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
from crewai.mcp import MCPServerStdio

MCPServerStdio(command="npx", args=["-y", "@doconda/mcp"], env={"DOCONDA_API_KEY": key})
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.