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

# List MCP Servers • AI Agent SDK

> list_mcp_servers: Return the names of MCP servers currently attached at runtime.

# list\_mcp\_servers

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

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

Return the names of MCP servers currently attached at runtime.

## Signature

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

### Returns

<ResponseField name="Returns" type="List[str]">
  The result of the operation.
</ResponseField>

## Source

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="MCP Concept" icon="server" href="/docs/docs/concepts/mcp" />

  <Card title="MCP Lifecycle" icon="rotate" href="/docs/docs/features/mcp-lifecycle" />
</CardGroup>
