Skip to main content
Glama
Attention MCP Server

Attention MCP Server

README.md
# Attention MCP Server

A secure, read-only [MCP](https://modelcontextprotocol.io) server that connects Claude to your [Attention](https://www.attention.tech) conversation intelligence data.

No write, update, delete, or archive operations are exposed.

## Setup

### 1. Get an API Key

1. Go to [app.attention.tech](https://app.attention.tech)
2. Navigate to **Settings** → **API Keys**
3. Click **+ Create API Key** (copy it — shown only once)

### 2. Add to Claude Desktop

Add to your Claude Desktop config:

**macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
**Windows:** `%APPDATA%\Claude\claude_desktop_config.json`

#### Option A: npx (no install needed)

```json
{
  "mcpServers": {
    "attention": {
      "command": "npx",
      "args": ["-y", "attention-mcp-server"],
      "env": {
        "ATTENTION_API_KEY": "your_api_key_here"
      }
    }
  }
}
```

#### Option B: Local clone

```bash
git clone https://github.com/rory-attention/attention-mcp-server.git
cd attention-mcp-server
npm install
```

```json
{
  "mcpServers": {
    "attention": {
      "command": "node",
      "args": ["/full/path/to/attention-mcp-server/index.js"],
      "env": {
        "ATTENTION_API_KEY": "your_api_key_here"
      }
    }
  }
}
```

### 3. Restart Claude Desktop

Close and reopen Claude Desktop. You should see "attention" in the MCP tools list.

## Tools (17 read-only)

| Tool | Description |
|------|-------------|
| `list_conversations` | Search/filter conversations by date, owner, participant, team, opportunity |
| `get_conversation` | Conversation detail with transcript, scorecard, CRM links |
| `ask_attention` | AI-powered natural language query over conversations/deals |
| `get_media_download_url` | Get a presigned download URL for a conversation recording |
| `list_gi_history` | Generalized Insights history |
| `list_teams` | All teams |
| `get_team` | Team details |
| `get_team_members` | Members of a team |
| `list_users` | Users with filtering by email, ID, team |
| `list_emails` | Tracked emails |
| `list_scorecards` | Scorecard templates |
| `get_scorecards_summary` | Scorecard usage statistics |
| `get_usage_report` | Platform usage data |
| `get_connection_report` | Integration status |
| `list_organization_users` | Org-level user list |
| `list_organization_teams` | Org-level team list |
| `list_roles` | Role definitions |
| `list_calendar_events` | Synced calendar events |

## Response Modes

Attention API responses can be very large (~300-700KB per conversation). The server uses an allowlist to keep responses lean:

| Mode | Approach | Includes | Default |
|------|----------|----------|---------|
| `compact` | Allowlist | Essential metadata + transcript (new API fields auto-excluded) | Yes |
| `full` | Blocklist | Everything except internal coaching data | No |

**Compact mode keeps:** `uuid`, `title`, `createdAt`, `finishedAt`, `mediaDuration`, `isInternal`, `userUUID`, `teamUUID`, `dealUUID`, `attendees`, `labels`, `externalOpportunity`, `videoStatus`, `transcript`

Use `includeScorecards: true` to add scorecard results in compact mode.

## Example Prompts

- "Show me my last 10 external conversations"
- "What objections came up in my call with Acme Corp?"
- "Summarize my last sales call"
- "What was my scorecard result for the Qualified demo?"
- "Use Ask Attention to find all mentions of budget constraints across my Q1 calls"

## Security

- Only `GET` requests allowed (plus read-only `POST` for `ask_attention`, `get_media_download_url`, `get_scorecards_summary`)
- Write/delete/update paths are explicitly blocked
- `PUT`, `PATCH`, `DELETE` HTTP methods are blocked
- API key stays server-side — never exposed to Claude
- Runs locally via stdio — no HTTP server, no open ports

## Troubleshooting

| Issue | Fix |
|-------|-----|
| `ATTENTION_API_KEY not set` | Add the env var to your Claude Desktop config |
| `401 Unauthorized` | API key may be expired — generate a new one |
| `429 Too Many Requests` | Rate limited — wait and retry |
| Tools not showing | Restart Claude Desktop; check config JSON syntax |
| Request timeout | API may be slow — the server has a 30s timeout |

## License

MIT