Back to Browse

Attio MCP Server

Developer Tools4.6Elevated riskMCP RegistryLocal
Free

Server data from the Official MCP Registry

AI-powered Attio CRM access. Manage contacts, companies, deals, tasks, notes and workflows.

About

AI-powered Attio CRM access. Manage contacts, companies, deals, tasks, notes and workflows.

At a glance

Runs
On your computer, from the npm package attio-mcp, which we verified belongs to this listing.
Works with
Claude Desktop, Claude Code, Grok Build (formerly Cursor), Windsurf, VS Code, Codex, Antigravity CLI, Gemini CLI, ChatGPT.
Can access
  • Connects to services on the internet

Security report

How we score
4.6out of 10Elevated riskMCP Marketplace security score

Critical: Uses an outdated component (handlebars) with a known security hole

The Attio MCP server is a CRM integration that requires an Attio API key or OAuth-issued session tokens, and the Cloudflare Worker enforces bearer validation against KV storage and refuses to proxy raw tokens to Attio. Observed concerns are limited to code-quality items such as a truncated code review scope, a backward-compatibility path accepting unprefixed raw tokens from KV, and the unvalidated broad network and credential access that is expected for a CRM connector. Permissions broadly match the stated purpose, so the score remains in the good range. Supply chain analysis found 17 known vulnerabilities in dependencies (2 critical, 1 high severity). Package verification found 1 issue.

Claude reviewed an earlier version of this code on Dec 5, 2026. The code has changed since then.

6 files analyzed · 22 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Check that this permission is expected for this type of plugin.

database

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

Your Attio API key (required for all tools except health-check)Required

Environment variable: ATTIO_API_KEY

Optional Attio workspace ID for workspace-specific operationsOptional

Environment variable: ATTIO_WORKSPACE_ID

Tool mode: 'full' (all tools) or 'search' (search tools only). Default: 'full'Optional

Environment variable: ATTIO_MCP_TOOL_MODE

Logging level: 'DEBUG', 'INFO', 'WARN', 'ERROR'. Default: 'INFO'Optional

Environment variable: MCP_LOG_LEVEL

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "attio-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "attio-mcp@2.0.1"
      ],
      "env": {
        "ATTIO_API_KEY": "your-attio-api-key-here",
        "MCP_LOG_LEVEL": "your-mcp-log-level-here",
        "ATTIO_WORKSPACE_ID": "your-attio-workspace-id-here",
        "ATTIO_MCP_TOOL_MODE": "your-attio-mcp-tool-mode-here"
      }
    }
  }
}

Some servers take additional arguments. See the repository for details.

Documentation

View on GitHub

From the project's GitHub README.

Attio MCP Server

npm version npm downloads GitHub Release CI MCP Protocol Glama MCP Server Node.js Version License: Apache 2.0

attio-mcp hero banner

Model Context Protocol (MCP) server for Attio. It lets AI agents and scripts read, update, and manage Attio CRM directly without anyone clicking through the web UI.

Install in VS Code

# Claude Code
claude mcp add attio -e ATTIO_API_KEY=your_api_key_here -- npx -y attio-mcp

# Codex CLI
codex mcp add attio --env ATTIO_API_KEY=your_api_key_here -- npx -y attio-mcp

Who this is for

See VISION.md for the full scope and acceptance policy.

attio-mcp-server is built for GTM engineers, RevOps builders, and technical founders running autonomous or high-volume agents (Claude Code, Codex, cron or webhook workers, and internal bots) against Attio.

Attio's hosted MCP (mcp.attio.com) targets interactive browser chat over 1:1 endpoints. This server adds the guardrails automated workflows need:

  • Confirmation-checked writes: records_merge defaults to dry_run: true with plan_fingerprint confirmation and per-object safety rules; records_upsert stops on ambiguous matches; records_batch and records_delete run directly; uncertain writes never auto-retry.
  • Structured output and offline discovery: every tool returns Zod-validated structuredContent alongside a short readable summary, JSON output schemas, MCP safety annotations (readOnlyHint, destructiveHint, idempotentHint), and an optional text opt-out (MCP_TEXT_RESULTS=false). Clients can inspect available tools without calling Attio.
  • Tenant and mode isolation: each request uses its own credentials with no host fallback, ATTIO_MCP_TOOL_MODE=search limits the server to 3 read-only tools (search, fetch, aaa-health-check), notes/comments/transcripts are marked as untrusted data, and HTTP requests enforce exact Origin checks.
  • Same server locally and remotely: runs over local stdio (dist/cli.js), API-key scripts, or self-hosted Cloudflare Workers (/mcp) with OAuth 2.1 and shared pagination cursors across replicas.

