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

# MCPClientComponent

> MCP client component for Model Context Protocol services. This component provides access to MCP servers for tool calling and context management, enabling integration with external tools and services through the MCP protocol.

## Examples

```typescript theme={"system"}
const mcpComponent = new MCPClientComponent({
sessionConfig: {
serverPath: '/path/to/mcp-server',
serverArgs: ['--config', 'config.json'],
timeout: 30000
}
});
```

## Constructors

* [constructor](#constructor)

## Interfaces

* [MCPClientComponentProps](#mcpclientcomponentprops)

***

## Constructors

### constructor

```typescript theme={"system"}
new MCPClientComponent(props: MCPClientComponentProps): MCPClientComponent
```

Creates a new `MCPClientComponent` instance. The provided camelCase `sessionConfig` is converted to snake\_case when generating the runtime configuration.

#### Parameters

<ParamField body="props" type="MCPClientComponentProps" required>
  Configuration for the MCP client component.
</ParamField>

#### Returns

`MCPClientComponent`

## Interfaces

### MCPClientComponentProps

Configuration options for `MCPClientComponent` creation.

#### Properties

**sessionConfig**: `Config`

MCP session configuration (camelCase allowed).
