Intercom MCP integration for AI agents
Anlyon's Intercom integration gives an AI agent Intercom tools over MCP or through Anlyon's API: it can search contacts and conversations, reply, add notes, assign and close. Each of your users connects their own Intercom account with a key they create in Intercom, and your company's account connects the same way. Your agent calls each action by name and never holds the key.
Let a support agent work the inbox without quietly closing the conversation that mattered. It searches contacts and conversations, replies, adds notes, assigns, snoozes and closes through named operations, and a reply to a customer or a close can wait for a person.
- host
- api.intercom.io
- connect
- API key, per user
Create contact
intercom-create-contact
Update contact
intercom-update-contact
Tag contact
intercom-tag-contact
Untag contact
intercom-untag-contact
What can an AI agent do in Intercom? Writes are off until you switch them on.
Each one is a named operation from the pack. Reads change nothing.
Writes
Create contact
read backintercom-create-contact
Create one contact, as a lead or a user, with an email and a name.
Update contact
read backintercom-update-contact
Update one contact's name, email, phone, external id or custom attributes; only the fields you pass change.
Tag contact
read backintercom-tag-contact
Add one existing tag to a contact.
Untag contact
read backintercom-untag-contact
Remove one tag from a contact.
Attach contact to company
read backintercom-attach-contact-to-company
Attach a contact to one company, by the company's Intercom id.
Detach contact from company
read backintercom-detach-contact-from-company
Detach a contact from one company.
Delete contact
acknowledgedintercom-delete-contact
Permanently delete one contact.
Create conversation
read backintercom-create-conversation
Start a conversation as a message from a contact (a lead or a user), for example to record a request that came in by phone.
Reply to conversation
acknowledgedintercom-reply-to-conversation
Reply to the customer in one conversation, as the admin you name; the customer sees it in the Messenger or by email.
Add conversation note
acknowledgedintercom-add-conversation-note
Add an internal note to one conversation, as the admin you name; only teammates see it.
Assign conversation
read backintercom-assign-conversation
Assign one conversation to a teammate (assignee_id, the admin's id as a number, from list-admins), recorded as the admin you name in admin_id.
Assign conversation to team
read backintercom-assign-conversation-to-team
Assign one conversation to a team (team_id, the team's id as a number, from list-teams), recorded as the admin you name in admin_id.
Snooze conversation
read backintercom-snooze-conversation
Snooze one conversation until a time (snoozed_until, Unix seconds, in the future), as the admin you name; Intercom reopens it at that time.
Close conversation
read backintercom-close-conversation
Close one conversation, as the admin you name.
Reopen conversation
read backintercom-reopen-conversation
Reopen one closed or snoozed conversation, as the admin you name.
Tag conversation
read backintercom-tag-conversation
Add one existing tag to a conversation, as the admin you name.
Reads
Search contacts
intercom-search-contacts
Search contacts with an Intercom query, for example {"field":"email","operator":"=","value":"sam@example.com"}, or {"operator":"AND","value":[...]} to combine filters. Returns up to 15 contacts per page and total_count; pass pages.next.starting_after as starting_after for the next page. Changes nothing. A contact created in the last few minutes may not be found yet.
List contacts
intercom-list-contacts
List the workspace's contacts (users and leads), 15 per page. Pass pages.next.starting_after from the response as starting_after for the next page.
Get contact
intercom-get-contact
Get one contact by its Intercom id: role, email, name, phone, custom attributes, and the first tags, notes and companies with links to the rest.
List tags
intercom-list-tags
List every tag in the workspace (id and name), to find the tag_id that tag-contact and tag-conversation take. Intercom returns all tags in one response; there is no paging.
Search conversations
intercom-search-conversations
Search conversations with an Intercom query, for example {"operator":"AND","value":[{"field":"state","operator":"=","value":"open"},{"field":"admin_assignee_id","operator":"=","value":991267708}]}. Returns up to 10 conversations per page, without their parts, and total_count; pass pages.next.starting_after as starting_after for the next page. Changes nothing.
List conversations
intercom-list-conversations
List the workspace's conversations, 10 per page, without their parts. Pass pages.next.starting_after from the response as starting_after for the next page; use search-conversations to filter by state, assignee or tag.
Get conversation
intercom-get-conversation
Get one conversation with its parts (customer messages, replies, notes, assignments and state changes) as plain text: up to the 500 most recent parts. A very long conversation can exceed the 64 KB the agent receives and is then cut off.
List admins
intercom-list-admins
List the workspace's teammates (admins): id, name, email, away mode and team ids. An admin id is what conversation actions take as admin_id and assign-conversation takes as assignee_id. Returns every admin in one response; there is no paging.
Get admin
intercom-get-admin
Get one teammate (admin) by id: name, email, job title, away mode and the ids of the teams they belong to.
List teams
intercom-list-teams
List the workspace's teams: id, name and the ids of their admins. A team id is what assign-conversation-to-team takes. Returns every team in one response; there is no paging.
List companies
intercom-list-companies
List companies, 20 per page, most recently active first. page starts at 1; pages.total_pages in the response says how many pages there are. Changes nothing (Intercom lists companies with a POST). Companies with no contacts are not listed, and paging stops after 10,000 companies.
Get company
intercom-get-company
Get one company by its Intercom id (not your own company_id): name, plan, size, website, user count, monthly spend, custom attributes, tags and segments.
Search articles
intercom-search-articles
Search Help Center articles for a phrase. Returns up to 10 matching articles with their full bodies, and total_count. Intercom documents no parameter for further pages, so narrow the phrase when total_count is larger; many long articles can exceed the 64 KB the agent receives. Pass state published to see only what customers can see.
Get article
intercom-get-article
Get one Help Center article by id: title, description, body (HTML), state, public URL and translations.
How do users connect? Each one brings their own Intercom.
- 1.Call for the userYour server invokes the action for the signed-in user. Without a Intercom connection, the SDK throws EndUserNotConnectedError with a connect link.
- 2.The user pastes a keyThe link opens a form that shows where in Intercom's settings to create the key. The link lasts 10 minutes and works once.
- 3.Anlyon checks itThe key is checked with Intercom before it is kept, and bound to api.intercom.io. It is never shown back.
- 4.Your server confirmsYour server confirms the connection for the user who is signed in, and the call goes through.
How do I control what an AI agent does in Intercom? Suggested limits and approvals, for you to review.
Suggested limits
- 100 contacts created a day
- 200 contacts updated a day
- 200 contact tags added a day
- 200 contact tags removed a day
- 100 contacts attached to companies a day
- 100 contacts detached from companies a day
- 20 contacts deleted a day
- 50 conversations started a day
- 200 conversation replies a day
- 300 conversation notes a day
- 300 conversations assigned to a teammate a day
- 300 conversations assigned to a team a day
- 200 conversations snoozed a day
- 200 conversations closed a day
- 200 conversations reopened a day
- 300 conversation tags added a day
Suggested approvals
- A person approves deleting a contact
- A person approves replying to a customer
- A person approves closing a conversation
What the key must allow
- An access token from an app you create in your workspace
- A workspace hosted in the US region
Good to know
- A reply or a note is sent once and acknowledged: it cannot be told apart from the rest of the conversation when it is read back.
- Workspaces hosted in the EU or Australia use another host and cannot be connected yet.
For your own account
- 1.In the Intercom Developer Hub, create an app for your workspace.
- 2.Copy its access token from Authentication.
- 3.In Anlyon, open Actions, then Integrations, choose Intercom and paste the token.
- 4.Anlyon checks the token with Intercom before storing it. It becomes a secret named INTERCOM, bound to api.intercom.io.
How do I call Intercom from my agent's code? For one of your users, or for your own account.
Act for one of your users from your server, or connect your company's own Intercom with the CLI.
import { Client, EndUserNotConnectedError } from "@anlyonhq/sdk";const anlyon = new Client({ apiKey: process.env.ANLYON_API_KEY! });try { const { data } = await anlyon .forUser(session.userId) .actions.invoke("intercom-close-conversation", { conversation_id: "1295", admin_id: "991267708" }); return { status: "done", grade: data.grade };} catch (error) { if (error instanceof EndUserNotConnectedError) { // The user connects their own Intercom, then you call again. return { status: "connect_required", url: error.connectUrl }; } throw error;}Questions. Intercom and AI agents.
Connect a Intercom account in Anlyon, switch on the operations the agent may use, and call them from the TypeScript or Python SDK or over MCP. Each of your users connects their own account through a connect link, where they paste a key they create in Intercom. Your agent sees the operations by name and never sees the credential.
Through Anlyon it can search contacts and conversations, reply, add notes, assign and close. Reads change nothing. Writes are off until you switch them on, and every write leaves a receipt.
Yes. Every Intercom action you enable is also an MCP tool on Anlyon's hosted MCP server, at https://api.anlyon.com/mcp. Add that address to Claude Code, Cursor or Codex and sign in. It is Anlyon's own integration, and it calls Intercom's API with the key Anlyon holds.
No. The key stays with Anlyon and is sent only in the request to Intercom's API. No API returns it, to you, to the console or to an agent.
Other integrations. Under the same limits, approvals and receipts.
Available
Stripe
Payments · API key
Refunds under a money ceiling, and every customer, payment and invoice to read.
Available
GitHub
Code · Sign in
Issues, pull requests and code, in the repositories you choose.
Available
HubSpot
CRM · Sign in
Contacts, companies and deals: search them and change them.
- Anlyon app
- Available
- Your own app
- Recommended for production
