The SSE protocol will be deprecated soon. Please use streamable-http as the connectionType moving forward.

Prerequisites

To get the most out of this guide, you’ll need to:

1. Create an Attio MCP Server

Use the following endpoint to create a new remote Attio MCP server instance:

Request

curl --request POST \
  --url https://api.klavis.ai/mcp-server/instance/create \
  --header 'Authorization: Bearer <YOUR_API_KEY>' \
  --header 'Content-Type: application/json' \
  --data '{
  "serverName": "Attio",
  "userId": "<YOUR_USER_ID>",
  "platformName": "<YOUR_PLATFORM_NAME>"
}'

Response

{
  "serverUrl": "https://attio-mcp-server.klavis.ai/sse?instance_id=<instance-id>",
  "instanceId": "<instance-id>"
}
serverUrl specifies the endpoint of the Attio MCP server, which allows you to interact with Attio contacts, deals, and other CRM entities.
instanceId is used to get an authentication token. After you complete the OAuth flow, this token allows the MCP server to access Attio on your behalf.

2. Attio OAuth Flow

To enable your MCP server to access Attio, you need to authenticate with Attio’s OAuth flow.

const authUrl = `https://api.klavis.ai/oauth/attio/authorize?instance_id=${instanceId}`;
window.location.href = authUrl;

Explore MCP Server Tools