> ## 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 Active Server Names • AI Agent SDK

> list_active_server_names: Return the set of MCP server names currently registered this run.

# list\_active\_server\_names

Method

> This is a method of the [**MCP**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/MCP.md) class in the [**mcp**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/mcp.md) module.

Return the set of MCP server names currently registered this run.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def list_active_server_names() -> set
```

### Returns

**Returns** `set`

The result of the operation.

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/mcp/mcp.py#L514)
>
> `praisonaiagents/mcp/mcp.py` at line 514


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