# Connecting Swarmica to Claude Code / Claude Desktop
# Symptoms

Is it possible to connect Swarmica to Claude Code / Claude Desktop and use Swarmica functions through an AI agent?

# Solution

Yes, Swarmica allows you to connect more than 600 functions via MCP to Claude. Choose below the connection method that suits you.

### Connecting to Claude Desktop

Yes, to connect Swarmica to Claude Code / Claude Desktop, 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. On the workstation where Claude Code / Claude Desktop is installed, create/supplement the file `~/.claude/.mcp.json` with the following content:
```json
{
  "mcpServers": {
    "swarmica": {
     "type": "http",
     "url": "https://your_swarmica_address/mcp",
     "headers": {
       "Authorization": "Token YOUR_API_TOKEN_FROM_THE_PREVIOUS_STEP"
     }
   }
 }
}
```
4. After some time, Claude will load the newly appeared MCP server and Swarmica functions will become available for use.

### Connecting to the web version of Claude

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 [Claude connector connections section](https://claude.ai/customize/connectors).
4. Click **Add connector > Add custom connector**.
5. Set the name (for example, Swarmica).
6. In Remote MCP server URL, specify `https://your_swarmica_address/mcp?token=YOUR_API_TOKEN`.
7. Now this MCP can be used in your work!

Example of working with MCP via Claude Desktop:

::video{src="https://support.swarmica.com/attachments/k/r/kr0lmUZDT7EPjLJ-_a/claude-sonnet-4.6-opt.mov" muted="1" controls="1"}