> ## 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.

# Hugging Face

> Doconda as tools for a smolagents agent.

```bash theme={null}
pip install "smolagents[mcp]" "mcp<2"
```

<Note>Pin `mcp<2`: version 2 of `mcp` is not yet compatible with the smolagents MCP integration.</Note>

```python theme={null}
import os
from smolagents import CodeAgent, InferenceClientModel, MCPClient

doconda = {
    "url": "https://api.eu.doconda.com/mcp",
    "transport": "streamable-http",
    "headers": {"Authorization": f"Bearer {os.environ['DOCONDA_API_KEY']}"},
}

with MCPClient(doconda, structured_output=True) as tools:
    agent = CodeAgent(tools=tools, model=InferenceClientModel())
    agent.run("Create a presentation on climate change for a school")
```

To use it locally:

```python theme={null}
from mcp import StdioServerParameters

doconda = StdioServerParameters(command="npx", args=["-y", "@doconda/mcp"], env={"DOCONDA_API_KEY": os.environ["DOCONDA_API_KEY"], **os.environ})
```


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