Are you the author? Sign in to claim
Production-ready MCP server featuring web search, intelligent article extraction, GitHub integration, forum parsing, sec
Mega Agent MCP is a production-ready Model Context Protocol (MCP) server that gives Large Language Models a wide set of external capabilities: web search, article extraction, GitHub analysis, document parsing, browser automation, secure code execution, and forum parsing.
The project focuses on being a fast, lightweight, and self-hostable backend that works with any MCP-compatible client or AI model.
Most MCP servers implement one or two tools. Mega Agent MCP combines many capabilities into a single optimized server while keeping security, performance, and resource usage under control.
It removes the need to run five different MCP servers by providing one unified, async-first backend with its own SQLite caching, Docker sandboxing, and rate limiting.
(Demo GIF placeholder)
LLM
│
▼
MCP Client
│
▼
Mega Agent MCP
├── Web Search
├── GitHub
├── Docker Sandbox
├── Browser
├── OCR
├── Documents
└── SQLite Cache
Internet
├── web_search
├── fetch_page
├── search_and_read
└── browse_url
GitHub
├── fetch_github_repo
└── fetch_github_file
Forums
└── fetch_thread
Documents
├── read_document
└── render_html_css
Execution
├── execute_code
└── get_current_time
Web Search & Reading
Trafilatura → Readability → jusText → BeautifulSoup). Automatically strips ads, sidebars, and scripts.GitHub Integration
README.md, and detects default branches via the GitHub REST API without cloning.Forum Parsing
recent, full thread, and first/last page modes while skipping duplicate header posts.Secure Code Sandbox Runs code in strictly isolated Docker containers (Python, C, C++, Java, Node.js, PHP).
nobody), capability dropping, seccomp profile support, no-new-privileges, CPU/RAM/PID limits, tmpfs mounts.Document & Visual Processing
Mega Agent MCP includes several security layers by default:
cd ~
git clone https://github.com/PanPersil/MegaAgent-MCP.git
cd MegaAgent-MCP
Requires Python 3.11+. A virtual environment is recommended.
# Create and activate virtual environment
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
# Install python packages
pip install -r requirements.txt
# Install Playwright browser for rendering
playwright install chromium
Not everything is installable via pip. Mega Agent MCP also requires:
playwright install chromium, Linux note: if you encounter an error while loading shared libraries, run sudo playwright install-deps chromium)On Debian/Ubuntu:
sudo apt install tesseract-ocr tesseract-ocr-rus tesseract-ocr-eng
# Create directory to SearXNG service
mkdir ~/searxng && cd ~/searxng
# Copy settings.yml from the cloned repository
cp ~/MegaAgent-MCP/settings.yml ~/searxng/settings.yml
# Run SearXNG container
docker run -d --name searxng -p 8888:8080 -v $(pwd)/settings.yml:/etc/searxng/settings.yml searxng/searxng
# Enable auto-restart so it survives reboots
docker update --restart unless-stopped searxng
python server.py
The server listens for MCP connections via Streamable-HTTP/WebSocket on http://0.0.0.0:8100/mcp.
| Tool Name | Category | Description |
|---|---|---|
web_search | Internet | Standard internet search using SearXNG. |
fetch_page | Internet | Reads an article and extracts pure text. |
search_and_read | Internet | Searches and automatically reads the top N pages. |
browse_url | Internet | JavaScript browser for dynamic SPAs. |
fetch_github_repo | GitHub | Repository analysis and README extraction. |
fetch_github_file | GitHub | Reads specific files from a repository. |
fetch_thread | Forums | Deep parser for Reddit / 4PDA discussions. |
execute_code | Execution | Secure Docker code execution (Python/C/C++/Java/JS/PHP). |
get_current_time | Execution | Returns accurate system time. |
render_html_css | Documents | Renders HTML code to an image screenshot. |
read_document | Documents | Parses PDF, Word, Excel, PPTX (with OCR). |
| Feature | Mega Agent MCP | Typical MCP Server |
|---|---|---|
| Web Search | Yes | Partial |
| GitHub Integration | Yes | No |
| OCR | Yes | No |
| Docker Sandbox | Yes | No |
| Forum Parsing | Yes | No |
| Browser Rendering | Yes | Partial |
llama.cpp, Ollama, or LM Studio.Current Status: Production Ready
Mega Agent MCP is considered production-ready for self-hosted and local AI deployments. While actively maintained and stable, minor bugs or edge cases may still exist. Contributions, issue reports, and feature suggestions are always welcome.
This project is licensed under the MIT License — see the LICENSE file for details.
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
Google's universal MCP server supporting PostgreSQL, MySQL, MongoDB, Redis, and 10+ databases
Official GitHub integration for repos, issues, PRs, and CI/CD workflows