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

# Get Resources • AI Agent SDK

> get_resources: List resources/resource-templates advertised by the MCP server.

# get\_resources

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**MCP**](../classes/MCP) class in the [**mcp**](../modules/mcp) module.

List resources/resource-templates advertised by the MCP server.

Returns an empty list for transports that do not surface resources or
for tools-only servers.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def get_resources() -> List[dict]
```

### Returns

<ResponseField name="Returns" type="List[dict]">
  Serialised resource and resource-template descriptors.
</ResponseField>

## Uses

* `_res.resources_to_dicts`
* `_res.resource_templates_to_dicts`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/mcp/mcp.py#L912">
  `praisonaiagents/mcp/mcp.py` at line 912
</Card>