Example workflows

  1. Dedupe duplicate people or companies without losing synced activity. A RevOps agent finds two duplicate person records (one from a form, one from email enrichment). Calling records_merge with resource_type: "people" returns a dry-run field plan flagging email_addresses uniqueness and company mismatches, plus a plan_fingerprint. After review, passing dry_run: false, confirm: true, and plan_fingerprint runs Attio's native merge atomically so synced emails and calendar meetings survive.
  2. Idempotent lead enrichment from a webhook or coding agent. An enrichment script calls records_upsert matched on email_addresses or domains. If nothing matches, it creates a record. If one record matches, it updates only changed fields (returning noop when nothing changed). If two match, it stops and returns both candidate IDs.
  3. Deal prep and note updates in one session. Before a renewal call, an agent calls workspace_identity_get to confirm the active workspace, reads record discussions with threads_list and threads_get, opens a copied Attio call link with call_transcripts_get, fetches the full discovery note with notes_get, and updates it in markdown with notes_update.
  4. Paginating large lists on Cloudflare Workers. A GTM bot queries a large prospecting list through a Worker. list_entries_list returns concise summaries with structuredContent, steps down page size on Attio 429 / Retry-After limits, and continues next_cursor across Worker isolates using the shared CURSOR_KEYRING.

Architecture

Local stdio (dist/cli.js) and Cloudflare Worker HTTP (/mcp) share one createServer factory backed by the Attio REST API v2.

flowchart TD
    subgraph Local["Local (stdio)"]
        LC["Claude Code, Codex,<br/>Grok Build, Claude Desktop"] --> STDIO["dist/cli.js<br/>serveStdio"]
    end

    subgraph Remote["Remote (Cloudflare Worker /mcp)"]
        RC["Claude Web / Mobile,<br/>ChatGPT"] --> ORIG["Origin check"] --> OAUTH["@cloudflare/workers-oauth-provider"] --> CK["CURSOR_KEYRING"]
    end

    STDIO --> CORE["Shared createServer factory<br/>MCP 2026-07-28 + legacy<br/>Static zero-CRM discovery<br/>Request-local credentials<br/>Zod-validated structuredContent"]
    CK --> CORE
    CORE --> ATTIO[("Attio REST API v2")]

Tool catalog (v2.1)

Full mode (ATTIO_MCP_TOOL_MODE=full, default) exposes 57 tools grouped by resource. Search mode (ATTIO_MCP_TOOL_MODE=search) exposes 3 read-only tools (search, fetch, aaa-health-check). Run tools/list or call capabilities_get for exact input and output schemas.

GroupCountTools
Records (Universal)18records_search, records_get_details, records_create, records_update, records_upsert, records_delete, records_merge, records_get_attributes, records_discover_attributes, records_get_attribute_options, records_get_info, records_get_interactions, records_search_advanced, records_search_by_relationship, records_search_by_content, records_search_by_timeframe, records_batch, records_batch_search
Scoped Writes4companies_create, companies_update, deals_create, deals_update
Notes4notes_create, notes_list, notes_get, notes_update
Lists & List Entries14lists_list, lists_get, lists_create, lists_update_configuration, list_entries_list, list_entries_filter, list_entries_manage, records_get_list_memberships, list_entries_filter_advanced, list_entries_filter_by_parent, list_entries_filter_by_parent_id, list_entries_add, list_entries_remove, list_entries_update
Meetings & Calls (Beta)5meetings_list, meetings_get, call_recordings_list, call_recordings_get, call_transcripts_get
Threads & Comments3threads_list, threads_get, comments_get
Workspace & Identity4workspace_identity_get, workspace_members_list, workspace_members_search, workspace_members_get
Connector & Diagnostics5search, fetch, capabilities_get, diagnostics_get, aaa-health-check

