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

# create MCP Client • TypeScript AI Agent SDK

> createMCPClient: API reference for createMCPClient

# createMCPClient

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**mcp**](../modules/mcp) module.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def createMCPClient(config?: MCPClientConfig) -> MCPClient
```

### Returns

<ResponseField name="Returns" type="MCPClient">
  The result of the operation.
</ResponseField>

## Uses

* `MCPClient`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-ts/src/mcp/index.ts#L446">
  `src/mcp/index.ts` at line 446
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="JS MCP Tools" icon="plug" href="/docs/js/mcp-tools" />

  <Card title="JS MCP Tools CLI" icon="terminal" href="/docs/js/mcp-tools-cli" />

  <Card title="JS MCP Security" icon="shield" href="/docs/js/mcp-security" />

  <Card title="JS Resources" icon="folder" href="/docs/js/resources" />

  <Card title="JS CLI" icon="terminal" href="/docs/js/cli" />
</CardGroup>
