Agentfy
🤖 Agentfy is a modular microservices architecture designed to process user requests and execute workflows across multiple social media platforms. ASK ONCE, LET THE AGENT DO THE REST!
claude mcp add --transport stdio agentfy-io-agentfy python run_agent_cli.py \ --env LOG_LEVEL="INFO" \ --env X_API_KEY="your_x_api_key" \ --env X_API_SECRET="your_x_api_secret" \ --env OPENAI_API_KEY="your_openai_api_key" \ --env TIKTOK_API_KEY="your_tiktok_api_key" \ --env YOUTUBE_API_KEY="your_youtube_api_key" \ --env INSTAGRAM_API_KEY="your_instagram_api_key" \ --env TIKTOK_API_SECRET="your_tiktok_api_secret" \ --env INSTAGRAM_API_SECRET="your_instagram_api_secret"
How to use
Agentfy is a modular, multi-agent coordination system designed to automate social media workflows using a flexible MCP (Model Context Protocol). It orchestrates multiple agents to reason, perceive, and act across platforms like TikTok, Instagram, YouTube, and X, enabling tasks such as buyer targeting, cross-platform promotions, content transformation, and automated messaging. After starting the server, you can interact with the CLI to trigger agent workflows or launch the Streamlit-based UI for a graphical interface. The system relies on your API keys and environment configurations to access social media services and OpenAI for reasoning and task planning. The included agents can be extended or customized by adding new sub-agents under the agents/ directory and updating the agent registry.
How to install
Prerequisites:
- Python 3.11+ installed on your machine
- Access keys for required platforms (OpenAI, X, YouTube, TikTok, Instagram, etc.)
- Git installed
Installation steps:
- Clone the repository git clone https://github.com/callmeiks/Agentfy.git
- Navigate to the project directory cd Agentfy
- Create and configure a virtual environment (optional but recommended) python -m venv venv source venv/bin/activate # On Windows use: venv\Scripts\activate
- Install Python dependencies pip install -r requirements.txt
- Set up environment variables
- Create a .env file or export variables in your shell, e.g.: export OPENAI_API_KEY=your_key_here export X_API_KEY=your_key_here export X_API_SECRET=your_secret_here export YOUTUBE_API_KEY=your_key_here
- Ensure any platform-specific keys are present
- Run the Agentfy CLI or UI (see next section)
Notes:
- If you modify agents, ensure they follow the existing directory structure and update agent_registry.json accordingly.
Additional notes
Tips and common issues:
- Ensure all required API keys are valid and have the necessary permissions for the actions you intend to perform (posting, DMs, data retrieval).
- If the MCP server cannot access external services, check network restrictions, firewall rules, and environment variable availability within the runtime environment.
- When adding new sub-agents, follow the documented registry format and test in CLI mode before switching to the UI to validate behavior.
- For debugging, set LOG_LEVEL to DEBUG in the environment to get verbose logs.
- If running locally, ensure the platform APIs you plan to use support your development environment and provide the correct redirect/Callback URLs where required.
Related MCP Servers
mcp-agent
Build effective agents using Model Context Protocol and simple workflow patterns
code-mode
🔌 Plug-and-play library to enable agents to call MCP and UTCP tools via code execution.
AgentCrew
Chat application with multi-agents system supports multi-models and MCP
pubmed
A Model Context Protocol (MCP) server enabling AI agents to intelligently search, retrieve, and analyze biomedical literature from PubMed via NCBI E-utilities. Includes a research agent scaffold. STDIO & HTTP
asap-protocol
Production-ready standard for agent-to-agent communication. Stateful orchestration, MCP-compatible, with a public marketplace to discover and register agents.
litemcp
A minimal, lightweight client designed to simplify SDK adoption into MCP