Plain MCP server for AI agents and assistants

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Plain MCP or direct API to read support threads, manage customers and tenants, update broadcasts, and search help-center content through natural language.

Plain MCP logoPlain MCP
Dcr Oauth

Plain MCP is Plain's hosted support platform for threads, customers, tenants, and help-center content. It gives teams a secure, centralized way to manage customer support operations.

80 Tools

Try Plain MCP now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
Plain MCP
Try asking
TOOLS

Supported Tools

Every Plain MCP action and event your agent gets out of the box.

Addgeneratedreply

Add an AI-generated reply suggestion to a thread.

Addlabels

Add labels to a thread by label type IDs.

Archivelabeltype

Archive a label type to hide it from the active label list.

Assignthread

Assign a thread to a user or machine user.

Bulkupsertthreadfields

Bulk upsert (create or update) multiple thread field values in a single operation.

Changethreadpriority

Change the priority of a thread.

Createbroadcast

Create a new broadcast: a message authored once and posted to many Slack channels at once.

Createbroadcastaudience

Create a reusable broadcast audience: a named set of broadcast recipients, resolved to concrete Slack channels at send time rather than when saved.

Createlabeltype

Create a new label type for organizing threads.

Createnote

Create an internal note on a thread.

Createsnippet

Create a new snippet (reusable reply template) in the workspace.

Createthread

Create a new thread for a customer.

Createthreadfieldschema

Create a new thread field schema to capture structured data on threads.

Createthreadlink

Link a thread to an external entity (e.

Createworkspaceslackintegrationfromauth

Connect workspace Slack notifications using a Slack connection the workspace already has.

Deletebroadcast

Soft-delete a broadcast.

Deletebroadcastaudience

Soft-delete a broadcast audience.

Deletethreadfieldschema

Delete a thread field schema from the workspace.

Deletethreadlink

Remove a link between a thread and an external entity.

Getattachmentdownloadurl

Generate a short-lived download URL for an attachment on a thread.

Getbroadcastaudiencedetails

Fetch a single broadcast audience by its ID, or null if no audience with that ID exists.

Getbroadcastaudiences

Fetch a paginated list of the workspace's broadcast audiences, newest first.

Getbroadcastdetails

Fetch a single broadcast by its ID, including its authored content and who it is targeted at.

Getbroadcasts

Fetch a paginated list of the workspace's broadcasts, newest first.

Getbroadcastsenddeliveries

Fetch the individual recipients of one broadcast send — which channel got the message, which did not, and why.

Getbroadcastsends

Fetch the send history of one broadcast, newest first.

Getcustomerdetails

Fetch detailed information about a specific customer by their ID.

Getcustomers

Fetch a paginated list of customers from Plain.

Getcustomerthreads

Fetch first 10 threads for a specific customer.

Gethelpcenterarticle

Fetch detailed information for a specific help-center article by ID.

Gethelpcenterarticlebyslug

Fetch detailed information for a specific help-center article by slug.

Gethelpcenterarticlegroups

Fetch a paginated list of article groups for a specific help center.

Gethelpcenterarticles

Fetch a paginated list of articles for a specific help center.

Gethelpcenters

Fetch a paginated list of help centers.

Getlabels

Fetch a paginated list of label types from Plain.

Getmyassignedthreads

Fetch first 10 threads assigned to a specific user in Plain.

Getmyuser

Get the currently authenticated user's details.

Getmyworkspace

Get the currently authenticated user's workspace details.

Getsidekicksession

Poll a Sidekick session: read its status, its newest messages, and any approval it is blocked on.

Getsnippet

Fetch a single snippet by ID, including soft-deleted snippets (where `isDeleted` is true).

Getsnippets

Fetch a paginated list of snippets from the workspace.

Gettenantdetails

Fetch detailed information about a specific tenant by their ID.

Gettenants

Fetch a paginated list of tenants from Plain.

Getthreaddetails

Fetch complete details for a specific thread including first 50 timeline entries.

Getthreadfieldschemas

Fetch a paginated list of thread field schemas from Plain.

Getthreadknowledgesourcecitations

Fetch the knowledge sources cited by AI agent replies on a thread.

Getthreads

Fetch threads with flexible filtering options.

Getuserbyemail

Look up a Plain user by their email address.

Listsidekicksessions

List Sidekick sessions in the workspace, most recent activity first.

Markcustomerasspam

Flag a customer as spam.

Markthreadasdone

Mark a thread as done (resolved).

Markthreadastodo

Mark a thread as todo (reopen or set as active).

Mergethread

Merge one Plain thread into another (a `MERGED_INTO` native thread link).

Movelabeltype

Move a label type to a different position in the label hierarchy.

Removelabels

Remove labels from a thread by label IDs.

Reorderthreadfieldschemas

Reorder multiple thread field schemas in a single operation.

Replytothread

Reply to the last message in a thread.

Resolvesidekickapproval

Approve or deny a Sidekick tool-call approval request.

Searchbroadcasts

Search broadcasts by name.

Searchcustomers

Search for customers by name, email, short name, or external ID.

Searchtenants

Search for tenants by name or external ID.

Searchthreadlinkcandidates

Search a connected issue tracker for external entities that can be linked to a thread via `createThreadLink`.

Searchthreads

Search threads by text content in title, description, or messages.

Sendsidekickmessage

Send a follow-up message into an existing Sidekick session.

Sendtestbroadcast

Send a test copy of a broadcast to Slack channels you name, so you can see what recipients will get before the real audience does.

Snoozethread

Snooze a thread for a specified duration.

Startsidekicksession

Start a new Sidekick session and return the handle used by every other Sidekick tool.

Unarchivelabeltype

Unarchive a previously archived label type to make it available again.

Unassignthread

Unassign a thread, removing the current assignee.

Unmarkcustomerasspam

Clear the spam flag from a customer, restoring their threads to the inbox and metrics.

Updatebroadcast

Update one or more fields of an existing broadcast.

Updatebroadcastaudience

Update a broadcast audience's name, filters, or both.

Updatelabeltype

Update an existing label type's properties.

Updatethreadfieldschema

Update an existing thread field schema's properties.

Updatethreadtitle

Update the title (subject line) of an existing thread.

Upsertcustomer

Create or update a customer.

Upserthelpcenterarticle

Create or update a help-center article.

Upserttenant

Create or update a tenant.

Upserttenantfield

Create or update a tenant field.

Upsertthreadfield

Upsert (create or update) a thread field value on a thread.

SETUP GUIDE

Connect Plain MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
Install the Composio SDK and your agent framework
2

Create a session with MCP enabled

typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["plain_mcp"],
  mcp: true,
});
Create a session scoped to Plain MCP and read its MCP URL and headers
3

