Skip to main content

ShotGrid MCP Server Overview

ShotGrid MCP Server is built on the Model Context Protocol (MCP) and provides a standardized way for LLMs to interact with ShotGrid data. This page provides an overview of the server architecture and key components.

Architecture

ShotGrid MCP Server consists of several key components:

Core Components

  1. Server: The main ShotGridMCPServer class that implements the MCP protocol and manages all components.
  2. Connection Pool: Manages connections to the ShotGrid API, providing efficient connection reuse and error handling.
  3. Schema Loader: Loads and caches the ShotGrid schema, which defines entity types, fields, and relationships.
  4. Tool Manager: Registers and manages tools that can be called by MCP clients.
  5. Mockgun Extension: An enhanced version of ShotGrid’s Mockgun for testing without a real ShotGrid instance.

Server Configuration

When creating a ShotGridMCPServer instance, you can configure various aspects of its behavior:

Configuration Options

Lifecycle Hooks

ShotGrid MCP Server provides hooks for running code at different points in the server lifecycle:

Running the Server

To start the server, call the run method:
For more control over the server lifecycle, you can use the async API:

Next Steps

Now that you understand the server architecture, you can: