Skip to main content
Glama
@chirpie/mcp

@chirpie/mcp

README.md
# @chirpie/mcp

**Most people should use the hosted server, not this package.** Chirpie (chirpie.ai) is the publishing connector for AI agents, and its MCP server is hosted at `https://chirpie.ai/mcp`: add it to your AI app, sign in, and your agent can post, thread and schedule to X/Twitter, Bluesky, LinkedIn, Threads, Mastodon, Instagram, Facebook and Telegram, with images and video on every network, drafts, comments and analytics. Nothing to install, no API key to paste, and always the current version.

## Connect in one step

| App | How |
|-----|-----|
| **Claude** (claude.ai, Desktop, mobile) | Add Chirpie from the [Claude Connectors Directory](https://claude.ai/directory/chirpie) and sign in |
| **Claude Code** | `claude mcp add --transport http chirpie https://chirpie.ai/mcp`, then `/mcp` to sign in. Or the plugin, which adds the Chirpie skills too: `/plugin marketplace add Firefloco/chirpie-skills` then `/plugin install chirpie@chirpie-skills` |
| **Cursor** | [Add to Cursor](https://cursor.com/install-mcp?name=chirpie&config=eyJ1cmwiOiJodHRwczovL2NoaXJwaWUuYWkvbWNwIn0%3D), or `{ "mcpServers": { "chirpie": { "url": "https://chirpie.ai/mcp" } } }` in `~/.cursor/mcp.json` |
| **VS Code** | [Install in VS Code](https://vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522chirpie%2522%252C%2522type%2522%253A%2522http%2522%252C%2522url%2522%253A%2522https%253A%252F%252Fchirpie.ai%252Fmcp%2522%257D), or `code --add-mcp '{"name":"chirpie","type":"http","url":"https://chirpie.ai/mcp"}'` |
| **ChatGPT** (web) | Plugins, **+**, **Add custom MCP server**, URL `https://chirpie.ai/mcp`, OAuth. Posting needs a Business, Enterprise or Education workspace |
| **Codex** | `codex mcp add chirpie --url https://chirpie.ai/mcp`, then `codex mcp login chirpie` |
| **Gemini CLI** | `gemini mcp add --transport http chirpie https://chirpie.ai/mcp`, then `/mcp auth chirpie` |
| **Windsurf** | `{ "mcpServers": { "chirpie": { "serverUrl": "https://chirpie.ai/mcp" } } }` in the MCP config file Cascade's MCP settings open |
| **Manus** | Connectors, Create, **Import MCP by JSON**: `{ "mcpServers": { "chirpie": { "url": "https://chirpie.ai/mcp", "headers": { "Authorization": "Bearer chirpie_sk_..." } } } }` with a scoped API key |
| **Meta Muse** | In a conversation, ask Muse to add a custom connector for the remote MCP server `https://chirpie.ai/mcp`, then approve the Chirpie sign-in link it sends |
| **n8n** | MCP Client Tool, HTTP Streamable, endpoint `https://chirpie.ai/mcp`, MCP OAuth2 credential. OAuth needs n8n served over https or on localhost; otherwise use a scoped API key as a bearer header |
| **Any MCP client** | Add `https://chirpie.ai/mcp` as a remote (Streamable HTTP) server and sign in |

Step-by-step guides for every app: https://chirpie.ai/docs/mcp?utm_source=npm&utm_medium=readme&utm_campaign=mcp

When you sign in you choose **Full access** or **Read only**, and Chirpie enforces the choice on every call. Prefer a key over OAuth (CI, scripts, clients without an OAuth flow)? Send it as a header. This is the Claude Code and Cursor shape; in other clients, add the same `headers` entry to that client's own server entry:

```json
{
  "mcpServers": {
    "chirpie": {
      "type": "http",
      "url": "https://chirpie.ai/mcp",
      "headers": { "Authorization": "Bearer chirpie_sk_your_key_here" }
    }
  }
}
```

## Advanced: run it locally (this package)

Run the same tool set on your own machine over stdio. Use it when a client speaks nothing but stdio, or when the agent should read large files straight from your disk with `path`.

```bash
npm install -g chirpie
chirpie login
```

**Claude Code**

```bash
claude mcp add chirpie -- npx -y @chirpie/mcp
```

**Claude Desktop**: `~/Library/Application Support/Claude/claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "chirpie": {
      "command": "npx",
      "args": ["-y", "@chirpie/mcp"]
    }
  }
}
```

**Cursor**: add to your MCP settings:

```json
{
  "mcpServers": {
    "chirpie": {
      "command": "npx",
      "args": ["-y", "@chirpie/mcp"]
    }
  }
}
```

The local server resolves credentials in this order:

1. `CHIRPIE_API_KEY` environment variable
2. `~/.chirpie/config.json` (written by `chirpie login`)
3. Neither: the server signs itself in. The first tool call answers `login_required` with a chirpie.ai link and a code for the person to approve (one tap, and the page creates an account if they have none). Once they have, the key is saved to `~/.chirpie/config.json` and the next call works, with no restart.

The CLI and this server share that config, so one `chirpie login` covers both.

## Tools

| Tool | What it does |
|------|--------------|
| `chirpie_upload_media` | Upload an image or video and get the id a post can attach. Takes a local file `path` at any supported size (up to 20 MB for an image, 512 MB for a video), a public `url`, base64 `data`, or the `upload_id` of a direct upload. `idempotency_key` makes a retry safe |
| `chirpie_create_media_upload` | Start a direct upload for a large file when the file is not on this machine: returns an upload URL to send the bytes to, then `chirpie_upload_media` finishes it |
| `chirpie_post` | Post to any connected account, now or scheduled, or to several at once. `configuration` publishes it as a story or a reel instead of a feed post; `timezone` reads a `schedule_at` with no offset in an IANA zone; `idempotency_key` makes a retry safe; `draft` saves it instead; `allow_duplicate` repeats a text the account already posted within 12 hours, which is otherwise refused with `duplicate_post` |
| `chirpie_thread` | Post a 2-25 part thread, to one account or to several at once. Takes `timezone` and `idempotency_key` too; `draft` saves it instead |
| `chirpie_list_posts` | List posts a page at a time, filtered by status, account, network, the group of a multi-account publish, a time range (`from`/`to`, matching scheduled or publish time) or words in the text (`q`). Answers `{ posts, has_more, next_offset }` |
| `chirpie_get_post` | Fetch one post |
| `chirpie_update_post` | Edit a post that has not published yet, or finish a draft and schedule or publish it. `configuration` changes where it publishes |
| `chirpie_retry_first_comment` | Post a first comment that failed, again. `idempotency_key` makes a retry safe |
| `chirpie_delete_post` | Take a post down from the platform. Chirpie keeps it, marked deleted |
| `chirpie_hide_post` | Hide a post from your Chirpie listings. Nothing reaches the platform |
| `chirpie_unhide_post` | Put a hidden post back in your listings |
| `chirpie_list_accounts` | List connected social accounts, active and inactive. With none connected it names the connect tools in `next_step` |
| `chirpie_activate_account` | Activate an account so it can publish |
| `chirpie_deactivate_account` | Deactivate an account (stays connected, frees a plan slot) |
| `chirpie_disconnect_account` | Disconnect an account (ends the connection, cancels its scheduled posts, frees a plan slot) |
| `chirpie_analytics` | Engagement metrics for a published post. `refresh` asks the platform now instead of reading the stored snapshot, once per post every 5 minutes |
| `chirpie_create_key` | Create an API key, optionally narrowed with `scopes` so it can do less than yours |
| `chirpie_list_keys` | List API keys |
| `chirpie_revoke_key` | Revoke an API key |
| `chirpie_connect_x` | Connect X/Twitter (returns a chirpie.ai link to open in a browser, where you sign in if asked and approve on X) |
| `chirpie_connect_linkedin` | Connect a LinkedIn profile |
| `chirpie_connect_linkedin_pages` | Connect the LinkedIn Pages you administer (coming soon) |
| `chirpie_connect_threads` | Connect Threads |
| `chirpie_connect_instagram` | Connect Instagram, `via` `instagram` (the default) or `facebook` |
| `chirpie_connect_facebook` | Connect a Facebook Page |
| `chirpie_connect_bluesky` | Connect Bluesky with an app password |
| `chirpie_connect_mastodon` | Connect Mastodon on any instance |
| `chirpie_connect_telegram` | Connect a Telegram bot |
| `chirpie_set_x_keys` | Register your own X developer app for connecting X accounts |
| `chirpie_get_x_keys_status` | Check whether your own X developer app is configured |
| `chirpie_remove_x_keys` | Remove your own X developer app |

The hosted and local servers expose exactly the same tools. On the hosted server,
`chirpie_create_key`, `chirpie_list_keys`, `chirpie_revoke_key` and
`chirpie_remove_x_keys` require API-key auth. Sign in with OAuth and they are not
offered, since an OAuth connection must not leave a long-lived key behind or tear
down credentials your other connections depend on.

## Which tools ask before they run?

Every tool carries a title and the standard MCP tool annotations
(`readOnlyHint`, `destructiveHint`, `idempotentHint`, `openWorldHint`), so your
client knows what a call does before it runs it. Listing and reading tools are
read-only. Deleting a post or a comment, disconnecting or deactivating an
account, editing a queued post, revoking a key and setting or removing your own
X app are destructive, and clients such as Claude ask before running them unless you have allowed
them.
Hiding, unhiding and activating are neither: each has an exact undo. Creating
tools are not marked idempotent: the ones that take an `idempotency_key` only
make a retry safe when you pass one. Without a key, repeating `chirpie_post`,
`chirpie_thread`, `chirpie_reply_to_comment` or `chirpie_retry_first_comment`
can publish twice, and repeating `chirpie_upload_media` stores a second copy
that expires unused (completing the same direct upload twice does not).

## Several accounts in one call

`chirpie_post` and `chirpie_thread` take `account_ids` in place of `account_id`,
up to 25 of them. The answer is then a `group_id` plus one result per account,
in the order they were named, and `account_configurations` gives a single
account its own text, media or thread. The accounts that worked stay published
when another one's platform refuses, so an agent should read `success` on each
result. Pass the `group_id` to `chirpie_list_posts` to read the whole group
back.

## First comment

`chirpie_post` and `chirpie_thread` take `first_comment`, a comment published
under the post the moment it goes out. On a thread it is one comment for the
whole thread, published under the last part. X, Threads, Instagram and Facebook
only: anywhere else the call is refused with `400 first_comment_unsupported`
rather than the comment dropped. It counts as one post against the monthly
quota.

On a multi-account call the shared `first_comment` reaches every account unless
its `account_configurations` entry says otherwise: an entry naming a
`first_comment` replaces it for that account, and `"first_comment": ""`
publishes that account with none, which is how one call sends a first comment
to the accounts that take one while an account whose platform has none still
publishes the post.

Every post carries `first_comment` back, either `null` or
`{ text, status, comment_id, error }`, with `status` one of `pending`, `posted`
and `failed`. A failed first comment never fails its post, so a published post
can be carrying one that did not go out: `chirpie_retry_first_comment` sends it
again, and `chirpie_update_post` changes the text or, with an empty string,
removes it.

## Stories, reels and other publishing options

`chirpie_post`, `chirpie_thread` and `chirpie_update_post` take `configuration`,
the per-platform publishing options, keyed by platform. Instagram takes a
`feed` post, a `story` or a `reel`, and a Facebook Page takes a `feed` post or a
`story`. Leave it out and everything publishes to the feed.

```json
{
  "account_id": "...",
  "text": "Three minutes on how we schedule posts.",
  "media_ids": ["..."],
  "configuration": {
    "instagram": {
      "placement": "reel",
      "video_cover_timestamp_ms": 1500,
      "collaborators": ["a_co_author"],
      "share_to_feed": true
    }
  }
}
```

Each placement carries its own options:

- `instagram` `feed`: up to 10 images and videos (one video on its own is
  published as a reel), `collaborators` (at most 3 usernames) and `user_tags`
  on a single image only, each of which needs both `x` and `y`.
- `instagram` `story`: exactly one image or video, no caption (send empty
  text), no first comment and no collaborators. `user_tags` may carry
  coordinates or leave them out.
- `instagram` `reel`: exactly one video and no images, plus `collaborators`,
  `user_tags` (the username on its own, since Instagram reads coordinates only
  on images and stories), `cover` or `video_cover_timestamp_ms` but never both,
  `share_to_feed` and `trial_reel`.
- `facebook` `feed`: a `link`, shown as a preview (not on a video post, which
  takes no link).
- `facebook` `story`: exactly one image or video, no text, no first comment
  and no link.

Nothing is dropped quietly: a block keyed on a platform that takes no options,
or a field the chosen placement does not carry, is refused with
`400 configuration_unsupported` naming the platform and the field. A story and a
reel are each a single post, so `chirpie_thread` refuses either placement. On a
multi-account call one block serves every account of that platform, and an
`account_configurations` entry naming its own `configuration` replaces it for
that account. On `chirpie_update_post` an absent `configuration` keeps the
options the post already has, and `"configuration": {}` puts it back to a plain
feed post.

An Instagram account connects one of two ways, and `chirpie_connect_instagram`
takes `via` to pick: `instagram` (the default) signs in with Instagram, and
`facebook` signs in with Facebook and connects the Instagram accounts linked to
the Pages the user shares, several at once. Both publish identically, whatever
the placement. The one difference is deleting a published post, which works on
an account connected via Facebook and is refused with
`501 delete_unsupported` on one connected through Instagram. Connecting an
account that is already connected through the other route moves it rather than
adding a second one: it keeps its id and everything it has published, and
deleting is the only thing that changes hands. Where the two routes report
different Instagram accounts you get a second account instead, so list the
accounts again afterwards.

## Drafts

`draft: true` on `chirpie_post` or `chirpie_thread` saves the content and sends
nothing: no platform call, no quota, and a draft never publishes on its own. A
draft is held to far less than a post, so the text may be empty and a draft
thread may be a single part, and the answer carries a `warnings` list saying,
per account, what would go wrong if it were sent as it stands.

Promote it with `chirpie_update_post`: `schedule_at` queues it, `publish: true`
sends it now, and the two are never valid together. Promotion runs every rule a
create runs and takes the quota, so anything refused leaves the draft exactly as
it was.

## Try it

Once connected, ask your agent:

- "Post to X and LinkedIn: we just shipped v2, but keep the X one shorter."
- "Draft a 5-post thread about why we moved off cron, and schedule it for 9am tomorrow."
- "How did my last Bluesky post do?"
- "Save that as a draft, I will pick the wording tomorrow."
- "Connect my X account."

## Kiro power

The root of this repository is also a Kiro power in the Agent Plugins format:
`plugin.json` names it and lists the keywords that activate it, and `mcp.json`
points at the hosted server, `https://chirpie.ai/mcp`. You sign in to Chirpie
in your browser the first time a tool runs, so there is no API key to paste.

## Links

- Docs: https://chirpie.ai/docs/mcp?utm_source=npm&utm_medium=readme&utm_campaign=mcp
- API reference: https://chirpie.ai/docs?utm_source=npm&utm_medium=readme&utm_campaign=mcp
- Dashboard: https://chirpie.ai/dashboard?utm_source=npm&utm_medium=readme&utm_campaign=mcp
- Privacy policy: https://chirpie.ai/privacy?utm_source=npm&utm_medium=readme&utm_campaign=mcp
- Terms of service: https://chirpie.ai/terms?utm_source=npm&utm_medium=readme&utm_campaign=mcp
- Support: https://chirpie.ai/support?utm_source=npm&utm_medium=readme&utm_campaign=mcp or support@chirpie.ai

MIT © Fireflo LLC

---

> This repository is an automatically maintained source mirror of `packages/mcp` in the Chirpie monorepo. Pull requests opened here cannot be merged.