Mega Agent MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Mega Agent MCPsearch latest AI developments"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Mega Agent MCP
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.
Why Mega Agent MCP
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)
Related MCP server: ToolCenter MCP
Architecture
LLM
│
▼
MCP Client
│
▼
Mega Agent MCP
├── Web Search
├── GitHub
├── Docker Sandbox
├── Browser
├── OCR
├── Documents
└── SQLite CacheTool Categories
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_timeFeatures
Web Search & Reading
Web Search — searches the internet through SearXNG with language selection and BM25 ranking.
Article Reader — extracts clean content via a cascade parser (
Trafilatura→Readability→jusText→BeautifulSoup). Automatically strips ads, sidebars, and scripts.Smart Search + Read — a Perplexity-style pipeline: search → BM25 ranking → download → extract → merge top results.
JavaScript Browser — uses Playwright Chromium for JS-heavy sites (React, Vue, SPAs).
GitHub Integration
Repository Reader — analyzes repo trees, extracts
README.md, and detects default branches via the GitHub REST API without cloning.File Reader — downloads and reads individual source files or docs directly from public repositories.
Forum Parsing
Reddit Parser — recursively parses nested Reddit discussions via the JSON API, with sorting, time filters, and internal BM25 search.
4PDA Parser — reads full 4PDA forum topics, supporting
recent,full thread, andfirst/last pagemodes while skipping duplicate header posts.
Secure Code Sandbox Runs code in strictly isolated Docker containers (Python, C, C++, Java, Node.js, PHP).
Security layers: network disabled, read-only filesystem, non-root user (
nobody), capability dropping, seccomp profile support,no-new-privileges, CPU/RAM/PID limits,tmpfsmounts.
Document & Visual Processing
Document Reader — parses PDF, DOCX, PPTX, XLSX, XLS, CSV, and ODS, with smart PDF text extraction and block ordering.
Smart OCR — uses Tesseract OCR; if a PDF is a scanned image, falls back to rendering the page and extracting text visually.
HTML Renderer — uses Playwright to render raw HTML/CSS and generate screenshots (useful for AI UI generation and previews).
Performance
Fully asynchronous architecture — async HTTP calls, parallel downloads, async DB operations
SQLite cache with WAL mode, TTL-based, to cut network overhead
Persistent Playwright browser sessions
RAM-cached BM25 retrieval — lightweight, semantic-like ranking without heavy GPU embeddings
Minimal memory footprint
Security
Mega Agent MCP includes several security layers by default:
SSRF protection — strict URL validation; blocks loopback, private networks, multicast, and link-local addresses (IPv4 and IPv6)
Input validation — hard limits on request payloads (max 1 MB input) and file sizes (max 50 MB documents)
Rate limiting — sliding-window rate limiting to prevent abuse
Installation
1. Clone the repository
cd ~
git clone https://github.com/PanPersil/MegaAgent-MCP.git
cd MegaAgent-MCP2. Install dependencies
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 chromium3. System dependencies
Not everything is installable via pip. Mega Agent MCP also requires:
Docker
Chromium (installed automatically via
playwright install chromium, Linux note: if you encounter an error while loading shared libraries, runsudo playwright install-deps chromium)Tesseract OCR
SearXNG
On Debian/Ubuntu:
sudo apt install tesseract-ocr tesseract-ocr-rus tesseract-ocr-eng4. Start SearXNG (web search backend)
# 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 searxng5. Run the server
python server.pyThe server listens for MCP connections via Streamable-HTTP/WebSocket on http://0.0.0.0:8100/mcp.
Available Tools Reference
Tool Name | Category | Description |
| Internet | Standard internet search using SearXNG. |
| Internet | Reads an article and extracts pure text. |
| Internet | Searches and automatically reads the top N pages. |
| Internet | JavaScript browser for dynamic SPAs. |
| GitHub | Repository analysis and README extraction. |
| GitHub | Reads specific files from a repository. |
| Forums | Deep parser for Reddit / 4PDA discussions. |
| Execution | Secure Docker code execution (Python/C/C++/Java/JS/PHP). |
| Execution | Returns accurate system time. |
| Documents | Renders HTML code to an image screenshot. |
| Documents | Parses PDF, Word, Excel, PPTX (with OCR). |
Comparison
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 |
Roadmap
Web search
GitHub support
Docker sandbox
OCR
Browser automation
Intended Use Cases
Local AI Assistants — connect to
llama.cpp, Ollama, or LM Studio.Coding Agents — automate GitHub exploration and execute code safely.
Research Assistants — aggregate knowledge, read PDFs, and parse forums.
Self-Hosted AI Systems — a private, no-telemetry backend for your LLMs.
Project Status
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.
License
This project is licensed under the MIT License — see the LICENSE file for details.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/PanPersil/MegaAgent-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server