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

# Exceptions

> MCP-use exceptions API Documentation

**Source Code**

View the source code for this module on GitHub: [[https://github.com/mcp-use/mcp-use/blob/main/libraries/python/mcp\_use/client/exceptions.py](https://github.com/mcp-use/mcp-use/blob/main/libraries/python/mcp_use/client/exceptions.py)](https://github.com/mcp-use/mcp-use/blob/main/libraries/python/mcp_use/client/exceptions.py)

MCP-use exceptions.

## ConfigurationError

`class` ConfigurationError

Configuration-related errors.

```python theme={null}
from mcp_use.client.exceptions import ConfigurationError
```

> [card]
>
> ### `method` **init**
>
> Initialize self.  See help(type(self)) for accurate signature.
>
> **Parameters**
>
> > **args** *required*
> >
> > Parameter value
> >
> > **kwargs** *required*
> >
> > Parameter value
>
> **Signature**
>
> ```python wrap theme={null}
> def __init__(args, kwargs):
> ```

## ConnectionError

`class` ConnectionError

Connection-related errors.

```python theme={null}
from mcp_use.client.exceptions import ConnectionError
```

> [card]
>
> ### `method` **init**
>
> Initialize self.  See help(type(self)) for accurate signature.
>
> **Parameters**
>
> > **args** *required*
> >
> > Parameter value
> >
> > **kwargs** *required*
> >
> > Parameter value
>
> **Signature**
>
> ```python wrap theme={null}
> def __init__(args, kwargs):
> ```

## MCPError

`class` MCPError

Base exception for MCP-use.

```python theme={null}
from mcp_use.client.exceptions import MCPError
```

> [card]
>
> ### `method` **init**
>
> Initialize self.  See help(type(self)) for accurate signature.
>
> **Parameters**
>
> > **args** *required*
> >
> > Parameter value
> >
> > **kwargs** *required*
> >
> > Parameter value
>
> **Signature**
>
> ```python wrap theme={null}
> def __init__(args, kwargs):
> ```

## OAuthAuthenticationError

`class` OAuthAuthenticationError

OAuth authentication-related errors

```python theme={null}
from mcp_use.client.exceptions import OAuthAuthenticationError
```

> [card]
>
> ### `method` **init**
>
> Initialize self.  See help(type(self)) for accurate signature.
>
> **Parameters**
>
> > **args** *required*
> >
> > Parameter value
> >
> > **kwargs** *required*
> >
> > Parameter value
>
> **Signature**
>
> ```python wrap theme={null}
> def __init__(args, kwargs):
> ```

## OAuthDiscoveryError

`class` OAuthDiscoveryError

OAuth discovery auth metadata error

```python theme={null}
from mcp_use.client.exceptions import OAuthDiscoveryError
```

> [card]
>
> ### `method` **init**
>
> Initialize self.  See help(type(self)) for accurate signature.
>
> **Parameters**
>
> > **args** *required*
> >
> > Parameter value
> >
> > **kwargs** *required*
> >
> > Parameter value
>
> **Signature**
>
> ```python wrap theme={null}
> def __init__(args, kwargs):
> ```


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