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

# Attentive (MCP)

> Connect AI tools to Attentive via the Model Context Protocol (MCP) to work with campaigns, journeys, segments, and reporting

## 🚀 Quickstart

Connect to the Attentive MCP server with Nango and call MCP tools in minutes. Attentive MCP uses OAuth 2.0 with **dynamic client registration**, so no app registration is required.

**1. Create the integration**

In Nango ([free signup](https://app.nango.dev)), go to **Integrations** → *Configure New Integration* → *Attentive (MCP)*.

**2. Authorize Attentive**

Go to **Connections** → *Add Test Connection* → *Authorize*, then log in to your Attentive account. Later, you'll let your users do the same directly from your app.

**3. Call the Attentive MCP API**

Make your first MCP request (initialize handshake). Replace the placeholders below with your [Environment API key](https://nango.dev/docs/reference/backend/http-api/api-keys.md), integration ID, and connection ID:

**cURL**

```bash theme={null}
curl "https://api.nango.dev/proxy/mcp?readOnly=false" \
  -X POST \
  -H "Authorization: Bearer <NANGO-API-KEY>" \
  -H "Provider-Config-Key: <INTEGRATION-ID>" \
  -H "Connection-Id: <CONNECTION-ID>" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "initialize",
    "params": {
        "protocolVersion": "2024-11-05",
        "capabilities": {},
        "clientInfo": {
            "name": "nango-client",
            "version": "1.0.0"
        }
    }
}'
```

**Node**

Install Nango's backend SDK with `npm i @nangohq/node`. Then run:

```typescript theme={null}
import { Nango } from '@nangohq/node';

const nango = new Nango({ apiKey: '<NANGO-API-KEY>' });

const res = await nango.post({
    endpoint: '/mcp?readOnly=false',
    providerConfigKey: '<INTEGRATION-ID>',
    connectionId: '<CONNECTION-ID>',
    body: {
        jsonrpc: '2.0',
        id: 1,
        method: 'initialize',
        params: {
            protocolVersion: '2024-11-05',
            capabilities: {},
            clientInfo: {
                name: 'nango-client',
                version: '1.0.0'
            }
        }
    }
});

console.log(res.data);
```

✅ You're connected! Check the **Logs** tab in Nango to inspect requests.

**4. Implement Nango in your app**

Follow our [Auth implementation guide](https://nango.dev/docs/guides/auth/auth-guide.md) to integrate Nango in your app.

## 📚 Attentive (MCP) guides

Nango uses **dynamic client registration** with Attentive's MCP OAuth server. You do not need to register an MCP application — just create the integration in Nango and authorize with your Attentive account.

Official resources: [Attentive MCP server](https://docs.attentive.com/docs/mcp)

## API gotchas

* Attentive's MCP server is read-only unless the MCP URL includes `readOnly=false`. Nango adds it for agent sessions, so agents get Attentive's write tools as well. For your own proxy calls, use `/mcp` without the parameter to stay read-only.
* Tools mirror the connected user's Attentive permissions: if the user can't do something in the Attentive UI, the MCP server won't do it either.
* The Attentive MCP server is in beta.

***


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