---
# β
RagMCP Project Manual (Developer Guide)
---
## π₯ 1. Project Overview
RagMCP is a **local command-based assistant** that:
β
Opens websites
β
Plays YouTube songs using Playwright
β
Controls system tools (create folder, set wallpaper, shutdown PC)
β
Searches websites like FitGirl, Pinterest, etc.
It works using a **server (ragmcp)** that listens to JSON commands and performs actions.
---
# π₯ 2. Download the Project
### Option 1: Clone GitHub Repo
```bash
git clone https://github.com/yourusername/RagMCP.git
cd RagMCP
```
### Option 2: Download Zip
1. Click **Download Zip**
2. Extract to `D:\MINI PROJECTS\RAGMCP`
---
# π§° 3. Setup Python Environment
### 3.1 Create Virtual Environment
```bash
python -m venv .venv
```
### 3.2 Activate Virtual Environment
#### Windows PowerShell
```bash
.\.venv\Scripts\Activate
```
---
# π¦ 4. Install Required Packages
Run:
```bash
pip install -r requirements.txt
```
**If requirements.txt not exist**, install manually:
```bash
pip install playwright pyautogui
pip install psutil
```
### β οΈ Playwright Browser Setup
```bash
playwright install
```
---
# π 5. Run the Server
### Start RagMCP Server
```bash
ragmcp
```
If command not found:
```bash
python -m ragmcp
```
---
# π§© 6. How to Use RagMCP (JSON Commands)
### Example format:
```json
{"id": 1, "method": "METHOD_NAME", "params": {"param": "value"}}
```
---
# π― 7. YouTube Tool Commands
### Case 1: Play Specific Song
```json
{"id": 1, "method": "play_youtube_direct", "params": {"query": "Naa Ready song"}}
```
### Case 2: Play Trending Music
```json
{"id": 1, "method": "play_trending_music", "params": {}}
```
### Case 3: Play Favourite Song
```json
{"id": 1, "method": "play_youtube_from_favourites", "params": {"favourite": "A.R. Rahman"}}
```
### Mood Based Music
```json
{"id": 1, "method": "play_youtube_mood", "params": {"mood": "happy"}}
```
---
# π 8. Web Tools Commands
### Open any website
```json
{"id": 1, "method": "open_website", "params": {"site": "google"}}
```
### Search on Google
```json
{"id": 1, "method": "search_google", "params": {"query": "Thalapathy aesthetic"}}
```
### Search on FitGirl
```json
{"id": 1, "method": "search_fitgirl", "params": {"query": "Batman Arkham City"}}
```
### Search on Pinterest
```json
{"id": 1, "method": "search_pinterest", "params": {"query": "Thalapathy aesthetics"}}
```
---
# π₯οΈ 9. System Tools Commands
### Create Folder
```json
{"id": 1, "method": "create_folder", "params": {"path": "C:\\Users\\User\\Desktop\\afrah"}}
```
### Set Wallpaper
```json
{"id": 1, "method": "set_wallpaper", "params": {"path": "D:\\wallpapers\\image.jpg"}}
```
### Shutdown PC
```json
{"id": 1, "method": "shutdown_pc", "params": {}}
```
---
# π§ 10. Important Notes
βοΈ Always run **ragmcp server first**
βοΈ Use **Chrome-based browsers** for best stability
βοΈ Playwright opens browser automatically and waits until user closes it
βοΈ Do not change logic without understanding it
---
# π Project Finalization
Once you run all tools and verify functionality:
β
Save project
β
Commit to GitHub
β
Share with developer
---