Capabilities

  • Records and custom objects: CRUD, idempotent records_upsert, batch operations, relationship and timeframe queries, attribute discovery, and option lookup across standard objects (companies, people, deals, tasks, records) and configured custom object slugs.
  • Safe record merge (records_merge): merges duplicate deals, people, and companies through Attio's native POST /v2/objects/{object}/records/merge endpoint. Defaults to dry_run: true; applying the merge requires dry_run: false, confirm: true, and the plan_fingerprint from the dry run, after checking per-object dangerous-fill and linked-mismatch rules. Unsupported object types fail closed.
  • Notes (notes_create, notes_list, notes_get, notes_update): create notes on records, list them with pagination, read full bodies via GET /v2/notes/{note_id} (notes_get, alias get_note_body), and update titles or content in plaintext or markdown via PATCH /v2/notes/{note_id} (notes_update, alias update_note).
  • Threads and comments (threads_list, threads_get, comments_get): read-only lookup of discussion threads on records and list entries, with normalized authors, timestamps, resolution status, parent links, and cursor pagination.
  • Meetings, call recordings, and transcripts: list and inspect Attio meetings (meetings_list, meetings_get), open recordings by ID or copied Attio URL (call_recordings_list, call_recordings_get), and read paginated speaker turns or raw segments (call_transcripts_get).
  • Lists and pipeline entries: create and configure lists with workspace and per-member access controls (lists_create, lists_update_configuration), filter and manage entries (list_entries_list, list_entries_filter, list_entries_manage), and inspect record memberships (records_get_list_memberships). List-heavy reads back off on Attio 429 / Retry-After responses and step down page sizes automatically.
  • Workspace identity (workspace_identity_get): calls GET /v2/self and returns safe metadata for the active workspace (workspace_id, workspace_name, workspace_slug), authorizing member ID (authorized_by_workspace_member_id), token_level, and granted scopes without exposing raw tokens. Team listing is omitted because Attio REST API v2 has no teams endpoint (teams are only exposed through workspace-token SCIM /scim/v2/Groups).

Safe write guardrail flow (records_merge)

flowchart TD
    CALL1["1. records_merge<br/>dry_run: true (default)"] --> OBJ{"Object in<br/>deals, people, companies?"}
    OBJ -- No --> REJECT_OBJ["Fail closed<br/>unsupported object type"]
    OBJ -- Yes --> PLAN["Compute field diff,<br/>dangerous-fill flags,<br/>and plan_fingerprint"]
    PLAN --> CALL2["2. records_merge<br/>dry_run: false, confirm: true,<br/>plan_fingerprint"]
    CALL2 --> REDIFF{"Re-diff matches<br/>plan_fingerprint?"}
    REDIFF -- No --> REJECT_STALE["Fail closed<br/>stale fingerprint"]
    REDIFF -- Yes --> MERGE["POST /v2/objects/{object}/records/merge<br/>atomic native merge"]

Tool naming and migration aliases

The catalog uses resource-first names; search, fetch, and aaa-health-check are unchanged.

Prior v1 names (search_records, create_record, merge_records, get_note_body, update_note, get-lists, manage-list-entry, get-workspace-member, smithery_debug_config) still work as call-only aliases through v2.x. They are omitted from tools/list, take the same arguments, and can be disabled with MCP_DISABLE_TOOL_ALIASES=true. Pre-v2 historical names (search-records, create-record, records_search_batch, etc.) fail immediately. See docs/MIGRATION-GUIDE.md and src/constants/tool-names.ts for the full map.

Protocol support and discovery

The server uses @modelcontextprotocol/server@2.4.0 and @modelcontextprotocol/core@2.3.1 to support MCP 2026-07-28 and legacy 2025-era clients from one createServer factory:

  • Native stdio (dist/cli.js): runs via @modelcontextprotocol/server/stdio (serveStdio) with legacy: 'serve'. Supports server/discover, direct 2026-07-28 requests with io.modelcontextprotocol/ _meta envelopes, resultType: "complete", and cache hints (ttlMs, cacheScope), while keeping legacy initialize clients working without 2026-only fields.
  • Cloudflare Worker HTTP (/mcp, /): routes through @modelcontextprotocol/server's createMcpHandler for stateless 2026-07-28 POST requests (validating MCP-Protocol-Version, Mcp-Method, and Mcp-Name headers) and stateless legacy requests.
  • Static resource discovery (no Attio API calls):
    • resources/list publishes attio://catalog/capabilities, a static JSON catalog of permitted tools, schemas, and URI templates for the active mode. No Attio credentials are needed.
    • resources/templates/list advertises attio://companies/{id}, attio://people/{id}, and attio://lists/{id}.
    • Static discovery and attio://catalog/capabilities return cacheScope: "public" with a 60s TTL on 2026-07-28 connections. Live CRM resource reads (attio://companies/{id}, attio://people/{id}, attio://lists/{id}) check authorization on every read and return cacheScope: "private" with ttlMs: 0.
  • Tool metadata without trial calls: capabilities_get (full mode) and aaa-health-check (full and search modes) return each tool's action, resource types, safety annotations, credential requirement, pagination style and cap, and recovery hints from the same registry tools/list reads.

