Skip to main content

sg-mcp-server

sg-mcp-server lets an AI assistant answer questions about your Autodesk Flow Production Tracking site. Connect it to an MCP (Model Context Protocol) client, ask in plain language, and the assistant looks up your site's live schema and records instead of guessing at entity types, field names, or status values.

The server gives the client three read-only tools over MCP stdio: sg_schema explores entity types and fields, sg_query runs bounded queries, and sg_get opens one record with its web link. Every query is checked against your site's schema first: a misspelled field name returns a list of valid alternatives and is never silently replaced.

This documentation uses SG for Flow Production Tracking, formerly named Shotgun and ShotGrid.

Security model

sg-mcp-server is read-only: it has no tools that create, change, or delete records. Every request runs as one SG script (ApiUser) and sees what that script's permissions allow. The server does not act as the person asking the question, so anyone who can use the MCP client can read anything the script can read. Give the script access only to the data you intend to expose, and keep its key in your client's private configuration.

The server appends every tool call to a local security audit, ~/.sg-mcp-server/audit.jsonl by default. Each entry records the script name, tool, outcome, duration, and returned record IDs, with a hash of the request instead of its contents. If an audit write fails, the server warns on standard error and still answers, so that call is missing from the audit.

An assistant can still misread a result or answer from incomplete data. In the interface study, no tested model answered every task correctly, so check important answers against the records the tools return.

Installation

You need:

  • Python 3.11 or newer and uv.
  • An MCP client that can start a local stdio server.
  • An SG site reachable from this machine, with a script name and API key that can read the data you want to ask about.

From a checkout of this repository, install the command with the official SG client:

uv tool install '.[official]'

The official extra installs shotgun-api3, the Autodesk Python API the server uses to reach your site.

After updating the checkout, update the installed command:

uv tool install --reinstall '.[official]'

make install and make reinstall run the same commands. Run sg-mcp-server --version to check the installed version. If your MCP client cannot find sg-mcp-server, give it the full path in the directory that uv tool dir --bin prints.

Quick start

Add the server to your MCP client

Add a stdio server to your client's MCP configuration. This example uses the common mcpServers JSON shape; place it where your client expects MCP servers:

{
  "mcpServers": {
    "sg": {
      "command": "sg-mcp-server",
      "env": {
        "SG_MCP_SITE_URL": "https://yoursite.shotgunstudio.com",
        "SG_MCP_SCRIPT_NAME": "your-script-name",
        "SG_MCP_API_KEY": "your-script-key"
      }
    }
  }
}

Replace the three values with your site's address, script name, and API key. Use the bare HTTPS site address, such as https://yoursite.shotgunstudio.com. Restart or reconnect the client so that it starts the server; the server runs until the client disconnects.

Ask your first question

Ask the assistant:

Which projects can this script see?

The assistant typically calls sg_schema to confirm the Project entity, then sg_query to list Projects, and answers with project names from your site. A list of names means the server is working. The exact answer depends on your site's records and the script's permissions.

Next, ask "What fields are available on Shot?" to explore your site's schema before asking about site-specific fields. Using the server has more example questions, direct tool-call arguments, and every setting.

What the tools do

Tool Use it for
sg_schema List entity types, describe one entity's fields, or search field names and labels.
sg_query Find records with validated filters, sorting, and a row limit, or request one native summary.
sg_get Fetch one record by entity type and numeric ID, including its web URL.

A query returns at most 50 records unless it asks for a different limit, and never more than 200; you can change both limits. When more records match, the result says so and suggests narrowing the filters or requesting a summary, so the assistant does not mistake one page for every match.

Documentation

If you want to... Read
Find example questions and tool-call arguments Using the server
Change the time zone, limits, timeout, audit path, or schema cache Settings
Fix a request that fails or a server that will not start Troubleshooting
Find out where a slow request spends its time Latency diagnostics
Understand the three-tool design and model reliability Interface study
See changes by version Changelog

Development

See the development guide for the required tools, CI, and dependency locks. With those tools installed, run:

make setup
make check

The checks never contact a live SG site.

License

sg-mcp-server is available under the MIT License. It is an independent project and is not affiliated with or endorsed by Autodesk. Flow Production Tracking is a product of Autodesk, Inc.

Metadata

Release files for sg-mcp-server 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sg-mcp-server 0.2.0
File Size Uploaded Provenance Actions
sg_mcp_server-0.2.0.tar.gz 54.2 kB With provenance Details for sg_mcp_server-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sg-mcp-server 0.2.0
File Interpreter ABI Platform Actions
sg_mcp_server-0.2.0-py3-none-any.whl Python 3 none any Details for sg_mcp_server-0.2.0-py3-none-any.whl

Total release size: 117.0 kB

Release files / sg_mcp_server-0.2.0.tar.gz

Download URL sg_mcp_server-0.2.0.tar.gz
Size 54.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e1385ba4c315891e63a3d5ee4b008f78713f75f416fcf59cf5938a8a3d152452
BLAKE2b-256 checksum
How to use checksums
0e23939d5096b98855ec316a48a9de069df7a8397866a1c40edca36265014e7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

Release files / sg_mcp_server-0.2.0-py3-none-any.whl

Download URL sg_mcp_server-0.2.0-py3-none-any.whl
Size 62.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
904369e497624b7a4e48260b128bc4bc38cff2ba0458f1dfd4d415af846a413a
BLAKE2b-256 checksum
How to use checksums
e2c45ea891bca2cb816372ceb5a16b8f672d631c1d4500e88ab0ef42c0d6cfa8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

Security for sg-mcp-server 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sg_mcp_server-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page