Reddit-News-Agent-System-Using-MCP-and-ADK
This system is an agent that automatically collects and analyzes news from Reddit. Utilizing MCP and ADK, it achieves efficient data processing and workflow automation. Users can receive a customized news feed based on their topics of interest.
GitHub Stars
0
User Rating
Not Rated
Favorites
0
Views
23
Forks
0
Issues
0
Reddit-News-Agent-System-Using-MCP-and-ADK
In this project multiple agents are created to fetch news from Reddit's subreddits based on user's query in natural language, summarized in the newscaster format and the final summarized news is returned to the user. Multimodality is also integrated in this project where, user can hear the summarized news in English instead of just reading the text information. This project is built using Google's Agent Development Kit which was recently released for building agents from scratch and for easy deployement and for production and, using Model Context Protocol released by Anthropic recently for effective communication within agents and between multiple tools and agents.
Agents
- Reddit Scout: Simulates fetching recent discussion titles from game development subreddits.
- Summarizer:
- Text-to-Speech:
General Setup
Clone the repository:
git clone https://github.com/RishabhMathur06/Reddit-News-Agent-System-Using-MCP-and-ADK cd agentsCreate and activate a virtual environment (Recommended):
python -m venv .venv # On Windows .\.venv\Scripts\activate # On macOS/Linux source .venv/bin/activateInstall general dependencies:
pip install -r requirements.txtAgent-Specific Setup: Navigate to the specific agent's directory within
agents/and follow the instructions in itsREADME.md(or follow the steps below for the default agent).
Setup & Running Agents
Navigate to Agent Directory:
cd agents/reddit_scoutSet up API Key:
- Copy the example environment file:
cp ../.env.example .env - Edit the
.envfile and add your GoogleAI API Key, Reddit Credentials and Elevenlabs API Key.GOOGLE_GENAI_USE_VERTEXAI="False" GOOGLE_API_KEY="<Gemini API Key>" REDDIT_CLIENT_ID="<Reddit Client ID>" REDDIT_CLIENT_SECRET="<Reddit Client Secret Key>" REDDIT_USER_AGENT="GameDevNewsScout/0.1 by <your user-id>" # This can be configured. ELEVENLABS_API_KEY="<Elevenlabs API Key>" - Note: You might need to load this into your environment depending on your OS and shell (
source .envor similar) ifpython-dotenvdoesn't automatically pick it up when runningadk.
- Copy the example environment file:
Run the Agent:
- Make sure your virtual environment (from the root directory) is activated.
- From the
agents/reddit_scoutdirectory, run the agent using the ADK CLI, specifying the core code package:adk run aync_reddit_scout - Alternatively, from the project root (
Reddit-News-Agent-System-Using-MCP-and-ADK), you might be able to run:
(Check ADK documentation for preferred discovery method)adk run agents/async_reddit_scout - Asynchronous agents can only be run from the web view, so first
cdinto theagentsdirectory and run
(Check ADK documentation for preferred discovery method)adk web
Interact: The agent will start, and you can interact with it in the terminal. Try prompts like:
What's the latest news?Give me news from unrealengineSummarize the whole informationConvert this whole news to speech
Project Structure Overview
Reddit News Agent MCP ADK/
├── agents/
│ ├── reddit_scout/
│ │ ├── __init__.py
│ │ └── agent.py
│ ├── async_reddit_scout/
│ │ ├── __init__.py
│ │ └── agent.py
│ ├── summarizer/
│ │ ├── __init__.py
│ │ └── agent.py
│ ├── speaker/
│ │ ├── __init__.py
│ │ └── agent.py
│ └── coordinator/
│ ├── __init__.py
│ └── agent.py
├── .env # Environment variables example
├── .gitignore # Root gitignore file
├── requirements.txt # Project dependencies
└── README.md # This file (Overall Project README)
0
Followers
0
Repositories
0
Gists
0
Total Contributions
AGENTIX is an automation tool built with Python, designed to enable users to efficiently execute specific tasks. With an intuitive interface and powerful features, it is accessible even to users with limited programming knowledge. It offers a wide range of functionalities, including task automation, data processing, and API integration.
The Todo.txt MCP Server is a powerful Model Context Protocol server that connects your todo.txt files to AI assistants. It allows you to manage your todo list using natural language while maintaining the simplicity and portability of the todo.txt format. You can create, update, and delete tasks with AI assistance, and it provides statistics and insights about your productivity. It also integrates seamlessly with existing todo.sh setups.