See docs/mcp-protocol-communication.md and docs/universal-tools/api-reference.md for protocol details.

Installation

Package name: install attio-mcp from npm. The GitHub repository is attio-mcp-server, and the npm package is attio-mcp.

Prerequisites

Client support

ClientLocal Install (Tier 1-2)Cloudflare Worker (Tier 3)
Claude DesktopSupported (recommended)Supported
Claude Web / MobileN/ASupported
ChatGPT (Pro / Plus)N/ASupported (recommended)
Grok BuildSupportedSupported
Claude Code (CLI)Supported (recommended)Partial

Tier 1: shell installers

These scripts configure attio-mcp for your local client, back up existing config files, and prompt for ATTIO_API_KEY.

Claude Desktop:

curl -fsSL https://raw.githubusercontent.com/kesslerio/attio-mcp-server/main/scripts/install-claude-desktop.sh | bash

Grok Build:

curl -fsSL https://raw.githubusercontent.com/kesslerio/attio-mcp-server/main/scripts/install-cursor.sh | bash

Claude Code (CLI):

curl -fsSL https://raw.githubusercontent.com/kesslerio/attio-mcp-server/main/scripts/install-claude-code.sh | bash

Tier 2: manual configuration

Install globally with npm:

npm install -g attio-mcp

Edit your config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "attio-mcp": {
      "command": "attio-mcp",
      "env": {
        "ATTIO_API_KEY": "your_api_key_here"
      }
    }
  }
}

Quit and reopen Claude Desktop after saving.

Add attio-mcp to your Grok Build MCP config (~/.cursor/mcp.json):

{
  "mcpServers": {
    "attio-mcp": {
      "command": "attio-mcp",
      "env": {
        "ATTIO_API_KEY": "your_api_key_here"
      }
    }
  }
}

Restart Grok Build after saving.

echo '{"command":"attio-mcp","env":{"ATTIO_API_KEY":"your_key_here"}}' | claude mcp add-json attio-mcp --stdin -s user

Or add the mcpServers.attio-mcp entry manually to ~/.claude/settings.json.

git clone https://github.com/kesslerio/attio-mcp-server.git
cd attio-mcp-server
bun install
bun run build
ATTIO_API_KEY=your_key node dist/cli.js

Tier 3: Cloudflare Worker (remote deployment)

