MCP Hub
Back to servers

MSG - MCP Swarm Gateway

Turns web-based AIs into full-powered agents with local PC access, 33 tools across 8 categories, and parallel swarm orchestration with real-time validation.

glama
Updated
May 11, 2026

MSG - MCP Swarm Gateway

Universal MCP Bridge + Multi-Agent Swarm Orchestrator

Turn any web-based AI (ChatGPT, Claude, Grok, Kimi, DeepSeek, Gemini) into a full-powered agent with access to your local PC, terminal, browser, and code execution - with a swarm of parallel agents validated in real-time.


What Makes MSG Different

FeatureMCP SuperAssistantOther ToolsMSG
Web AI Chat Support11 platforms2-511+ platforms
Local MCP Tools~10Varies33 tools, 8 categories
Multi-Agent SwarmNoNoYes - parallel agents
Parallel ValidationNo (just pytest)NoReview agents + pytest
Custom Skills/PluginsNoLimitedHot-loadable skill system
Web DashboardNoNoReal-time monitoring
Browser ExtensionYesNoYes (11 platforms)

Architecture

Web AI Chats (ChatGPT, Claude, Grok, Kimi, DeepSeek, Gemini...)
         |
    HTTP/WebSocket (CORS-enabled)
         |
    +----v--------------+---------------+
    |   MSG GATEWAY     |  SWARM ORCH.  |
    |   (FastAPI)       |  (Parallel)   |
    +----v--------------+---------------+
         |
    +----v--------------+
    |  MCP LOCAL TOOLS  |
    |  (33 tools)       |
    +----v--------------+
    |  Your PC          |
    |  Files, Terminal  |
    |  Browser, Code    |
    +-------------------+

Quick Start

1. Install Dependencies

pip install mcp[cli] fastapi uvicorn websockets pyyaml jinja2 psutil httpx

Optional (for browser tools):

pip install playwright
playwright install chromium

2. Run MSG

cd msg
python run.py

The dashboard will be available at:

3. Install Browser Extension

  1. Open Chrome/Firefox extensions page
  2. Enable "Developer mode"
  3. Click "Load unpacked" and select the extension/ folder
  4. The MSG tool panel will appear on supported AI chat sites

4. Connect Your AI Chat

Option A: Browser Extension (Recommended)

The extension automatically injects MCP tool capabilities into:

  • ChatGPT (chatgpt.com)
  • Claude (claude.ai)
  • Grok (grok.x.ai)
  • Kimi (kimi.ai)
  • DeepSeek (chat.deepseek.com)
  • Gemini (gemini.google.com)
  • Perplexity (perplexity.ai)
  • Mistral (chat.mistral.ai)
  • OpenRouter (openrouter.ai)
  • T3 Chat (t3.chat)

Option B: Direct API

Send tool calls directly from any app:

curl -X POST http://localhost:8765/api/v1/tools/execute_command \
  -H "Content-Type: application/json" \
  -d '{"params": {"command": "ls -la"}}'

Option C: WebSocket (Real-time)

const ws = new WebSocket('ws://localhost:8765/ws');
ws.send(JSON.stringify({
    tool: 'read_file',
    params: {path: '/path/to/file.txt'}
}));
ws.onmessage = (e) => console.log(JSON.parse(e.data));

33 Built-in MCP Tools

Filesystem (8)

ToolDescription
read_fileRead text file with optional offset/limit
write_fileWrite or overwrite a file
append_fileAppend content to a file
list_directoryList files with metadata (size, mtime)
search_filesRecursive glob search
create_directoryCreate directory structure
delete_pathDelete file or directory
get_file_infoSize, modified time, permissions

Terminal (3)

ToolDescription
execute_commandRun shell command with timeout (security sandboxed)
execute_scriptRun a script file
start_background_processStart daemon process, return PID

Browser (4)

ToolDescription
browser_visitNavigate to URL, get page content
browser_clickClick element by selector
browser_inputFill form input
browser_screenshotCapture page screenshot

Code Execution (3)

ToolDescription
run_pythonExecute Python code in isolated subprocess
run_javascriptExecute JS via Node.js
evaluate_expressionEvaluate math/code expressions

System (4)

ToolDescription
get_system_infoCPU, RAM, disk, OS info
list_processesRunning processes
kill_processKill process by PID
search_webWeb search via DuckDuckGo

Git (4)

ToolDescription
git_statusRepository status
git_logCommit history
git_diffCurrent diff
git_execRun any git command

Docker (4)

ToolDescription
docker_psList containers
docker_execExecute in container
docker_logsContainer logs
docker_runRun new container

Dev Tools (3)

ToolDescription
npm_installnpm install
pip_installpip install
run_testsRun pytest/jest

Swarm Orchestrator

The swarm executes complex projects with parallel validation:

  1. You submit a project: "Build a Python web scraper"
  2. Project Manager decomposes it into tasks
  3. Code Agents (parallel) write the code
  4. Review Agents (parallel) validate each batch - checking syntax, docstrings, error handling
  5. Verdict: PASS / WARNING / REVISE
  6. Debug Agent fixes REVISE items
  7. Test Agent runs integration tests
  8. Results delivered

Parallel Validation (The Key Feature)

Unlike other systems that only run pytest after code is done, MSG runs Review Agents in parallel with Code Agents. While one agent is still writing code, another is already reviewing what was just completed. This catches issues immediately, not after hours of work.

Submit a Swarm Task

curl -X POST http://localhost:8765/api/v1/swarm/task \
  -H "Content-Type: application/json" \
  -d '{"description": "Build a calculator app", "files": ["calc.py", "test_calc.py"]}'

Check status:

curl http://localhost:8765/api/v1/swarm/task/{task_id}

Configuration

Edit config.yaml:

gateway:
  host: "0.0.0.0"
  port: 8765

security:
  allowed_directories:
    - "/home/yourname/projects"
  blocked_commands:
    - "rm -rf /"
  max_execution_time: 30

swarm:
  max_parallel_agents: 5
  review_strictness: "strict"

Security

  • Path sandboxing: Tools can only access allowed directories
  • Command blocklist: Dangerous commands are rejected
  • Execution timeouts: No infinite hangs
  • Output limits: Prevents memory exhaustion
  • Optional auth: Token-based API authentication

Tech Stack

ComponentTechnology
MCP Servermcp (FastMCP) Python SDK
GatewayFastAPI + WebSockets
Process Mgmtasyncio + subprocess
BrowserPlaywright
Message Busasyncio Queue
DashboardFastAPI + Jinja2 + vanilla JS
ExtensionVanilla JS (content script)

Project Stats

  • 34 Python files, 3,693 lines of code
  • 33 MCP tools across 8 categories
  • 5 agent types in the swarm (coder, reviewer, tester, debugger + orchestrator)
  • 11 AI platforms supported via browser extension
  • 6 dashboard pages with real-time WebSocket updates
  • 100% syntax clean - all files pass py_compile

License

MIT - Use it, modify it, make money with it. Go get 'em.

Reviews

No reviews yet

Sign in to write a review