> For the complete documentation index, see [llms.txt](https://stage-precision.gitbook.io/grid/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://stage-precision.gitbook.io/grid/mcp-connection/overview/mcp-server-connection.md). Agents can also search and read this documentation through its [MCP server](https://stage-precision.gitbook.io/grid/~gitbook/mcp).

# MCP Server Connection

Connect an AI agent to Grid Studio so it can inspect your project, build new objects, and control your system from natural-language prompts.

<figure><img src="https://1411661049-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FObAZADG3A5l3edS4C27L%2Fuploads%2FVYViwFSDQXxYoSekgIn8%2Fimage.png?alt=media&amp;token=5f14a779-bab4-47a8-808a-f85325eae593" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
**Experimental feature.** The MCP Server is an experimental feature of Grid Studio. Do **not** use it on a production system. See [Enabling the MCP Server](https://stage-precision.gitbook.io/grid/mcp-connection/overview/enabling-the-mcp-server.md) for how to turn it on.
{% endhint %}

AI agents are good at reading, explaining and building things, but they can only work with what they can reach. The **Model Context Protocol (MCP)** is an open standard that lets an agent use tools provided by another application. Grid Studio includes an MCP server, so an agent that supports MCP can look inside your project and act on it, instead of you copying information back and forth.

## What You Can Do

Once an agent is connected, you can ask it to:

* Inspect an open project and explain how it is put together
* Create new objects, workflows, widgets and timelines
* Change parameters and update existing parts of a project
* Send actions to connected devices and systems
* Help troubleshoot a workflow by reading its structure

You describe what you want in plain language, and the agent uses Grid Studio's tools to do it.

{% hint style="warning" %}
**The agent has access to everything.** The MCP server has no authentication, and an agent that is connected can read and change anything in the open project. You decide how much freedom the agent gets, and this is controlled on the **agent side**, for example by requiring approval for each action or limiting it to read-only tools. Save a copy of your project before you let an agent change it.
{% endhint %}

## How It Works

Grid Studio's built-in WebServer exposes the MCP server on the same address and port as its other web services. An agent connects to the MCP endpoint and Grid Studio answers its requests.

```
AI agent  ── MCP (Streamable HTTP) ──▶  Grid Studio WebServer  ──▶  Open project
              http://<host>:<port>/api/v1/mcp
```

#### Connection Details

|                      |                                    |
| -------------------- | ---------------------------------- |
| **Endpoint**         | `http://<host>:<port>/api/v1/mcp`  |
| **Default endpoint** | `http://localhost:8088/api/v1/mcp` |
| **Transport**        | Streamable HTTP                    |
| **Authentication**   | None                               |

Grid Studio must be running, with the MCP Server enabled, for any agent to connect.

### How This Section Is Organized

The section follows the order in which you will use it:

* **Enabling the MCP Server** turns the feature on in Grid Studio and explains the network settings.
* **Connecting Claude Desktop**, **Connecting OpenCode** and **Connecting ChatGPT Desktop** are step-by-step guides for the agents we cover in detail. Claude Desktop and OpenCode use ready-made files that we provide.
* **Connecting Other Agents** gives the connection details for other agents that support custom MCP servers.
* **Remote and Cloud Agents** explains how to let an agent on another machine, or a cloud-hosted agent, reach Grid Studio.
* **Connecting to the User Manual** lets your agent look things up in the Grid Studio manual.
* **Working with an Agent** suggests what to try first.
* **Troubleshooting** helps you check the connection and fix common problems.

### Where to Start

1. [Enable the **MCP Server**](https://stage-precision.gitbook.io/grid/mcp-connection/overview/enabling-the-mcp-server.md) in Grid Studio.
2. Choose an agent: install the [**Claude Desktop**](https://stage-precision.gitbook.io/grid/mcp-connection/connecting-ai-agent-with-mcp-server/claude-desktop.md) extension, add the server to [**ChatGPT Desktop**](https://stage-precision.gitbook.io/grid/mcp-connection/connecting-ai-agent-with-mcp-server/chatgpt-desktop.md), set up [**OpenCode**](https://stage-precision.gitbook.io/grid/mcp-connection/connecting-ai-agent-with-mcp-server/opencode.md), or follow the details for [**another agent**](https://stage-precision.gitbook.io/grid/mcp-connection/connecting-ai-agent-with-mcp-server/other-local-agents.md).
3. Connect your agent to the [User Manaual](https://stage-precision.gitbook.io/grid/mcp-connection/connecting-with-user-manual/connecting-to-grid-studio-manual.md) (optional but highly recommended).
4. Check that the agent is connected. See [**Troubleshooting**](https://stage-precision.gitbook.io/grid/mcp-connection/troubleshooting/what-to-check.md).
