> ## Documentation Index
> Fetch the complete documentation index at: https://docs.attocorp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect the MCP to your AI

> Step by step to connect the CRM MCP to Claude Code, Cursor, GitHub Copilot in VS Code, Copilot Studio and n8n, always named CRM - Atto Corp.

This guide shows how to connect the [CRM MCP](https://docs.attocorp.com/en/plataforma/mcp.md) to the AI tool you already use. Once connected, you ask in plain language ("how many leads came in today?") and the AI checks the CRM for you.

## Before you start

In Claude (web or app), you only need the address: the connection is approved on a CRM screen, with no key. See [Claude on the web or app](#claude-on-the-web-or-app).

In the other tools, you need two things:

| What | Where to get it |
| - | - |
| **Server address** | `https://app.attocorp.com/mcp`. For an AI that should only read, use `https://app.attocorp.com/mcp/readonly`. |
| **MCP key** | Generated on the **Servidor MCP** (MCP Server) screen, in **Connections**. It starts with `atto_mcp_`. See [Generate a key](https://docs.attocorp.com/en/plataforma/mcp.md#generate-a-key). |

> [!WARNING]
>
> The key is shown **only once**. Generate one key for each AI tool and never paste the key in a chat, email or screenshot. In the examples below, replace `SUA_CHAVE` with your key.

## Always use the name "CRM - Atto Corp"

Every tool asks for a name for the server or connector. Always use **CRM - Atto Corp**. Where the name does not accept spaces, use **crm-atto-corp**.

That way, months from now, anyone who opens the list of connectors knows right away what it is and does not delete the MCP by mistake.

In the CRM, do the same with the key name: say where it is installed. Examples: "Cursor - Ana's laptop", "n8n - reports", "Copilot Studio - sales agent". Then, in the key's **Conexões** (Connections) tab, you know who is using each one.

## Choose your tool

> [tab] Claude Code
>
> Claude Code is Claude in the terminal. You connect it with one command.
>
> **1. Add the server**
>
> In the terminal, run the command below, with your key in place of `SUA_CHAVE`:
>
> ```bash theme={null}
> claude mcp add --transport http crm-atto-corp https://app.attocorp.com/mcp --header "Authorization: Bearer SUA_CHAVE"
> ```
>
> **2. Check it**
>
> Run `claude mcp list`. **crm-atto-corp** should show as connected. Inside a conversation, the `/mcp` command shows the same.
>
> **3. Test it**
>
> Ask: "Use CRM - Atto Corp and run whoami". The answer shows the key name, permissions and companies.

> [tab] Cursor
>
> **1. Open the MCP settings**
>
> In Cursor, open **Settings** and the **MCP** area. Click to add a server. Cursor opens the `mcp.json` file.
>
> **2. Paste the configuration**
>
> Paste the block below. If the file already has other servers, add only the `crm-atto-corp` part inside `mcpServers`.
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "crm-atto-corp": {
>       "url": "https://app.attocorp.com/mcp",
>       "headers": {
>         "Authorization": "Bearer SUA_CHAVE"
>       }
>     }
>   }
> }
> ```
>
> **3. Check it**
>
> Save the file. In Cursor's list of MCP servers, **crm-atto-corp** should be active, with its tools listed.

> [tab] GitHub Copilot (VS Code)
>
> GitHub Copilot uses MCP in the agent mode of the VS Code chat.
>
> **1. Create the servers file**
>
> In your project folder, create the file `.vscode/mcp.json`. To use it in every project, run the **MCP: Open User Configuration** command from the command palette.
>
> **2. Paste the configuration**
>
> This template asks for the key the first time and stores it safely, without leaving the key written in the file:
>
> ```json theme={null}
> {
>   "inputs": [
>     {
>       "type": "promptString",
>       "id": "chave-atto",
>       "description": "CRM - Atto Corp MCP key",
>       "password": true
>     }
>   ],
>   "servers": {
>     "crm-atto-corp": {
>       "type": "http",
>       "url": "https://app.attocorp.com/mcp",
>       "headers": {
>         "Authorization": "Bearer ${input:chave-atto}"
>       }
>     }
>   }
> }
> ```
>
> **3. Start it and enter the key**
>
> In the file, click **Start** above `crm-atto-corp` and paste your key when VS Code asks for it.
>
> **4. Use it in the chat**
>
> Open the Copilot chat in **Agent** mode. In the tools button, check that the **crm-atto-corp** tools are selected.

> [tab] Copilot Studio
>
> In Microsoft Copilot Studio, the MCP is added as a tool of your agent.
>
> **1. Add the tool**
>
> Open the agent, go to **Tools**, click **Add a tool** and choose **Model Context Protocol**.
>
> **2. Fill in the details**
>
> * **Server name**: CRM - Atto Corp
> * **Description**: Reads and organizes Atto Corp CRM data.
> * **Server URL**: `https://app.attocorp.com/mcp`
>
> **3. Choose the authentication**
>
> For authentication, choose **API key**, type **Header**, with the header name `Authorization`.
>
> **4. Create the connection**
>
> When you create the connection, paste the word `Bearer`, a space and your key in the key field:
>
> ```text theme={null}
> Bearer SUA_CHAVE
> ```
>
> **5. Check it**
>
> In the agent's list of tools, **CRM - Atto Corp** should show up with the CRM tools.
>
> > [!NOTE]
> >
> > Copilot Studio button names can change with Microsoft updates. What matters is: MCP server, the address above, and the key in the `Authorization` header with `Bearer` in front.

> [tab] n8n
>
> **1. Add the node**
>
> In your workflow, add the **MCP Client Tool** node connected to an AI agent node.
>
> **2. Set the address**
>
> In **Endpoint**, paste `https://app.attocorp.com/mcp`. In **Server Transport**, choose **HTTP Streamable**.
>
> **3. Create the credential**
>
> In **Authentication**, choose **Bearer Auth** and create a new credential. Name the credential **CRM - Atto Corp** and paste your key in the token field, without the word Bearer.
>
> **4. Rename the node**
>
> Rename the node to **CRM - Atto Corp**, so whoever opens the workflow later understands what it does.

> [!TIP]
>
> After connecting, in any tool, ask it to run `whoami`. It confirms the key works and shows its companies and permissions.

## Claude on the web or app

In Claude (claude.ai, in the browser or in the app), you connect the CRM without generating or pasting a key. Claude opens a CRM screen and you approve the connection.

**1. Add the connector**

In Claude, open the connectors area and add a **custom connector**. Use the name **CRM - Atto Corp** and the address `https://app.attocorp.com/mcp`. Leave the key and header empty.

**2. Approve in the CRM**

When you connect, Claude opens the **Claude wants to access your Atto CRM account** screen. Sign in with your CRM login if asked. Under **Choose companies**, check the companies and review what the connection unlocks under **This will allow**.

**3. Connect**

Click **Connect**. When **Done! You can go back to Claude.** appears, go back to your conversation in Claude.

**4. Test it**

Ask: "Use CRM - Atto Corp and run whoami". The answer shows the connection's permissions and companies.

The connection is valid for 90 days, arrives with phone, email and CPF masked, and shows up on the **Servidor MCP** (MCP Server) screen with the **Connected by Claude** badge. Only the company owner can allow creating and editing data, under **More options**. A member with the **MCP (AI assistants)** permission connects one company only, always read only. See all the rules in [Connect through Claude, no key to copy](https://docs.attocorp.com/en/plataforma/mcp.md#connect-through-claude-no-key-to-copy).

> [!NOTE]
>
> ChatGPT is not available to connect to the CRM MCP yet. Use Claude or one of the tools above. When it becomes available, this guide will be updated and the news will show up in [Updates and news](https://docs.attocorp.com/en/novidades/changelog.md).

## Disconnect safely

To remove a tool's access:

1. Remove **CRM - Atto Corp** from the tool's list of servers or connectors.
2. In the CRM, revoke that tool's key. See [Revoke a key](https://docs.attocorp.com/en/plataforma/mcp.md#revoke-a-key).

> [!NOTE]
>
> Removing the connector from the tool does not turn the key off. Revoke it in the CRM to make sure nobody else uses the key.

If the connection was made through Claude on the web or app, open the connection with the **Connected by Claude** badge on the **Servidor MCP** (MCP Server) screen and click **Disconnect**. Claude loses access right away.

## Common problems

> [accordion] The tool says it is not authorized or the key is invalid
>
> Check that the whole key was pasted and that the header is `Authorization: Bearer SUA_CHAVE`, with a space after Bearer. Also check on the **Servidor MCP** (MCP Server) screen that the key was not revoked and has not expired.

> [accordion] The AI reads, but cannot create anything
>
> The key needs the **Escrita** (Write) scope, and the address must be `https://app.attocorp.com/mcp`. At the address ending in `/readonly`, the AI only reads.

> [accordion] I no longer know what a connector in my list is
>
> That is why the standard name is **CRM - Atto Corp**. If you find a connector with that name, it is the tool's access to the CRM. Before deleting it, check on the **Servidor MCP** (MCP Server) screen which key it uses, in the key's **Conexões** (Connections) tab.

## Related pages

> [card] [MCP](https://docs.attocorp.com/en/plataforma/mcp.md)
>
> Generate keys, see what the AI can read and write, and track usage.

> [card] [AI Agent](https://docs.attocorp.com/en/ia/agente-ia.md)
>
> Review and activate the prompt drafts proposed by the MCP.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.