# HeyOrbit MCP server

> Set up the HeyOrbit MCP server in Claude Code, Claude Desktop, ChatGPT, Cursor or any Streamable HTTP client: API key, config snippets and every tool.

URL: https://heyorbit.tech/mcp/docs
Last updated: 2026-11-21

Documentation

Endpoint: `https://heyorbit.tech/api/mcp`. Transport: Streamable HTTP (MCP spec 2025-03-26 and later). Auth: Bearer API key. 24 tools.

## Prerequisites

- A HeyOrbit account and an API key: API and MCP access are **included with every account**. Use a key with the **write** scope to draft, schedule and reply; a read-only key works for assistants that only read. See [pricing](https://heyorbit.tech/pricing).
- An **API key**. Create one at [Dashboard → API Keys](https://heyorbit.tech/dashboard/api-keys). Keys are shown once; name them per tool (for example `claude-desktop-sam`) so you can revoke them independently.
- The key inherits your user's workspaces and roles. A key for a user with the Viewer role can only call read tools.

Every tool that takes a `workspaceId` expects an id returned by `list_workspaces`. Account ids come from `list_accounts`. Dates are ISO 8601 with a timezone offset.

## Claude Code

Claude Code supports HTTP MCP servers natively. Add the server to `.mcp.json` at the root of a project (shared with your team) or to your user config.

.mcp.json

```
{
  "mcpServers": {
    "heyorbit": {
      "type": "http",
      "url": "https://heyorbit.tech/api/mcp",
      "headers": {
        "Authorization": "Bearer <your-api-key>"
      }
    }
  }
}
```

Or from the terminal: `claude mcp add --transport http heyorbit https://heyorbit.tech/api/mcp --header "Authorization: Bearer <your-api-key>"`. Then run `/mcp` inside Claude Code to confirm the server is connected and lists 24 tools.

## Claude Desktop

Claude Desktop speaks stdio to local servers, so bridge to the remote endpoint with `mcp-remote`. Edit `claude_desktop_config.json` (Settings → Developer → Edit config) and restart the app.

claude\_desktop\_config.json

```
{
  "mcpServers": {
    "heyorbit": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://heyorbit.tech/api/mcp",
        "--header",
        "Authorization:Bearer <your-api-key>"
      ]
    }
  }
}
```

Node 18 or newer is required for `npx`. On first run, mcp-remote caches the bridge; subsequent starts are instant. If you use Claude.ai custom connectors on an eligible plan, add the URL directly with the key as a Bearer token.

## ChatGPT

ChatGPT connects to MCP servers in **developer mode** (Settings → Connectors → Advanced → Developer mode). ChatGPT cannot set custom headers, so pass the key as a query parameter. Use a dedicated key for ChatGPT so you can rotate it on its own.

Connector URL

```
https://heyorbit.tech/api/mcp?api_key=<your-api-key>
```

Name the connector "HeyOrbit", leave authentication as none (the key is in the URL), and enable it in a chat from the Tools menu. Ask ChatGPT to list your workspaces to confirm.

## Cursor

Add the server to `.cursor/mcp.json` in a project or `~/.cursor/mcp.json` globally. Cursor supports HTTP servers with headers.

.cursor/mcp.json

```
{
  "mcpServers": {
    "heyorbit": {
      "url": "https://heyorbit.tech/api/mcp",
      "headers": {
        "Authorization": "Bearer <your-api-key>"
      }
    }
  }
}
```

## Any MCP client (Streamable HTTP)

The endpoint implements the Streamable HTTP transport: POST JSON-RPC messages to `/api/mcp`, accept `application/json` and `text/event-stream`. Initialise with `initialize`, then call `tools/list` and `tools/call`. Sessions are stateless; no `Mcp-Session-Id` is required.

List tools with curl

```
curl -X POST https://heyorbit.tech/api/mcp \
  -H "Authorization: Bearer <your-api-key>" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
```

Call a tool

```
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "create_post",
    "arguments": {
      "workspaceId": "ws_8f2a…",
      "caption": "Oat, sage and clay are back in every size.",
      "targets": [{ "socialAccountId": "acc_li_01…" }, { "socialAccountId": "acc_x_02…", "caption": "oat, sage and clay are back. that's the post." }],
      "scheduledAt": "2026-05-19T09:00:00+01:00"
    }
  }
}
```

Tool results are returned as text content containing JSON. Errors use the standard `isError: true` result with a message that names the failing validation (for example `caption exceeds 280 characters for X`).

## Tool reference

Read tools never change data. Write tools are marked; they respect your role and the workspace's approval setting.

| Tool | Arguments | Description | Type |
| --- | --- | --- | --- |
| Workspaces & accounts | | | |
| `list_workspaces` | — | List the workspaces the key's user belongs to, with role and connected accounts. | read |
| `list_accounts` | workspaceId?, platform? | List connected social accounts in a workspace with platform, handle and status. | read |
| Posts & calendar | | | |
| `list_posts` | workspaceId?, from?, to?, status?, platform?, accountId?, q?, limit? | List posts filtered by date range, status, platform, account or caption text. | read |
| `get_post` | postId | Get one post with targets, media, labels, approvals and per-platform results. | read |
| `list_post_versions` | postId | A post's versions, newest first: what was sent each time, each approver's decision and reason, and what changed. | read |
| `create_post` | workspaceId?, caption, accountIds \| targets\[\], scheduledAt?, mediaIds?, labelIds?, approverIds?, action | Create a draft, scheduled or published post for one or more accounts, with per-target captions and settings. | write |
| `update_post` | postId, caption?, scheduledAt?, accountIds?, mediaIds?, labelIds?, action? | Update caption, media, targets or schedule of an existing post. | write |
| `delete_post` | postId | Delete a draft or scheduled post. | write |
| `publish_post` | postId | Publish a post immediately (subject to approval rules). | write |
| `schedule_post` | workspaceId?, caption, accountIds, scheduledAt, mediaIds? | Create and schedule a post in one call; workspace approval rules apply. | write |
| `list_drafts` | workspaceId?, limit? | List drafts in a workspace. | read |
| `get_calendar` | workspaceId?, from?, to? | Scheduled and published posts per day for a date range (next 14 days by default). | read |
| Analytics | | | |
| `get_workspace_overview` | workspaceId?, range (7d\|14d\|30d\|90d) or from/to, accountIds? | Workspace KPIs: followers, views, engagement and engagement rate with period-over-period changes. | read |
| `get_account_analytics` | accountId, range or from/to | Per-account metrics and daily series for a range. | read |
| `get_top_posts` | workspaceId?, range, sort?, limit?, accountIds? | Top posts by views or engagement across a workspace or accounts. | read |
| Inbox | | | |
| `list_inbox_comments` | workspaceId?, unread?, sentiment?, accountId?, q?, limit? | List comments, mentions and reviews with sentiment and read state. | read |
| `list_inbox_messages` | workspaceId?, unread?, accountId?, limit? | List direct messages (Instagram, Facebook, TikTok, Bluesky and X). | read |
| `reply_to_comment` | itemId, text | Reply to a comment, review or message on the platform. | write |
| Media & organisation | | | |
| `list_media` | workspaceId?, folderId?, type?, q?, limit? | List media assets with folder, type and source filters. | read |
| `import_media_from_url` | workspaceId?, url, alt?, filename? | Import an image or video from a URL into the media library. | write |
| `list_labels` | workspaceId? | List labels in a workspace. | read |
| `list_hashtag_sets` | workspaceId? | List saved hashtag sets. | read |
| AI & reports | | | |
| `generate_captions` | idea, platforms\[\], tone?, count?, language?, brandVoice? | Generate platform-specific caption variants from an idea (AI Studio add-on). | read |
| `generate_report` | workspaceId?, from, to, title?, accountIds?, compare? | Generate a report for a range and accounts, with a written summary and a share link. | write |

## Security notes

- **Keys carry your identity.** Everything the assistant does is logged in the workspace activity log under your name, with the key's label.
- **Read-only keys.** Create a key with the Read-only scope for assistants that only analyse. The assistant sees only the read tools (posts, calendar, analytics, inbox, media, labels); calling a write tool returns `READ_ONLY_KEY`.
- **Approvals are enforced.** In a workspace that requires approval, `create_post` and `schedule_post` produce pending posts, and `publish_post` is refused until approved.
- **Rate limits.** 240 requests per minute per user. Exceeding it returns HTTP 429 with a `Retry-After` header.
- **Transport.** HTTPS only. Platform tokens are never exposed through any tool; the server publishes on your behalf.
- **Revocation.** Delete a key in the dashboard and it stops working within seconds. Rotate keys you've pasted into shared configs.
- **Prompt injection.** Comments and messages returned by inbox tools are user-generated content. Treat them as data in your agent, never as instructions.

## Troubleshooting

- **401 Unauthorized.** The key is missing, mistyped or revoked. Check for a stray space after `Bearer`.
- **402 Payment required.** The tool needs something your account doesn't include yet, such as AI captions without the AI Studio add-on, or a social account you haven't paid for.
- **Claude Desktop shows no tools.** Confirm Node is installed (`node -v`), then restart Claude Desktop. Check the MCP log under Settings → Developer.
- **ChatGPT says the connector failed.** Make sure the URL includes `?api_key=` and that developer mode is enabled for your account.
- **Validation errors on create\_post.** The message names the platform and limit. Shorten the caption, add required media, or use per-target captions.

Still stuck? [Contact support](https://heyorbit.tech/contact) with the key label (never the key) and the tool name.

Create your key at [Dashboard → API Keys](https://heyorbit.tech/dashboard/api-keys).

Read the [security overview](https://heyorbit.tech/security) for encryption, retention and subprocessors.

## Ready to connect an assistant?

API and MCP access are included with every account, at no extra cost.

[Start free](https://heyorbit.tech/signup) [MCP overview](https://heyorbit.tech/mcp)
