Local Machine MCP Server
Turns your local machine into an MCP server with a GUI, allowing agents to execute file operations, run commands (including admin), manage background processes, and query databases, with optional ngrok exposure.
README
Local Machine MCP Server 🖥️ (Agent Edition · GUI + .exe + ngrok)
برنامج سطح مكتب بسيط بواجهة رسومية بيحوّل جهازك لـ "MCP server" بيشتغل عبر HTTP endpoint، عشان عملاء زي Traycer / Claude / Cline (اللي بيطلبوا Endpoint URL) يتصلوا بيه ويتصرفوا كأنهم agent كامل على جهازك: قراءة/كتابة ملفات، تنفيذ أوامر (عادية أو admin)، تشغيل عمليات في الخلفية، والاتصال بقواعد البيانات. كل ده بضغطة زرار، ومع دعم ngrok لتطليع لينك عام.
⚠️ تحذير أمني: البرنامج ده بيدّي صلاحية تنفيذ أوامر وتعديل ملفات على جهازك، ولو فعّلت ngrok بيعرّضه على النت. استخدمه بحذر شديد، فعّل ngrok فقط وقت الحاجة، استخدم API Token، ووصّله بعملاء موثوقين. كل عمليات الملفات مقيّدة بالفولدر اللي تختاره.
✨ المميزات
- 🖱️ واجهة رسومية بسيطة (تشغيل/إيقاف بضغطة)
- 📁 اختيار الفولدر المسموح بالـ Browse
- 🔐 API Token اختياري لحماية الـ endpoint
- 🌐 خانة لـ ngrok API key عشان تطلّع Endpoint URL عام
- 📋 الـ Endpoint URL بيظهر جاهز للنسخ بضغطة
- 📜 شاشة Log حيّة
- 📦 يتبني لملف .exe واحد
التشغيل من السورس
git clone https://github.com/authmeonline/local-machine-mcp.git
cd local-machine-mcp
pip install -r requirements.txt
python gui.py
بناء ملف .exe
شغّل:
build_exe.bat
هتلاقي البرنامج في: dist\LocalMachineMCP.exe
طريقة الاستخدام
- افتح البرنامج (أو الـ .exe).
- اختار الفولدر المسموح (مثلاً مشروعك).
- (اختياري لكن مهم مع ngrok) حط API Token عشان تأمّن الوصول.
- لو عايز لينك عام: فعّل Expose publicly via ngrok وحط ngrok API key بتاعك.
- تجيب الـ authtoken من: https://dashboard.ngrok.com/get-started/your-authtoken
- اضغط ▶ Start Server.
- انسخ Endpoint URL اللي ظهر وحطه في العميل (Traycer/Claude/...).
الأدوات اللي بيعرضها
ملفات: list_allowed_dirs · list_directory · read_file · write_file · append_file · patch_file · delete_file · make_dir · delete_dir · move_file · copy_file
بحث: grep_search (بحث regex جوه الملفات زي ripgrep، بدعم سطور السياق before_context/after_context/context) · find_files (البحث عن ملفات بـ glob)
أوامر/عمليات: run_command (يدعم elevated=True للصلاحيات الإدارية) · run_background · kill_process
قواعد بيانات: db_query (يدعم sqlite / postgres / mysql)
لو فعّلت API Token، لازم تمرّر
api_tokenمع كل أداة.
أمثلة سريعة
- تعديل سطر في ملف:
patch_file(path, old_text, new_text) - تشغيل سيرفر تطوير في الخلفية:
run_background("npm run dev") - استعلام قاعدة بيانات:
db_query(engine="postgres", query="SELECT * FROM users", dsn="postgresql://user:pass@localhost/db")
ملاحظة مهمة عن العمل مع Traycer
سلوك Traycer (تخطيط vs تنفيذ) متحكم فيه من Traycer نفسه. Traycer بينفّذ الكود عن طريق Execution Agent المدمج جواه مباشرةً على الـ workspace المفتوح. السيرفر ده مفيد أكتر مع عملاء MCP تانيين (Claude/Cline)، أو لتنفيذ على جهاز remote، أو للوصول لقواعد بيانات.
الأمان
- كل عمليات الملفات مقيّدة بالفولدر المختار.
run_commandبينفّذ بصلاحيات المستخدم الحالي (أو admin لوelevated=True).- استخدم API Token دايماً لما تفعّل ngrok.
- ngrok بيعرّض جهازك على النت — فعّله بحذر.
- متشغّلش البرنامج بصلاحيات admin إلا للضرورة.
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.
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.
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.
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.