# How to integrate Ayrshare MCP with OpenClaw

```json
{
  "title": "How to integrate Ayrshare MCP with OpenClaw",
  "toolkit": "Ayrshare",
  "toolkit_slug": "ayrshare",
  "framework": "OpenClaw",
  "framework_slug": "openclaw",
  "url": "https://composio.dev/toolkits/ayrshare/framework/openclaw",
  "markdown_url": "https://composio.dev/toolkits/ayrshare/framework/openclaw.md",
  "updated_at": "2026-05-06T08:01:51.842Z"
}
```

## Introduction

OpenClaw is the fastest growing agent harness out there, which can work 24/7 to automate almost any kind of tasks. However, its capabilities are limited to the tools it has access to. Composio allows your OpenClaw to access Ayrshare with authentication management handled for you. You can execute actions on Ayrshare via your favorite OpenClaw interface (Telegram, WhatsApp, TUI, etc), whichever you prefer.

## Also integrate Ayrshare with

- [OpenAI Agents SDK](https://composio.dev/toolkits/ayrshare/framework/open-ai-agents-sdk)
- [Claude Agent SDK](https://composio.dev/toolkits/ayrshare/framework/claude-agents-sdk)
- [Claude Code](https://composio.dev/toolkits/ayrshare/framework/claude-code)
- [Claude Cowork](https://composio.dev/toolkits/ayrshare/framework/claude-cowork)
- [Codex](https://composio.dev/toolkits/ayrshare/framework/codex)
- [Hermes](https://composio.dev/toolkits/ayrshare/framework/hermes-agent)
- [CLI](https://composio.dev/toolkits/ayrshare/framework/cli)
- [Google ADK](https://composio.dev/toolkits/ayrshare/framework/google-adk)
- [LangChain](https://composio.dev/toolkits/ayrshare/framework/langchain)
- [Vercel AI SDK](https://composio.dev/toolkits/ayrshare/framework/ai-sdk)
- [Mastra AI](https://composio.dev/toolkits/ayrshare/framework/mastra-ai)
- [LlamaIndex](https://composio.dev/toolkits/ayrshare/framework/llama-index)
- [CrewAI](https://composio.dev/toolkits/ayrshare/framework/crew-ai)

## TL;DR

### Why use Composio?
Apart from a managed and hosted MCP server, you will get:
- Programmatic tool calling allows LLMs to write its code in a remote workbench to handle complex tool chaining. Reduces to-and-fro with LLMs for frequent tool calling.
- Handling Large tool responses out of LLM context to minimize context rot.
- Dynamic just-in-time access to 20,000 tools across 1000+ other Apps for cross-app workflows. It loads the tools you need, so LLMs aren't overwhelmed by tools you don't need.

## Connect Ayrshare to OpenClaw

### How to install Ayrshare with OpenClaw
### Using Composio API Key and Setup Prompt
- Go to [dashboard.composio.dev](https://dashboard.composio.dev/login?next=/~/org/connect/clients/openclaw&utm_source=toolkits&utm_medium=framework_template&utm_campaign=openclaw&utm_content=setup_prompt)
- Copy the setup prompt
- Run it in your OpenClaw chat interface.
- Authenticate Ayrshare from the [dashboard](https://dashboard.composio.dev/login?next=/~/org/connect/clients/openclaw&utm_source=toolkits&utm_medium=framework_template&utm_campaign=openclaw&utm_content=authenticate)
- Go back to your OpenClaw interface and start asking questions.
### Using OpenClaw/Composio Plugin
1. Install OpenClaw Composio plugin

```bash
openclaw plugins install @composio/openclaw-plugin
```

## What is the Ayrshare MCP server, and what's possible with it?

The Ayrshare MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Ayrshare account. It provides structured and secure access to your social media workflows, so your agent can perform actions like scheduling posts, managing recurring campaigns, fetching post analytics, and deleting content across platforms automatically.
- Automated post scheduling: Set up new auto-post schedules for consistent, hands-off content publishing at your preferred times and days.
- Recurring campaign management: Configure or update recurring posting patterns with customizable time slots and weekday filters to maximize reach.
- Historical post analytics and retrieval: Retrieve your entire Ayrshare post history along with performance metrics, filtering by date, status, or record count as needed.
- Seamless content removal: Delete published or scheduled posts efficiently by specifying their Ayrshare post ID, helping you manage content lifecycles and correct mistakes quickly.

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `AYRSHARE_CREATE_AUTO_SCHEDULE` | Create Auto Schedule | Tool to create a new auto-post schedule with specified times and optional weekday filters. use when setting up recurring posting plans. |
| `AYRSHARE_DELETE_DELETE_POST` | Delete a previously published Ayrshare post | Tool to delete an ayrshare post. use when you need to remove a published or scheduled post by its ayrshare post id, after confirming the correct id. note: instagram and tiktok published posts cannot be deleted via api; set `mark manual deleted=true` or remove manually. |
| `AYRSHARE_GET_POST_HISTORY` | Get Post History | Tool to retrieve ayrshare post history with metrics. use when you need to fetch and filter past posts by date, status, or record count. |
| `AYRSHARE_POST_SET_AUTO_SCHEDULE` | Set Auto Schedule | Tool to set up an auto-post schedule with specified times and optional weekday filters. use when scheduling posts around a recurring pattern. |

## Supported Triggers

None listed.

## Creating MCP Server - Stand-alone vs Composio SDK

The Ayrshare MCP server provides comprehensive access to Ayrshare operations through Composio. Once connected, you can perform all major Ayrshare actions directly from OpenClaw using natural language commands.

## Complete Code

None listed.

## Conclusion

### Conclusion
You've successfully integrated Ayrshare with OpenClaw using Composio plugin. Now interact with Ayrshare directly from your terminal, Web UI, or any messenger app using natural language commands.
Key benefits of this setup:
- Seamless integration across TUI, Web UIs, and Messenger apps like Telegram, WhatsApp, Slack, etc.
- Natural language commands for Ayrshare operations
- Managed authentication through Composio
- Access to 20,000+ tools across 1000+ apps for cross-app workflows
- Programmatic tool calling for complex tool chaining
Next steps:
- Try asking OpenClaw to perform various Ayrshare operations
- Explore cross-app workflows by connecting more toolkits like Calendar, Slack, Notion, etc.
- Build complex automation scripts that leverage OpenClaw's 24/7 running capabilities

## How to build Ayrshare MCP Agent with another framework

- [OpenAI Agents SDK](https://composio.dev/toolkits/ayrshare/framework/open-ai-agents-sdk)
- [Claude Agent SDK](https://composio.dev/toolkits/ayrshare/framework/claude-agents-sdk)
- [Claude Code](https://composio.dev/toolkits/ayrshare/framework/claude-code)
- [Claude Cowork](https://composio.dev/toolkits/ayrshare/framework/claude-cowork)
- [Codex](https://composio.dev/toolkits/ayrshare/framework/codex)
- [Hermes](https://composio.dev/toolkits/ayrshare/framework/hermes-agent)
- [CLI](https://composio.dev/toolkits/ayrshare/framework/cli)
- [Google ADK](https://composio.dev/toolkits/ayrshare/framework/google-adk)
- [LangChain](https://composio.dev/toolkits/ayrshare/framework/langchain)
- [Vercel AI SDK](https://composio.dev/toolkits/ayrshare/framework/ai-sdk)
- [Mastra AI](https://composio.dev/toolkits/ayrshare/framework/mastra-ai)
- [LlamaIndex](https://composio.dev/toolkits/ayrshare/framework/llama-index)
- [CrewAI](https://composio.dev/toolkits/ayrshare/framework/crew-ai)

## Related Toolkits

- [Twitter](https://composio.dev/toolkits/twitter) - Twitter is a social media platform for sharing real-time updates, conversations, and news. Stay connected, informed, and engaged with communities worldwide.
- [Instagram](https://composio.dev/toolkits/instagram) - Instagram is a social platform for sharing photos, videos, and stories with your audience. It helps brands and creators engage, grow, and analyze their online presence.
- [Dotsimple](https://composio.dev/toolkits/dotsimple) - Dotsimple is a social media management platform for planning, creating, and publishing content. It helps teams boost their reach with AI-powered content generation and actionable analytics.
- [Strava](https://composio.dev/toolkits/strava) - Strava is a social fitness network and app for cyclists and runners. It's perfect for tracking workouts, sharing progress, and joining active communities.
- [Tiktok](https://composio.dev/toolkits/tiktok) - Tiktok is a short-form video platform for creating, sharing, and discovering viral content. It helps creators and brands reach massive audiences with creative tools and global social features.
- [Gmail](https://composio.dev/toolkits/gmail) - Gmail is Google's email service with powerful spam protection, search, and G Suite integration. It keeps your inbox organized and makes communication fast and reliable.
- [Google Calendar](https://composio.dev/toolkits/googlecalendar) - Google Calendar is a time management service for scheduling meetings, events, and reminders. It streamlines personal and team organization with integrated notifications and sharing options.
- [Google Drive](https://composio.dev/toolkits/googledrive) - Google Drive is a cloud storage platform for uploading, sharing, and collaborating on files. It's perfect for keeping your documents accessible and organized across devices.
- [Outlook](https://composio.dev/toolkits/outlook) - Outlook is Microsoft's email and calendaring platform for unified communications and scheduling. It helps users stay organized with powerful email, contacts, and calendar management.
- [Google Sheets](https://composio.dev/toolkits/googlesheets) - Google Sheets is a cloud-based spreadsheet tool for real-time collaboration and data analysis. It lets teams work together from anywhere, updating information instantly.
- [Supabase](https://composio.dev/toolkits/supabase) - Supabase is an open-source backend platform offering scalable Postgres databases, authentication, storage, and real-time APIs. It lets developers build modern apps without managing infrastructure.
- [Composio](https://composio.dev/toolkits/composio) - Composio is an integration platform that connects AI agents with hundreds of business tools. It streamlines authentication and lets you trigger actions across services—no custom code needed.
- [Notion](https://composio.dev/toolkits/notion) - Notion is a collaborative workspace for notes, docs, wikis, and tasks. It streamlines team knowledge, project tracking, and workflow customization in one place.
- [Slack](https://composio.dev/toolkits/slack) - Slack is a channel-based messaging platform for teams and organizations. It helps people collaborate in real time, share files, and connect all their tools in one place.
- [Airtable](https://composio.dev/toolkits/airtable) - Airtable combines the flexibility of spreadsheets with the power of a database for easy project and data management. Teams use Airtable to organize, track, and collaborate with custom views and automations.
- [Google Docs](https://composio.dev/toolkits/googledocs) - Google Docs is a cloud-based word processor that enables document creation and real-time collaboration. Its seamless sharing and version history make team editing and content management a breeze.
- [Google Super](https://composio.dev/toolkits/googlesuper) - Google Super is an all-in-one suite combining Gmail, Drive, Calendar, Sheets, Analytics, and more. It gives you a unified platform to manage your digital life, boosting productivity and organization.
- [Hubspot](https://composio.dev/toolkits/hubspot) - HubSpot is an all-in-one marketing, sales, and customer service platform. It lets teams nurture leads, automate outreach, and track every customer interaction in one place.
- [Codeinterpreter](https://composio.dev/toolkits/codeinterpreter) - Codeinterpreter is a Python-based coding environment with built-in data analysis and visualization. It lets you instantly run scripts, plot results, and prototype solutions inside supported platforms.
- [Gong](https://composio.dev/toolkits/gong) - Gong is a platform for video meetings, call recording, and team collaboration. It helps teams capture conversations, analyze calls, and turn insights into action.

## Frequently Asked Questions

### What are the differences in Tool Router MCP and Ayrshare MCP?

With a standalone Ayrshare MCP server, the agents and LLMs can only access a fixed set of Ayrshare tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Ayrshare and many other apps based on the task at hand, all through a single MCP endpoint.

### Can I use Tool Router MCP with OpenClaw?

Yes, you can. OpenClaw fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Ayrshare tools.

### Can I manage the permissions and scopes for Ayrshare while using Tool Router?

Yes, absolutely. You can configure which Ayrshare scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

### How safe is my data with Composio Tool Router?

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Ayrshare data and credentials are handled as safely as possible.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
