---
title: "Base Tool"
description: "Base Tool API Documentation"
icon: "code"
github: "https://github.com/mcp-use/mcp-use/blob/main/libraries/python/mcp_use/agents/managers/tools/base_tool.py"
---

import {RandomGradientBackground} from "/snippets/gradient.jsx"

<Callout type="info" title="Source Code">
View the source code for this module on GitHub: <a href='https://github.com/mcp-use/mcp-use/blob/main/libraries/python/mcp_use/agents/managers/tools/base_tool.py' target='_blank' rel='noopener noreferrer'>https://github.com/mcp-use/mcp-use/blob/main/libraries/python/mcp_use/agents/managers/tools/base_tool.py</a>
</Callout>

## MCPServerTool

<div>
<RandomGradientBackground className="rounded-lg p-4 w-full h-full rounded-full">
<div className="text-black">
<div className="text-black font-bold text-xl mb-2 mt-8"><code className="!text-black">class</code> MCPServerTool</div>

Base tool for MCP server operations.

</div>
</RandomGradientBackground>
```python
from mcp_use.agents.managers.tools.base_tool import MCPServerTool
```

<Card type="info">
**Attributes**
>
<ParamField body="name" type="ClassVar" required="True" >   Name identifier </ParamField>
<ParamField body="description" type="ClassVar" required="True" >   Parameter value </ParamField>

</Card>

<Card type="info">
### `method` __init__

Initialize with server manager.

**Parameters**
><ParamField body="server_manager" required="True" >   Server name or configuration </ParamField>

**Signature**
```python wrap
def __init__(server_manager):
```

</Card>
<Card type="info">
### `property` server_manager


**Signature**
```python wrap
def server_manager():
```

</Card>

</div>
