MetorialDocs

Set up Ayrshare in Metorial for Claude, ChatGPT and Cursor

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'll 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

Sign-in method

MethodTypeWhat a person provides
API KeyAPI tokenapiKey

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

Open Shared Resources

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

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.

Limit the tools

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

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:

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

Employee: connect Ayrshare

In the portal

Open Ayrshare in the catalog

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

Authenticate

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

Confirm

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

With the CLI

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.

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.

Check it worked

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