RagMCP
A local command-based assistant that enables users to control system tools, play YouTube music, and search various websites using Playwright automation. It supports tasks ranging from media playback and browser navigation to file system operations and system power management.
README
ā 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
git clone https://github.com/yourusername/RagMCP.git
cd RagMCP
Option 2: Download Zip
- Click Download Zip
- Extract to
D:\MINI PROJECTS\RAGMCP
š§° 3. Setup Python Environment
3.1 Create Virtual Environment
python -m venv .venv
3.2 Activate Virtual Environment
Windows PowerShell
.\.venv\Scripts\Activate
š¦ 4. Install Required Packages
Run:
pip install -r requirements.txt
If requirements.txt not exist, install manually:
pip install playwright pyautogui
pip install psutil
ā ļø Playwright Browser Setup
playwright install
š 5. Run the Server
Start RagMCP Server
ragmcp
If command not found:
python -m ragmcp
š§© 6. How to Use RagMCP (JSON Commands)
Example format:
{"id": 1, "method": "METHOD_NAME", "params": {"param": "value"}}
šÆ 7. YouTube Tool Commands
Case 1: Play Specific Song
{"id": 1, "method": "play_youtube_direct", "params": {"query": "Naa Ready song"}}
Case 2: Play Trending Music
{"id": 1, "method": "play_trending_music", "params": {}}
Case 3: Play Favourite Song
{"id": 1, "method": "play_youtube_from_favourites", "params": {"favourite": "A.R. Rahman"}}
Mood Based Music
{"id": 1, "method": "play_youtube_mood", "params": {"mood": "happy"}}
š 8. Web Tools Commands
Open any website
{"id": 1, "method": "open_website", "params": {"site": "google"}}
Search on Google
{"id": 1, "method": "search_google", "params": {"query": "Thalapathy aesthetic"}}
Search on FitGirl
{"id": 1, "method": "search_fitgirl", "params": {"query": "Batman Arkham City"}}
Search on Pinterest
{"id": 1, "method": "search_pinterest", "params": {"query": "Thalapathy aesthetics"}}
š„ļø 9. System Tools Commands
Create Folder
{"id": 1, "method": "create_folder", "params": {"path": "C:\\Users\\User\\Desktop\\afrah"}}
Set Wallpaper
{"id": 1, "method": "set_wallpaper", "params": {"path": "D:\\wallpapers\\image.jpg"}}
Shutdown PC
{"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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.