> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up Ayrshare in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/ayrshare
Last updated: 2026-11-24

Share Ayrshare with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 24 tools (12 read-only).

---

To give your team Ayrshare in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Ayrshare integration in a Metorial portal, and each person connects with an API key. Agents can publish, schedule, and manage social media posts across 13 networks through Ayrshare. The integration has 24 tools, 12 read-only, 8 write and 4 destructive, plus 4 triggers.

**What you will learn**

- How an admin shares Ayrshare in a portal and how each person connects
- What Ayrshare asks for when you connect, and where to find it
- How to keep the 12 read-only tools and reject the other 12

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An API key from Ayrshare for each person, or one for a shared connection
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in method

| Method | Type | What a person provides |
| --- | --- | --- |
| **API Key** | API token | `apiKey` |

### API Key

To connect, a person enters:

- `apiKey`: Your Ayrshare API Key found in the Dashboard under your Primary Profile

### Setup settings

Setup also asks for:

- `profileKey` (optional): Profile Key for operating on behalf of a specific user profile (Business Plan)

## Admin: share Ayrshare in a portal

### In the dashboard

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **Share a new integration**

   Select **Share a Resource**, then **New Integration**, and choose Ayrshare. For how members connect, choose **Each person connects** so everyone enters their own API key, or **Shared connection** to enter one API key for everyone.

3. **Limit the tools**

   Under **Tool Filters**, set the write and destructive groups to **Reject** if agents should only read from Ayrshare.

4. **Choose who gets it**

   Add the access groups that should see Ayrshare. When a person asks for access from the portal, the request appears under **Access Requests**.

### With the CLI

The CLI cannot create the per-user Ayrshare integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search ayrshare
```

## Employee: connect Ayrshare

### In the portal

1. **Open Ayrshare in the catalog**

   Sign in to your portal and open Ayrshare. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. In the setup window, enter your API key (apiKey).

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search ayrshare
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. 

### Add it to your AI client

`metorial install` adds your Ayrshare connection to a local MCP client such as Claude Code, Cursor or Codex. `metorial list` prints the integration ID and `metorial client list` the client identifiers.

```bash
metorial list ayrshare
metorial client list
metorial install <client-identifier> <integration-id>
```

For a client that takes a server URL, such as ChatGPT, `metorial install custom <integration-id>` creates an installation token and shows the endpoint details.

## Make it read-only

Open the integration's **Tool Filters** and set the write and destructive groups to **Reject**. Agents keep the 12 read-only tools, such as `get_feeds` and `get_reviews`, and lose the 8 write tools, such as `add_feed` or `retry_post`, and the 4 destructive tools, such as `delete_feed` or `delete_post`.

Employees see the result on the integration's page in the portal under **Tool access**. For the full walkthrough, see [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list ayrshare
metorial tools <integration-id>
metorial call <integration-id> get_feeds -d '{}'
```

`metorial tools` lists the 24 tools, minus any you rejected. `get_feeds` takes no input. It lists all RSS feed subscriptions configured for the account.

To see every input a tool takes, run `metorial schema <integration-id> <tool-key>`.

## Tools

### Read-only tools (12)

- `get_post_history`: Retrieve the history and status of posts sent via Ayrshare.
- `get_messages`: Retrieve direct message conversations from Facebook, Instagram, or X/Twitter. Needs `platform`.
- `get_feeds`: List all RSS feed subscriptions configured for the account.
- `get_profiles`: List user profiles with optional filtering by title, reference ID, or active social accounts.
- `get_comments`: Retrieve comments on a post. Needs `postId`.
- `get_post_analytics`: Retrieve engagement analytics for a specific post across platforms. Needs `postId`.
- `get_reviews`: Retrieve reviews from Facebook Pages or Google Business Profile. Needs `platform`.
- `generate_hashtags`: Automatically generate and add relevant hashtags to post text using AI. Needs `post`.
- `get_social_analytics`: Retrieve account-level analytics for linked social media accounts. Needs `platforms`.
- `validate_post`: Validate post content before publishing. Needs `post` and `platforms`.
- `get_current_user`: Get the current Ayrshare profile identity and its linked social accounts.
- `get_post_history_by_id`: Retrieve one post by its Ayrshare Post ID, including publication status, social post IDs, URLs, errors, and scheduling details.

### Write tools (8)

- `post_comment`: Post a new comment on a social media post. Needs `postId`, `comment` and `platforms`.
- `send_message`: Send a direct message on Facebook, Instagram, or X/Twitter. Needs `platform` and `recipientId`.
- `create_post`: Publish or schedule a post to one or multiple social networks simultaneously. Needs `post` and `platforms`.
- `upload_media`: Upload an image or video file to Ayrshare's media hosting. Needs `file`.
- `add_feed`: Subscribe to an RSS feed to automatically post new items to social networks. Needs `url` and `platforms`.
- `create_profile`: Create a new user profile for managing social media accounts on behalf of a client. Needs `title`.
- `update_post`: Update a scheduled or pending post. Needs `postId`.
- `retry_post`: Request a retry for a failed post.

### Destructive tools (4)

- `delete_feed`: Remove an RSS feed subscription to stop auto-publishing from that feed. Needs `feedId`.
- `delete_post`: Delete one or more posts from social networks.
- `delete_profile`: Permanently delete a user profile and all associated posts. Needs `profileKey`.
- `delete_comment`: Delete a comment from social media posts across specified platforms. Needs `commentId` and `platforms`.

## Triggers

Ayrshare has 4 triggers, which fire on events in Ayrshare:

- `message_activity`: Triggered on direct messaging activity for Facebook and Instagram.
- `new_feed_item`: Triggered when a new RSS feed item is detected.
- `social_account_changed`: Triggered when a user profile links, unlinks, or refreshes a social network connection.
- `scheduled_post_published`: Triggered when a scheduled post has been processed and published (or failed).

## Next steps

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use Ayrshare there
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Ayrshare on metorial.com](https://metorial.com/integrations/ayrshare): the integration overview