# Connecting Swarmica to Yandex GPT
## Symptoms

Is it possible to connect Swarmica to Yandex GPT and use Swarmica functions through an AI agent?

## Solution

### Creating an MCP server in Yandex AI Studio

Yes, to connect Swarmica to Yandex GPT, you need to follow these steps:

1. [Set up the Swarmica MCP server](https://support.swarmica.com/article/ru/1664).
2. Create an API key in the **Settings > Integrations > API and Integrations** section.
3. Go to the **MCP servers** section in [Yandex AI Studio](https://aistudio.yandex.ru/) and click **Create MCP server**.
4. Select the type **External MCP server**: <img height="291" width="573" src="https://support.swarmica.com/attachments/8/u/8uEcYKYaoJyKkWvi_a/Screenshot_2026-05-25_at_18.15.16.png" />
5. Set a name, for example, **swarmica-mcp**, the rest of the settings are optional — use them only if necessary: <img height="204" width="571" src="https://support.swarmica.com/attachments/A/x/Ax40qMG3ck0t__EP_a/Screenshot_2026-05-25_at_18.17.24.png" />
6. On the next screen, enter the MCP connection address `https://ваш_адрес_swarmica/mcp` and be sure to specify the type **Streamable HTTP**, and in the header `Authorization` specify `Token ВАШ_АПИ_ТОКЕН`: <img height="278" width="563" src="https://support.swarmica.com/attachments/n/6/n6uUG1LoTBGjWzrt_a/Screenshot_2026-05-25_at_18.47.13.png" />
7. Click **Connect** and select the available tools for use. One tool is one API method. For example, to work with request analysis, you need the methods **api_tickets_list** and **api_ticket_comments_list**. Yandex AI Studio allows you to connect up to 50 tools on one MCP server by default.
8. Done! Now you can use the MCP server in AI agents.

### Creating an AI agent with an MCP server

Let's create an AI agent that will help analyze requests.

1. Go to the **Agents** section in [AI Studio](https://aistudio.yandex.ru/) and create a new Agent.
2. Give it a name, select a model, and also set a system prompt that will help the model understand what role this Agent is used for: <img height="291" width="571" src="https://support.swarmica.com/attachments/o/R/oR1eUvFarV0TPAwn_a/Screenshot_2026-05-25_at_18.57.26.png" />
3. In the **Tools** section, select **swarmica-mcp**, which was created earlier. After that, you can save this agent and work with it via the API or in the AI Studio interface.

Example of working with an AI agent:

::video{src="https://support.swarmica.com/attachments/W/F/WFdXrZvaxNLR_raC_a/yandexgpt-pro.mov" muted="1" controls="1"}