Connect your agent to the MCP server

typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "List the five most recent unresolved support threads for Acme and summarize their status.",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
Pass the session's MCP URL and headers to your agent and run a Plain MCP request
SETUP GUIDE

Connect Plain MCP API Tool with your Agent

1

Install Composio

typescript
npm install @composio/core @composio/openai openai
Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
2

Create a Composio session

typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["plain_mcp"] });
const tools = await session.tools();
Initialize Composio with the OpenAI Responses provider and create a session scoped to Plain MCP
3

Run Plain MCP tools with your agent

typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "List the five most recent unresolved support threads for Acme and summarize their status." }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
Send a request, execute the Plain MCP tool calls through the session, and print the final answer

Why Use Composio?

AI Native Plain MCP Integration

  • Supports Plain's hosted MCP server and direct API-based integrations
  • Structured, LLM-friendly schemas for reliable support and customer operations
  • Rich coverage for reading threads, managing customers, querying tenants, and updating help content

Managed Auth

  • Built-in OAuth handling with automatic token refresh and rotation
  • Central place to manage, scope, and revoke Plain MCP access
  • Per-user and per-environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Plain MCP
  • Scoped, least-privilege access to Plain support threads, customers, tenants, and settings
  • Full audit trail of agent actions to support review and compliance
FRAMEWORKS

Use Plain MCP with any AI Agent Framework

Choose a Framework you want to connect Plain MCP with

Rolling this out across your team?

Give your team centralized access control across every framework with Composio’s MCP Gateway.

EXPLORE MCP GATEWAY
FAQ

Frequently asked questions

Yes, Plain MCP requires you to configure your own DCR OAuth credentials. Once set up, Composio handles secure credential storage and management for you.

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Yes. Composio is SOC 2 Type II compliant and is built to keep your Plain connection and credentials secure. OAuth tokens and API keys are encrypted, and sensitive customer data is protected at rest and in transit.

Composio also undergoes independent security testing and continuously monitors its systems for security threats. You can review the latest reports and policies in the Composio Trust Center.

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

When you connect a Plain account through Composio, every action runs under that account, so anything the agent creates, sends, or changes shows up in Plain as done by you. Keep an approval step in your prompt for actions with side effects, such as sending or deleting, and have the agent draft first.

Whatever the credentials you connect allow inside Plain. If Plain lets you scope a key to specific permissions, create a scoped one so the agent can only do what you intend. You can revoke the key inside Plain at any time.

Yes. Composio supports multiple connected accounts for the same app, and that works in Claude, ChatGPT, or any other assistant you connect through Composio. Give each Plain connection a name such as work or personal, and the assistant uses the one you mention in the request. Each account keeps its own credentials and nothing is merged.

Composio's free Hobby plan includes 100,000 tool calls per month with no credit card, which covers most personal Plain use. Paid plans add higher limits and team features. Your Plain plan and its API limits still apply as usual.

Built-in connectors usually give one AI access to a limited set of apps. Many people use Composio because it lets their AI connect to more apps than it normally supports, or connect to multiple accounts for the same app (e.g. connect Claude to multiple Plain accounts).

With Composio, you connect Plain once and then use it across different AI assistants without setting it up separately in each one. Connect your apps to Composio once, then connect Composio to whichever AI you use, whether that's Claude, ChatGPT, Hermes, or your own custom assistant.

Start with Plain MCP.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Plain MCP tool your agent needs.Free to start.

Start building