# MCP server

> Connect Claude Code, Claude Desktop, ChatGPT or Cursor to HeyOrbit's MCP tools, with config snippets and a tool reference.

URL: https://heyorbitapp.vercel.app/docs/developers/mcp-server
Last updated: 2026-11-21

Developers · [Documentation](https://heyorbitapp.vercel.app/docs)

HeyOrbit's MCP (Model Context Protocol) server lets AI assistants read your calendar, draft and schedule posts, pull analytics and work through the inbox. It's a **Streamable HTTP** server at https://app.heyorbit.tech/api/mcp, authenticated with an [API key](https://heyorbitapp.vercel.app/docs/developers/api-keys) as a bearer token. It's included on every plan; self-hosted installs serve it at /api/mcp on their own domain.

Use a key with the **write** scope to draft, schedule, publish and reply. A read-only key can connect too: the assistant then sees only the read-only tools, and a write tool answers with READ_ONLY_KEY. The tools still act with your role in each workspace.

## Setup

The API Keys page in your dashboard shows these snippets with your key and URL filled in.

### Claude Code

~~~bash
claude mcp add --transport http heyorbit https://app.heyorbit.tech/api/mcp \
  --header "Authorization: Bearer orb_YOUR_KEY"
~~~

### Claude Desktop

Settings → Developer → Edit config:

~~~json
{
  "mcpServers": {
    "heyorbit": {
      "command": "npx",
      "args": [
        "-y", "mcp-remote",
        "https://app.heyorbit.tech/api/mcp",
        "--header", "Authorization: Bearer orb_YOUR_KEY"
      ]
    }
  }
}
~~~

Restart Claude Desktop; the tools appear under the tools icon.

### ChatGPT

Settings → **Connectors** → **Create**, with the MCP server URL https://app.heyorbit.tech/api/mcp?api_key=orb_YOUR_KEY. ChatGPT connectors can't send custom headers, so the key travels in the URL; revoke the key if the URL leaks. Requires a ChatGPT plan with custom connectors.

### Cursor

.cursor/mcp.json:

~~~json
{
  "mcpServers": {
    "heyorbit": {
      "url": "https://app.heyorbit.tech/api/mcp",
      "headers": { "Authorization": "Bearer orb_YOUR_KEY" }
    }
  }
}
~~~

### Other clients

Any MCP client that supports Streamable HTTP with custom headers works. For stdio-only clients, use mcp-remote as in the Claude Desktop example.

## Tools

| Tool | Main arguments | Returns |
|---|---|---|
| list_workspaces | – | Workspaces with your role and connected accounts |
| list_accounts | workspaceId?, platform? | Accounts with platform, username, status, followers |
| list_posts | workspaceId?, status?, from?, to?, platform?, accountId?, q?, limit? | Posts, newest first |
| get_post | postId | The post with targets, media, labels, approvals and results |
| list_post_versions | postId | Each version sent for approval or published, with decisions, reasons and what changed |
| create_post | caption, accountIds or targets, scheduledAt?, timezone?, mediaIds?, labelIds?, approverIds?, action | The new post |
| update_post | postId, caption?, scheduledAt?, accountIds?, mediaIds?, labelIds?, action? | The updated post |
| delete_post | postId | Confirmation |
| publish_post | postId | Per-platform results |
| schedule_post | caption, accountIds, scheduledAt, mediaIds? | The scheduled post |
| list_drafts | workspaceId?, limit? | Drafts |
| get_calendar | workspaceId?, from?, to? | Posts per day (next 14 days by default) |
| get_workspace_overview | workspaceId?, range or from/to, accountIds? | Totals, changes, per-account and per-platform rows, daily series, top posts |
| get_account_analytics | accountId, range or from/to | One account's analytics and post performance |
| get_top_posts | workspaceId?, range or from/to, sort (views or engagement), limit? | Best performing posts |
| list_inbox_comments | workspaceId?, unread?, accountId?, sentiment?, q?, limit? | Comments, mentions and reviews |
| list_inbox_messages | workspaceId?, unread?, accountId?, limit? | Direct messages |
| reply_to_comment | itemId, text | The reply |
| list_media | workspaceId?, type?, q?, folderId?, limit? | Media library assets |
| import_media_from_url | url, alt?, filename? | The new asset |
| list_labels | workspaceId? | Labels |
| list_hashtag_sets | workspaceId? | Hashtag sets |
| generate_captions | idea, platforms, tone?, count?, language?, brandVoice? | Caption variants per platform (AI Studio add-on) |
| generate_report | from, to, title?, accountIds?, compare? | The report and its share URL |

Every tool takes an optional workspaceId; without it, the workspace from an x-workspace header or your first workspace is used. Call list_workspaces first when you have several. Errors come back as messages the assistant can act on, including a clear message when something isn't part of your account yet, such as AI tools without the AI Studio add-on.

## Good prompts

- "List next week's scheduled posts in the Northwind workspace and flag empty days."
- "Draft three Reel captions for our behind-the-scenes pillar with generate_captions and save them as drafts."
- "Schedule post abc for Tuesday at 9:00 New York time and request approval from Dana."
- "Compare the last 30 days with the 30 before for all accounts and give me three recommendations."

More setup help is in the [MCP guide](https://heyorbitapp.vercel.app/mcp/docs).

## Limits

240 requests per minute per user ([rate limits](https://heyorbitapp.vercel.app/docs/developers/rate-limits)).

## Self-hosted

The MCP endpoint is part of the application; there's no extra service to run. Use your own domain in the snippets above. See [self-hosting](https://heyorbitapp.vercel.app/docs/self-hosting/overview).
