Skip to main content

Python Client

The Python client for ShotGrid MCP Server is based on the official MCP Python SDK. This page provides detailed information on how to use the client to interact with your ShotGrid MCP Server.

Installation

First, install the MCP Python SDK:

Basic Usage

Connecting to the Server

Asynchronous API

The client uses Python’s asyncio for all operations:

Working with Tools

Listing Available Tools

Calling Tools

Handling Tool Responses

Working with Resources

Reading Resources

Listing Available Resources

Error Handling

Handling Tool Errors

Handling Connection Errors

Advanced Usage

Custom Session Configuration

Connection Pooling

Streaming Responses

Complete Example

Here’s a complete example that demonstrates many of the client’s features:

Next Steps

Now that you understand how to use the Python client, you can: