Ayrshare MCP server for AI agents

Live

BEARER TOKEN

SOCIAL MEDIA

Marketing

Ayrshare gives your agent social media publishing in your Ayrshare account: create and schedule posts, reply to comments and messages, shorten links, and pull post and account analytics.

  • Per-user credentials: each call uses the actual user's access token, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Ayrshare
agent · Acme Q3
Run
How did my last LinkedIn post perform?
S
ayrshare_post_analytics_get
388ms
Social agent
Your last LinkedIn post reached 4,210 impressions with 96 likes and 11 comments.
Sources: Ayrshare post analytics, 1 post
ayrshare
4,210 impressions
18:29
Message Claude...

Tools your social media agent reaches for on Ayrshare, scoped per user.

CALL ANY TOOL
58 tools for social media in Ayrshare: publish and schedule posts, manage comments, messages, and reviews, shorten links, generate hashtags and alt text, and read post and social analytics.
ayrshare_auto_schedule_delete
Delete auto schedule
Delete an auto schedule by title, or the default schedule if no title is given. Returns the delete status. Posts already scheduled from it keep their times.
Parameters
Name
Type
Required
Description
delete_last_schedule_date
boolean
Optional
Reset the schedule's starting point to the current time. When set to true, this will clear the last used schedule date, causing any new posts to be scheduled starting from the current time. Any posts that were already scheduled will remain unchanged and publish at their original times. Example: true.
title
string
Optional
The title of the schedule to delete. This should match a schedule title that was previously created using the Set Auto Schedule endpoint. If no title is provided, the system will attempt to delete the "default" schedule. Example: default.
ayrshare_auto_schedule_list
List auto schedule
ayrshare_auto_schedule_set
Set auto schedule
ayrshare_comment_create
Create comment
ayrshare_comment_reply
Comment reply
ayrshare_comments_delete
Delete comments
ayrshare_comments_get
Get comments
ayrshare_content_moderate
Content moderate
ayrshare_feed_add
Add feed
ayrshare_feed_update
Update feed
ayrshare_feeds_list
List feeds
ayrshare_hashtags_recommend
Hashtags recommend
ayrshare_history_get
Get history
ayrshare_media_list
List media
ayrshare_media_metadata_get
Get media metadata
ayrshare_media_url_verify
Verify media url
ayrshare_message_send
Send message
ayrshare_platform_history_list
List platform history
ayrshare_post_copy
Copy post
ayrshare_post_create
Create post
ayrshare_post_delete
Delete post
ayrshare_post_get
Get post
ayrshare_post_retry
Retry post
ayrshare_post_text_generate
Generate post text
ayrshare_post_update
Update post
ayrshare_profile_delete
Delete profile
ayrshare_reviews_list
List reviews
ayrshare_sentiment_analyze
Sentiment analyze
ayrshare_social_analytics_get
Get social analytics
ayrshare_webhook_register
Webhook register

For more tools, view docs.

Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Ayrshare tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["ayrshare"], toolNames: [
    "ayrshare_post_create",
    "ayrshare_post_analytics_get",
    "ayrshare_comment_reply"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Publish this announcement to LinkedIn and X, then reply to the top comment and report impressions" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["ayrshare"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Publish this announcement to LinkedIn and X, then reply to the top comment and report impressions" }],
  tools,
});

// Execute the tool call with the user's vaulted Ayrshare access token
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["ayrshare"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Publish this announcement to LinkedIn and X, then reply to the top comment and report impressions" }],
  tools,
});

// Tool call runs with the user's vaulted Ayrshare access token
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["ayrshare"] }, pageSize: 100,
});

const agent = new Agent({
  name: "social_agent",
  model: "gemini-2.5-pro",
  instruction: "Ayrshare tools scoped to this user",
  tools,
});

await agent.run("Publish this announcement to LinkedIn and X, then reply to the top comment and report impressions");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Ayrshare tool. Click to copy, paste into your agent, done.
Publish and schedule
Copy the prompt
Copied
Publish this post to LinkedIn and X now.
Copy the prompt
Copied
Reschedule my pending post to Friday at 9am.
Copy the prompt
Copied
Check this post for length and media problems before I send it.
Engagement
Copy the prompt
Copied
Show the comments on my latest post.
Copy the prompt
Copied
Reply to the top comment on my last Instagram post.
Copy the prompt
Copied
List the reviews on my Google Business Profile.
Analytics and content
Copy the prompt
Copied
Get impressions and likes for my last post.
Copy the prompt
Copied
Suggest TikTok hashtags for the keyword running.
Copy the prompt
Copied
Generate alt text for this image URL.
SEE HOW AUTH WORKS
Each user connects their own Ayrshare access token once, and Scalekit sends it with every call. Tokens stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Ayrshare
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Ayrshare
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Ayrshare
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Ayrshare
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other marketing and communication connectors.
GTM and RevOps Teams
Outbound prospecting agent
Searches Apollo for prospects matching your ICP, scores and ranks them, drafts personalized outreach in Gmail, and logs every send to Google Sheets. Mail goes out as the rep, not from a shared inbox.
Engineering Teams
Slack triage
Polls Slack for new messages, classifies bugs and support requests with a LangGraph router, files GitHub issues or Zendesk tickets, and confirms in the thread.
Test other agents
See the same per-user auth pattern across other marketing and communication connectors.
SALES
Outbound prospecting agent
Search Apollo for ICP matches, rank them, draft personalised Gmail outreach, and log every send to Google Sheets.
ENGINEERING
Slack triage agent
Classify new Slack messages as bugs or support requests, file the GitHub issue or Zendesk ticket, and reply in the thread.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Ayrshare access token looks fine in a demo. In production every scheduled post looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared token
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Ayrshare today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Ayrshare as the user or through a shared token?
As the user. Each user connects their own Ayrshare access token once, and Scalekit sends it with every call. Audit logs attribute every post, comment, and message to that user, not a shared service account.
Where is the Ayrshare access token stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new access token. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Ayrshare?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example analytics and history tools without ayrshare_post_delete, which deletes published or scheduled posts, or ayrshare_profile_delete, which permanently deletes a User Profile and all its posts. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Ayrshare access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Can the agent manage User Profiles under a primary profile?
Yes, on the right Ayrshare plan. ayrshare_profiles_list lists the User Profiles under the primary profile, and ayrshare_profile_create creates one on the Business plan. ayrshare_profile_delete permanently deletes a profile and all its posts, so leave it out of toolNames unless you need it.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""ayrshare"": {
""url"": ""https://mcp.scalekit.com/ayrshare"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.ayrshare]
url = ""https://mcp.scalekit.com/ayrshare""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""ayrshare"": {
""url"": ""https://mcp.scalekit.com/ayrshare"",
""type"": ""http""
}
}
}