# Plain MCP MCP Server

> **Plain MCP MCP Server** is a hosted, multitenant Model Context Protocol (MCP) server run by **MewCP** (https://mewcp.com), giving AI agents managed access to Plain MCP.
>
> MewCP takes care of all MCP infrastructure for you — credential storage, OAuth flows,
> token refresh, and production-grade auto-scaling — so your AI agents can connect to
> third-party services and run freely without you managing any MCP server yourself.
>
> Server page:  https://mewcp.com/mcp/plain-mcp
> MewCP docs:   https://docs.mewcp.com
> Full catalog: https://mewcp.com/llms.txt

---

## About

Plain MCP Server lets AI agents manage customer support in Plain, including searching and updating customer conversations, creating and managing tickets, and accessing customer and issue context.

---

## Details

- Server ID: `plain-mcp`
- Version: 1.0.0
- Tools: 81
- Authentication: OAuth, managed by MewCP
- Transport: http

---

## Access

The gateway URL below serves your **entire MewCP toolset**, not this server on its
own. Pasting a config snippet is not enough — Plain MCP has to be in the toolset
first. In order:

1. Add Plain MCP to your toolset at https://mewcp.com/mcp/plain-mcp
2. Connect your Plain MCP account (OAuth); MewCP stores the credential and attaches it to each call
3. Copy your MewCP API key from the dashboard (Developer)
4. Configure your client with the snippet for it below

Once connected, an agent does **not** see this server's tools as top-level tools.
It sees four meta-tools and reaches everything through them:

- `search(query)` — find tools by keyword across the toolset
- `get_schema(tools)` — full description and arguments for the tools you picked
- `list_accounts(provider)` — only when one app has several connected accounts
- `call_tool(server_maskedId, tool_name, args)` — execute

So the list below is what `search` can return for this server, not a set of
callable tool names on their own.

---

## Tools (81)

Descriptions are truncated to 160 characters; call `get_schema`
for the full text and the argument schema. Where a tool is annotated, its type
is shown — treat `destructive` as irreversible.

- `upsertTenantField` _(destructive)_ — Create or update a tenant field. To create or update: provide tenantFieldIdentifier (identifying the tenant plus externalFieldId), type, and the appropriate…
- `changeThreadPriority` _(destructive)_ — Change the priority of a thread. Priority is an integer: 0 = urgent, 1 = high, 2 = normal, 3 = low.
- `getUserByEmail` _(read)_ — Look up a Plain user by their email address. Returns user details including ID, name, role, and status.
- `getHelpCenterArticleBySlug` _(read)_ — Fetch detailed information for a specific help-center article by slug. Help-center article URL format (Plain dashboard):…
- `upsertThreadField` _(destructive)_ — Upsert (create or update) a thread field value on a thread. Provide the thread ID, field key, field type, and the value. Use this to set custom field data on…
- `upsertHelpCenterArticle` _(destructive)_ — Create or update a help-center article. To create: provide helpCenterId, title, contentHtml, and status. To update: provide helpCenterArticleId with any fields…
- `getThreadDetails` _(read)_ — Fetch complete details for a specific thread including first 50 timeline entries. Timeline entries include notes, chats, emails, status changes, assignments,…
- `updateLabelType` _(destructive)_ — Update an existing label type's properties. Use this to modify label type name, icon, color, description, external ID, or AI exclusion settings.
- `createThreadFieldSchema` _(destructive)_ — Create a new thread field schema to capture structured data on threads. Thread field schemas define custom fields that can be added to threads (e.g., priority…
- `unassignThread` _(destructive)_ — Unassign a thread, removing the current assignee.
- `getHelpCenters` _(read)_ — Fetch a paginated list of help centers. Use the `cursor` variable with the endCursor from the previous response's pageInfo to fetch the next page. The cursor…
- `removeLabels` _(destructive)_ — Remove labels from a thread by label IDs. Labels are used to categorize and organize threads.
- `getCustomerThreads` _(read)_ — Fetch first 10 threads for a specific customer. Use this to see a customer's full support history. Optionally filter by status or sort by different criteria.…
- `addGeneratedReply` _(destructive)_ — Add an AI-generated reply suggestion to a thread. Required fields: - threadId: The ID of the thread to add the generated reply to. - timelineEntryId: The ID of…
- `deleteThreadLink` _(destructive)_ — Remove a link between a thread and an external entity. Pass the `threadLinkId` of the link to delete (the `id` returned by `createThreadLink` or listed under a…
- `reorderThreadFieldSchemas` _(destructive)_ — Reorder multiple thread field schemas in a single operation. Provide a list of thread field schema IDs with their new order values. This is useful for…
- `createBroadcast` _(destructive)_ — Create a new broadcast: a message authored once and posted to many Slack channels at once. Creating one never sends it — a new broadcast is a DRAFT, and…
- `unmarkCustomerAsSpam` _(destructive)_ — Clear the spam flag from a customer, restoring their threads to the inbox and metrics. The `markedAsSpamAt` timestamp is cleared. Pass the customer `id`…
- `createWorkspaceSlackIntegrationFromAuth` _(destructive)_ — Connect workspace Slack notifications using a Slack connection the workspace already has. There is no second OAuth install. Pass the id of an existing…
- `getBroadcastAudiences` _(read)_ — Fetch a paginated list of the workspace's broadcast audiences, newest first. An audience is a named, reusable set of broadcast recipients, resolved to concrete…
- `deleteBroadcast` _(destructive)_ — Soft-delete a broadcast. Deleted broadcasts are excluded from `getBroadcasts` and `searchBroadcasts` but remain fetchable by ID with `getBroadcastDetails`,…
- `updateThreadTitle` _(destructive)_ — Update the title (subject line) of an existing thread. Use this when you need to rename a thread to better reflect the issue or after the conversation has…
- `getHelpCenterArticles` _(read)_ — Fetch a paginated list of articles for a specific help center. Use the `cursor` variable with the endCursor from the previous response's pageInfo to fetch the…
- `searchCustomers` _(read)_ — Search for customers by name, email, short name, or external ID. The search is case-insensitive and matches partial strings, returns first 50 results. All…
- `getTenantDetails` _(read)_ — Fetch detailed information about a specific tenant by their ID. Returns the tenant's profile including name, external ID, source, tier, and tenant fields.
- `createThreadLink` _(destructive)_ — Link a thread to an external entity (e.g. a Linear issue, Jira issue, incident.io incident, or another Plain thread/task). Provide the `threadId` plus exactly…
- `deleteBroadcastAudience` _(destructive)_ — Soft-delete a broadcast audience. Deleted audiences are excluded from `getBroadcastAudiences` but stay fetchable by ID with `getBroadcastAudienceDetails`, so…
- `markCustomerAsSpam` _(destructive)_ — Flag a customer as spam. This hides their threads from the inbox and excludes them from metrics. Marking a customer that is already marked as spam returns a…
- `createNote` _(destructive)_ — Create an internal note on a thread. Notes are visible to support agents only, not to customers. Requires a customerId and text content. Optionally provide a…
- `moveLabelType` _(destructive)_ — Move a label type to a different position in the label hierarchy. You can move it before/after another label type, or change its parent. Provide…
- `upsertCustomer` _(destructive)_ — Create or update a customer. To create: provide identifier (with externalId or emailAddress), and onCreate fields (fullName, email). To update: provide…
- `getCustomerDetails` _(read)_ — Fetch detailed information about a specific customer by their ID. Returns the customer's profile including email, avatar, assignment, company, and timestamps.
- `searchBroadcasts` _(read)_ — Search broadcasts by name. The search is case-insensitive, matches on any part of the name, ignores accents, and requires at least 2 characters. A broadcast's…
- `assignThread` _(destructive)_ — Assign a thread to a user or machine user. Provide either userId or machineUserId, not both. If neither is provided, the thread will be assigned to the…
- `getBroadcastSends` _(read)_ — Fetch the send history of one broadcast, newest first. Use this to answer "has this broadcast gone out, and how far did each run get". One send is one run of…
- `getHelpCenterArticle` _(read)_ — Fetch detailed information for a specific help-center article by ID. Help-center article URL format (Plain dashboard):…
- `createLabelType` _(destructive)_ — Create a new label type for organizing threads. Label types can be single-select or multi-select, and can be hierarchical with parent label types. Use this to…
- `getMyAssignedThreads` _(read)_ — Fetch first 10 threads assigned to a specific user in Plain. By default, returns only active threads (TODO and SNOOZED), excluding DONE threads. To include all…
- `updateThreadFieldSchema` _(destructive)_ — Update an existing thread field schema's properties. Use this to modify the label, description, order, enum values, default values, or other field settings.…
- `getThreadKnowledgeSourceCitations` _(read)_ — Fetch the knowledge sources cited by AI agent replies on a thread. Currently only Ari, Plain's AI support agent, produces citations. Each citation is linked to…
- `addLabels` _(destructive)_ — Add labels to a thread by label type IDs. Labels are used to categorize and organize threads.
- `updateBroadcast` _(destructive)_ — Update one or more fields of an existing broadcast. Only `broadcastId` is required; every other field is optional and omitting it leaves that field unchanged.…
- `searchThreadLinkCandidates` _(read)_ — Search a connected issue tracker for external entities that can be linked to a thread via `createThreadLink`. Scope the search to one issue tracker with…
- `deleteThreadFieldSchema` _(destructive)_ — Delete a thread field schema from the workspace. This will remove the field schema and all associated thread field values from threads. Use this carefully as…
- `mergeThread` _(destructive)_ — Merge one Plain thread into another (a `MERGED_INTO` native thread link). The child thread (`childThreadId`) is merged into the parent thread…
- `replyToThread` _(destructive)_ — Reply to the last message in a thread. Supports replying to threads where the last message is a Slack message, an email, or a form submission. If the thread is…
- `createBroadcastAudience` _(destructive)_ — Create a reusable broadcast audience: a named set of broadcast recipients, resolved to concrete Slack channels at send time rather than when saved. Required…
- `getLabels` _(read)_ — Fetch a paginated list of label types from Plain. Useful for fetching the label type ID's necessary for mutations like 'addLabels'. Results exclude archived…
- `upsertTenant` _(destructive)_ — Create or update a tenant. To create: provide identifier (with externalId), name, and externalId. To update: provide identifier (with tenantId or externalId)…
- `unarchiveLabelType` _(destructive)_ — Unarchive a previously archived label type to make it available again. This restores the label type to the active label list so it can be used on threads.
- `getAttachmentDownloadUrl` _(destructive)_ — Generate a short-lived download URL for an attachment on a thread. Use attachment IDs returned by getThreadDetails (in the attachments field of timeline…
- `createThread` _(destructive)_ — Create a new thread for a customer. A thread is the unit of conversation in Plain. Use this when you need to open a new ticket on behalf of a customer (for…
- `getMyUser` _(read)_ — Get the currently authenticated user's details. This query uses implicit authentication - no parameters are needed. Returns the user associated with the…
- `resolveSidekickApproval` _(destructive)_ — Approve or deny a Sidekick tool-call approval request. Sidekick pauses when it needs a tool the workspace marked as requiring approval. getSidekickSession then…
- `getMyWorkspace` _(read)_ — Get the currently authenticated user's workspace details. This query uses implicit authentication - no parameters are needed. Returns the workspace associated…
- `getBroadcastSendDeliveries` _(read)_ — Fetch the individual recipients of one broadcast send — which channel got the message, which did not, and why. Use this to answer "who missed it" or "did this…
- `searchThreads` _(read)_ — Search threads by text content in title, description, or messages. Returns the first 50 results Optionally filter results by status, priority, customer,…
- `sendSidekickMessage` _(destructive)_ — Send a follow-up message into an existing Sidekick session. discussionId is the `thdis_...` handle returned by startSidekickSession. Use this to answer a…
- `bulkUpsertThreadFields` _(destructive)_ — Bulk upsert (create or update) multiple thread field values in a single operation. Provide an array of thread field inputs, each with thread ID, field key,…
- `sendTestBroadcast` _(destructive)_ — 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. This posts real messages…
- `getBroadcastDetails` _(read)_ — Fetch a single broadcast by its ID, including its authored content and who it is targeted at. Returns null if no broadcast with that ID exists, and returns…
- `getBroadcastAudienceDetails` _(read)_ — Fetch a single broadcast audience by its ID, or null if no audience with that ID exists. Returns soft-deleted audiences (where `isDeleted` is true), so the…
- `getHelpCenterArticleGroups` _(read)_ — Fetch a paginated list of article groups for a specific help center. Use the `cursor` variable with the endCursor from the previous response's pageInfo to…
- `startSidekickSession` _(destructive)_ — Start a new Sidekick session and return the handle used by every other Sidekick tool. Sidekick is Plain's AI agent. It runs asynchronously in a sandbox. This…
- `getThreads` _(read)_ — Fetch threads with flexible filtering options. Use this to find first 10 threads by status, status details, assignee, customer, tenant, labels, priority, date…
- `listSidekickSessions` _(read)_ — List Sidekick sessions in the workspace, most recent activity first. Use this to resume a session from an earlier conversation, to check whether a session you…
- `getTenants` _(read)_ — Fetch a paginated list of tenants from Plain. Results include tenant name, external ID, source, and associated tier. Use the `cursor` variable with the…
- `markThreadAsTodo` _(destructive)_ — Mark a thread as todo (reopen or set as active). Optionally provide a statusDetail for the reason: CREATED, IN_PROGRESS, NEW_REPLY, THREAD_LINK_UPDATED, or…
- `getCustomers` _(read)_ — Fetch a paginated list of customers from Plain. Results are sorted by full name and exclude customers marked as spam. Use the `cursor` variable with the…
- `markThreadAsDone` _(destructive)_ — Mark a thread as done (resolved). Optionally provide a statusDetail for the reason: IGNORED, DONE_MANUALLY_SET, or DONE_AUTOMATICALLY_SET.
- `createSnippet` _(destructive)_ — Create a new snippet (reusable reply template) in the workspace. `name` is what agents search for when inserting the snippet. `text` is the plain-text body…
- `getSidekickSession` _(read)_ — Poll a Sidekick session: read its status, its newest messages, and any approval it is blocked on. Call this repeatedly after startSidekickSession or…
- `archiveLabelType` _(destructive)_ — Archive a label type to hide it from the active label list. Archived label types are no longer available for selection but existing labels remain on threads.…
- `getSnippets` _(read)_ — Fetch a paginated list of snippets from the workspace. Snippets are reusable reply templates that agents insert when composing replies. Soft-deleted snippets…
- `snoozeThread` _(destructive)_ — Snooze a thread for a specified duration. The thread will return to TODO status after the snooze period expires. durationSeconds: how long to snooze (e.g. 3600…
- `searchTenants` _(read)_ — Search for tenants by name or external ID. The search is case-insensitive: partial match on name, exact match on external ID. The search term must be at least…
- `duplicateBroadcast` _(destructive)_ — Copy an existing broadcast into a new DRAFT. Authoring fields (name prefixed with "Copy of", content, audience, sender, notification title, and related…
- `getSnippet` _(read)_ — Fetch a single snippet by ID, including soft-deleted snippets (where `isDeleted` is true). Use this when you already have a snippet ID (starts with `sn_`) from…
- `updateBroadcastAudience` _(destructive)_ — Update a broadcast audience's name, filters, or both. Only `broadcastAudienceId` is required; omitting a field leaves it unchanged. - `name` uses a wrapper…
- `getBroadcasts` _(read)_ — Fetch a paginated list of the workspace's broadcasts, newest first. A broadcast is a message authored once and posted to many Slack channels at once.…
- `getThreadFieldSchemas` _(read)_ — Fetch a paginated list of thread field schemas from Plain. Thread field schemas define the custom fields available for threads in your workspace. Use the…

---

## Connect

Gateway URL: https://gateway.mewcp.com/personal/mcp

Every request carries one header:

    Authorization: Bearer <API_KEY>

Replace `API_KEY` with your own key from the dashboard (Developer).

## Apps

### Claude Desktop

Mac & Windows app

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

```json
{
  "mcpServers": {
    "mewcp": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote@latest",
        "https://gateway.mewcp.com/personal/mcp",
        "--header",
        "Authorization: Bearer API_KEY"
      ]
    }
  }
}
```

Already have an "mcpServers" section in your config? Just add the server entry inside it.

1. Open Claude Desktop → Settings → Developer → "Edit Config"
2. Paste the snippet inside the outer { } of the config file (merge with your existing "mcpServers" section if you have one)
3. Save the file and restart Claude Desktop
4. Start a new conversation — your tool will be available

### VS Code

Copilot / Cline

- Command Palette → "MCP: Open User Configuration" (opens mcp.json). For one project only, use .vscode/mcp.json instead.

```json
{
  "mcp.servers": {
    "mewcp": {
      "type": "http",
      "url": "https://gateway.mewcp.com/personal/mcp",
      "headers": {
        "Authorization": "Bearer API_KEY"
      }
    }
  }
}
```

Already have a "servers" section in your mcp.json? Just add the server entry inside it.

1. Open VS Code → Command Palette (Cmd+Shift+P / Ctrl+Shift+P)
2. Run "MCP: Open User Configuration" to open your mcp.json
3. Paste the snippet and save
4. Start the server when prompted (or from the MCP servers view) and use it in Copilot Chat

### Cursor

AI-first editor

- macOS: `~/.cursor/mcp.json`
- Windows: `%USERPROFILE%\.cursor\mcp.json`

```json
{
  "mcpServers": {
    "mewcp": {
      "url": "https://gateway.mewcp.com/personal/mcp",
      "headers": {
        "Authorization": "Bearer API_KEY"
      }
    }
  }
}
```

Already have an "mcpServers" section in your mcp.json? Just add the server entry inside it.

1. Open Cursor → Settings → Cursor Settings → MCP
2. Click "Add new global MCP server"
3. Paste the snippet and save
4. Restart Cursor

### Codex

OpenAI's CLI agent

- Add the snippet to your Codex MCP config or your standard MCP config file for the CLI tool you use.

```json
{
  "mcpServers": {
    "mewcp": {
      "type": "http",
      "url": "https://gateway.mewcp.com/personal/mcp",
      "headers": {
        "Authorization": "Bearer API_KEY"
      }
    }
  }
}
```

Codex generally reads a standard MCP server block, so you can add this alongside your other configured servers.

1. Open your Codex MCP config or project-level config file
2. Paste the MewCP server block inside the config JSON/TOML structure your tool expects
3. Save the file and restart Codex
4. Verify the tool is available inside a fresh session

### Claude Code

Anthropic's CLI agent

- ~/.claude.json (user scope) or .mcp.json in your project root — create it if it doesn't exist. Or skip the file and use the CLI command below.

```json
{
  "mcpServers": {
    "mewcp": {
      "type": "http",
      "url": "https://gateway.mewcp.com/personal/mcp",
      "headers": {
        "Authorization": "Bearer API_KEY"
      }
    }
  }
}
```

Already have an "mcpServers" section in your config? Just add the server entry inside it.

1. Open ~/.claude.json (or .mcp.json in your project root) in a text editor
2. Paste the snippet inside the outer { } (merge with your existing "mcpServers" section if you have one)
3. Save the file and start (or restart) Claude Code
4. Or skip the file entirely and run the CLI command below instead

### OpenCode

Open-source terminal agent

- ~/.config/opencode/opencode.json (global) or opencode.json in your project root — create it if it doesn't exist.

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "mewcp": {
      "type": "remote",
      "url": "https://gateway.mewcp.com/personal/mcp",
      "enabled": true,
      "headers": {
        "Authorization": "Bearer API_KEY"
      }
    }
  }
}
```

Already have an "mcp" section in your opencode.json? Just add the server entry inside it.

1. Open ~/.config/opencode/opencode.json (or opencode.json in your project root) in a text editor
2. Paste the snippet inside the outer { } (merge with your existing "mcp" section if you have one)
3. Save the file and start (or restart) OpenCode

### OpenClaw

Self-hosted agent gateway

- ~/.openclaw/openclaw.json — create it if it doesn't exist.

```json
{
  "mcp": {
    "servers": {
      "mewcp": {
        "transport": "streamable-http",
        "url": "https://gateway.mewcp.com/personal/mcp",
        "enabled": true,
        "headers": {
          "Authorization": "Bearer API_KEY"
        }
      }
    }
  }
}
```

Already have an "mcp" section in your openclaw.json? Just add the server entry inside "servers".

1. Open ~/.openclaw/openclaw.json in a text editor
2. Paste the snippet inside the outer { } (merge with your existing "mcp" section if you have one)
3. Save the file and restart OpenClaw

### Antigravity

Google's agentic IDE

- ~/.gemini/config/mcp_config.json (global) or .agents/mcp_config.json (workspace-local) — create it if it doesn't exist.

```json
{
  "mcpServers": {
    "mewcp": {
      "serverUrl": "https://gateway.mewcp.com/personal/mcp",
      "headers": {
        "Authorization": "Bearer API_KEY"
      }
    }
  }
}
```

Already have an "mcpServers" section in your config? Just add the server entry inside it. Remote servers must use the "serverUrl" field — the legacy "url"/"httpUrl" fields aren't supported.

1. In the editor's agent side panel, click "…" → "MCP Servers" → "Manage MCP Servers" → "View raw config" (Antigravity CLI: type /mcp instead to open the Interactive MCP Manager)
2. Paste the snippet inside the outer { } (merge with your existing "mcpServers" section if you have one)
3. Save the file — the server connects automatically

### Hermes

Nous Research's CLI agent

- config.yaml in your Hermes config directory (~/.hermes) — add this under a top-level "mcp_servers:" key.

```yaml
mcp_servers:
  mewcp:
    url: "https://gateway.mewcp.com/personal/mcp"
    headers:
      Authorization: "Bearer API_KEY"
```

Already have an "mcp_servers" section in your config.yaml? Just add the server entry inside it.

1. Open config.yaml in your Hermes config directory
2. Paste the snippet under the top-level "mcp_servers:" key (merge with existing entries if you have any)
3. Save the file, then run /reload-mcp in Hermes (or start a fresh session)
4. Ask Hermes "Tell me which MCP-backed tools are available right now" to confirm it connected

### DeepSeek Harness

DeepSeek's agent harness

- cordis.yml in your DSH project — or the patch file you mount plugins from.

```yaml
- id: mcp-mewcp
  name: '@deepseek-ai/dsh-mcp-client'
  config:
    serverName: mewcp
    transport: streamable-http
    url: https://gateway.mewcp.com/personal/mcp
    headers:
      Authorization: "Bearer API_KEY"
```

One plugin instance = one MCP server. Add this entry to your plugin list; don't nest it inside another entry.

1. Open cordis.yml (or your patch file) in your DSH project
2. Paste the entry into your plugin list, keeping the leading dash and indentation
3. Restart DSH (or let HMR reload) — tools register as mcp__mewcp__<tool_name>
4. Verify with: dsh web --dump-config | grep -A3 mcp

## SDKs

### Python

fastmcp client

```python
import asyncio
from fastmcp import Client
from fastmcp.client.transports import StreamableHttpTransport

SERVER_URL = "https://gateway.mewcp.com/personal/mcp"
API_KEY = "API_KEY"

transport = StreamableHttpTransport(
    url=SERVER_URL,
    headers={
        "Authorization": f"Bearer {API_KEY}",
    }
)

async def main():
    client = Client(transport)
    async with client:
        tools = await client.list_tools()
        print(tools)

asyncio.run(main())
```

1. Install fastmcp: pip install fastmcp
2. Copy the snippet into your project
3. Replace API_KEY with your key from the dashboard
4. Run your script

### TypeScript

MCP SDK

```typescript
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";

const SERVER_URL = "https://gateway.mewcp.com/personal/mcp";
const API_KEY = "API_KEY";

const transport = new StreamableHTTPClientTransport(new URL(SERVER_URL), {
  requestInit: {
    headers: {
      Authorization: `Bearer ${API_KEY}`,
    },
  },
});

const client = new Client({ name: "mewcp-client", version: "1.0.0" });
await client.connect(transport);

const tools = await client.listTools();
console.log(tools.tools.map((t) => t.name));
```

1. Install: npm install @modelcontextprotocol/sdk
2. Copy the snippet into your project
3. Replace API_KEY with your key from the dashboard
4. Run with Node 18+ as an ES module (e.g. npx tsx script.ts)