Deploy a self-hosted remote MCP server on Cloudflare Workers for ChatGPT Developer Mode, Claude.ai web/mobile, and multi-user OAuth access:

  • Shared MCP HTTP handler: routes /mcp and / through @modelcontextprotocol/server's createMcpHandler and createServer, matching local tool, resource, and prompt behavior.
  • OAuth 2.1 (@cloudflare/workers-oauth-provider): handles RFC 8414 discovery, RFC 9728 protected resource metadata, RFC 7591 dynamic client registration (with redirect URI allowlisting), PKCE S256 token exchange, refresh, revocation, and bearer validation, paired with an Attio upstream OAuth adapter.
  • Exact Origin checks: validates Origin on every request (including OPTIONS preflight) against ALLOWED_ORIGINS (defaulting to https://claude.ai, https://www.claude.ai, https://chatgpt.com, and https://chat.openai.com) and returns HTTP 403 for disallowed origins.
  • Shared CURSOR_KEYRING across replicas: uses a deployment-owned JSON keyring secret (HKDF-SHA256 + AEAD) so separate Worker isolates and restarts can continue each other's pagination cursors. A missing or invalid CURSOR_KEYRING returns HTTP 503 on /mcp.
  • Per-request credentials: each request runs with its session's Attio credential in request-local context, with no shared global state between tenants.

Quick deploy:

cd examples/cloudflare-mcp-server
npm install
cp wrangler.toml.example wrangler.toml
wrangler kv:namespace create "TOKEN_STORE"
# Update wrangler.toml with the returned KV namespace ID
wrangler secret put ATTIO_CLIENT_ID
wrangler secret put ATTIO_CLIENT_SECRET
wrangler secret put TOKEN_ENCRYPTION_KEY
wrangler secret put CURSOR_KEYRING
wrangler deploy
wrangler secret put WORKER_URL
wrangler deploy

See examples/cloudflare-mcp-server/README.md for key generation, keyring rotation, Attio redirect URI setup, and offline Worker verification, and docs/chatgpt-developer-mode.md for ChatGPT approval flow setup.

Configuration

Authentication and environment variables

VariableDefaultPurpose
ATTIO_API_KEYunsetAttio API key (takes precedence over ATTIO_ACCESS_TOKEN)
ATTIO_ACCESS_TOKENunsetAttio OAuth access token (see OAuth Guide)
ATTIO_WORKSPACE_IDunsetOptional workspace identifier
ATTIO_MCP_TOOL_MODEfullfull (57 tools) or search (search, fetch, aaa-health-check)
MCP_DISABLE_TOOL_ALIASESfalseSet true to reject prior v1 default-catalog alias names
MCP_TEXT_RESULTStrueSet false to omit companion prose text when structuredContent is returned
ATTIO_DEFAULT_DEAL_STAGEunsetOptional default stage for new deals
ATTIO_DEFAULT_DEAL_OWNERunsetOptional default owner email for new deals
ATTIO_DEFAULT_CURRENCYunsetOptional default currency code for deal values

Before running writes (especially in remote or OAuth deployments), call workspace_identity_get to confirm the active workspace, authorizing member ID, token level, and granted scopes.

Custom field mappings

To map custom workspace attributes or list names, copy configs/runtime/mappings/sample.json to configs/runtime/mappings/user.json and include only your overrides and custom fields (standard fields in default.json are inherited automatically):

cp configs/runtime/mappings/sample.json configs/runtime/mappings/user.json
attio-discover attributes

Claude Skills and pre-built prompts

  • Claude Skills: generate a workspace-specific schema skill with npx attio-discover generate-skill --all --zip to avoid custom field name mismatches. See docs/usage/skills/README.md.
  • MCP Prompts: includes 10 v1 sales workflow prompts (people_search.v1, company_search.v1, deal_search.v1, log_activity.v1, create_task.v1, advance_deal.v1, add_to_list.v1, qualify_lead.v1, meeting_prep.v1, pipeline_health.v1) with dry_run support on write prompts, plus standard CRM prompt templates. See docs/api/prompts-api.md and docs/examples/crm-prompt-examples.md.

Security and supply chain verification

  • No local CRM storage: the server proxies Attio directly, and Cloudflare Worker OAuth tokens are encrypted at rest in Workers KV.
  • npm provenance: releases are published with Sigstore provenance linking each package to its GitHub Actions workflow and source commit:
npm view attio-mcp --json | jq .attestations

See SECURITY.md for vulnerability reporting and security policy details.

Documentation

TopicDocument
Documentation hubdocs/README.md
Tools referencedocs/tools/attio-tools-reference.md
Universal tools API referencedocs/universal-tools/api-reference.md
Migration guide (v2 tool names & legacy removal)docs/MIGRATION-GUIDE.md
MCP protocol communication (2026-07-28 & legacy)docs/mcp-protocol-communication.md
Cloudflare Worker remote deploymentexamples/cloudflare-mcp-server/README.md
ChatGPT Developer Modedocs/chatgpt-developer-mode.md
Getting starteddocs/getting-started.md
Advanced searchdocs/usage/advanced-search.md
OAuth authenticationdocs/guides/oauth-authentication.md
ConfigurationWarning Filters, Field Verification, Search Scoring
Docker and securityDocker Guide, Security Guide
TroubleshootingTROUBLESHOOTING.md

Development

This repository uses Bun for development scripts and testing.

git clone https://github.com/kesslerio/attio-mcp-server.git
cd attio-mcp-server
bun install
bun run build
bun run test:offline

Common commands

bun run typecheck            # Fast TypeScript check
bun run lint:check           # Cached ESLint check
bun run test                 # Unit test suite
bun run test:offline         # Offline suite (no live Attio API calls)
bun run test:integration     # Integration tests (requires ATTIO_API_KEY)
bun run test:e2e             # End-to-end tests (requires ATTIO_API_KEY)
bun run test:mcp             # Live MCP tool tests (requires ATTIO_API_KEY)
bun run test:sdk:worker      # Offline Cloudflare Worker SDK compatibility suite

After building, run the SDK compatibility suite and Worker offline verification suites:

bun run build
bun run test:single test/server/sdk-compatibility.test.ts
bun run test:sdk:worker

See docs/testing.md and CONTRIB.md for testing and contribution guidelines.

License

Licensed under the Apache License 2.0. See LICENSE for details.

Based on initial work by @hmk under the BSD-3-Clause license, with modifications and ongoing development by @kesslerio. The original BSD license notice is preserved in LICENSE.

Reviews

No reviews yet

Be the first to review this server!