mcp-agent-bridge
Enables Notion to act as a coding frontend by providing MCP tools for filesystem operations and terminal command execution on the local machine, with active project switching and authentication.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP Agent Bridge
Give AI agents real hands on your Windows machine.
Dual streamable MCP servers for file system operations and terminal execution with token authentication, safety guards, undo history, and an optional Cloudflare Tunnel.
Overview
MCP Agent Bridge connects remote and local AI agents (such as Claude Code, Cursor, VS Code, or custom cloud agents) to your local Windows environment via two dedicated HTTP MCP servers:
π Files System (
:9500): Safe file reading (paged text, auto-image detection), editing with atomic replacements, file tree management, undo backups, and binary zip packing.β‘ Terminal (
:9501): Command execution (cmd.exe), long-running background processes, stream monitoring with regex triggers, skill catalogs (AGENTS.md,CLAUDE.md,npx skills), and Telegram notifications.
Both servers feature single-token Bearer authentication, request rate limiting, project-scoped isolation, dangerous command blocking, and a native PySide6 desktop control panel.
For technical architecture details and design philosophy, see ARCHITECTURE.md.
Related MCP server: PC Controller MCP Server
Visual Showcase
ποΈ Control Panel (Overview) | β‘ Fast Setup Guide |
Live port monitoring, status indicators & one-click start/stop | Ready-to-paste agent configurations for Claude, Cursor & IDEs |
π‘οΈ Security Guardrails | π Cloudflare Tunnel Routing |
Accident guard, token regenerator & directory boundary checks | Effortless remote access ingress configuration |
Key Features
π‘οΈ Accident Guard & Security: Token-authenticated requests (
Authorization: Bearer <token>), 20-failure IP rate limiting, project root containment, and hard-blocked catastrophic commands (format,diskpart,shutdown, app termination).π Undo History: Optional rollback history stored in
.mcp-backups/allows instant reversion of modified or deleted files.π Remote Tunnel Integration: Built-in supervisor for Cloudflare Tunnel (
cloudflared) to expose local servers over secure HTTPS subdomains for cloud agents.π― Zero Redundant Overhead: Results sent once as clean plain text, avoiding FastMCP's duplicate structured payload and halving agent token costs.
π¦ Skills Ecosystem: Discover and pack skills across bridge core, project definitions (
AGENTS.md,CLAUDE.md,GEMINI.md), and installed tools.
Supported Clients
Compatible with any MCP client supporting HTTP endpoints with Bearer authentication:
Claude Code: Direct local connection (
http://127.0.0.1:9500/mcp) or remote tunnelCursor & VS Code: Remote agent tools integration
Web & Cloud Agents: Custom connections over Cloudflare Tunnel
Any custom MCP client or orchestration script
Quick Start (Windows)
1. Prerequisites & Installation
Install Python 3.10+ from python.org (make sure to check "Add python.exe to PATH").
Clone the repository and install requirements:
git clone git@github.com:Wolrym/mcp-agent-bridge.git cd mcp-agent-bridge pip install -r requirements.txt(Optional for remote clients) Install cloudflared:
winget install Cloudflare.cloudflared
2. Launching the Control Panel
Generate desktop shortcuts with one command:
python tools\make_shortcuts.py --desktopMCP Agent Bridge: Starts the GUI panel silently in the background (activity logged to
logs\bridge.log).MCP Agent Bridge (debug): Launches with an attached console for real-time tracebacks.
You can also start via
start_gui.batorpython -m gui.app.
3. Connect Your Agent
Launch the control panel and click Start everything in the sidebar.
Click Setup guide on the Overview page.
Copy your server endpoints, authentication Bearer token, and agent connection snippet directly into your MCP client (Claude Code, Cursor, custom agents).
Headless CLI Mode
If you prefer running without the desktop GUI:
python run_core.py :: servers + cloudflared tunnel
python run_core.py --no-tunnel :: local HTTP servers only
python run_core.py --print-config :: inspect tokens, ports, and endpointsManage configuration directly via CLI flags:
python run_core.py --set-tunnel-config "C:\Users\<you>\.cloudflared\config.yml"
python run_core.py --domain example.com --user-slug alex
python run_core.py --enable-tunnel
python run_core.py --disable-tunnel
python run_core.py --enable-backups
python run_core.py --regenerate-tokenOnly one process can bind to ports 9500 and 9501 at a time. Do not runrun_core.py and the GUI panel simultaneously.
Tools Reference
π Files System (http://127.0.0.1:9500/mcp)
Tool | Description |
| Paged text reading ( |
| Reads multiple files concurrently in a single tool call. |
| Creates or overwrites files while preserving line endings and byte-order marks (BOM). |
| Precise snippet replacement ( |
| Lists directory contents with item limits. |
| Retrieves comprehensive file metadata and timestamps. |
| Glob search skipping ignore directories ( |
| Fast regex text search across project files. |
| Creates directory hierarchies. |
| Moves or renames files and folders with backup tracking. |
| Deletes files with undo support. |
| Displays historical file modification records. |
| Rolls back a specific modification using |
| Zips and base64 encodes files or folders for transfer to agent sandboxes. |
| Extracts base64 zip archives into the target workspace. |
β‘ Terminal (http://127.0.0.1:9501/mcp)
Tool | Description |
| Executes commands through |
| Spawns long-running dev servers, background workers, or build processes. |
| Awaits process completion or until standard output matches a regex ( |
| Reads process console output (supports pagination and |
| Terminates a process and its full process sub-tree. |
| Lists all active and recent background process jobs. |
| Returns the active project directory and permission boundaries. |
| Discovers available skills from core, project rules ( |
| Retrieves detailed instructions and commands for a specific skill. |
| Sends a Telegram completion alert to the user. |
Security Model
π Full PC Control:
run_commandoperates under user privileges. Keep the Bearer token secure. Regenerate it immediately if exposed.π¦ Brute-Force Rate Limiting: 20 failed token attempts within 5 minutes triggers a 15-minute IP ban (HTTP 429). Supports
CF-Connecting-IPbehind Cloudflare.π Accident Guard: Blocks system destruction commands (
format,diskpart,shutdown, root deletion) and process killers targeting the app or its tunnel.π Project Isolation: Restricts file modifications strictly within the active project directory unless explicitly overridden by
security.allow_outside_project.π‘οΈ Protected Settings: Prevents connected agents from tampering with
config/settings.json.
Configuration
Settings are saved in config/settings.json (auto-generated on initial launch). Recommended adjustments:
Parameter | Default | Description |
|
| Execution wait threshold before backgrounding (seconds) |
|
| Output character truncation ceiling |
|
| Default line limit for |
|
| Maximum image size returned inline (bytes) |
|
| Maximum archive payload size (MB) |
|
| Automatic cleanup threshold for idle MCP sessions |
|
| Allow file tools to traverse outside project root |
|
| Prevent destructive system commands |
|
| Enable snapshot backups for undo operations |
Cloudflare Tunnel Setup
Expose your servers to remote agents using cloudflared:
cloudflared tunnel login
cloudflared tunnel create mcp-agent-bridge
cloudflared tunnel route dns mcp-agent-bridge files.example.com
cloudflared tunnel route dns mcp-agent-bridge term.example.comConfigure config.yml:
tunnel: mcp-agent-bridge
credentials-file: C:\Users\<you>\.cloudflared\<tunnel-id>.json
ingress:
- hostname: files.example.com
service: http://localhost:9500
- hostname: term.example.com
service: http://localhost:9501
- service: http_status:404Running Tests
Run the test suite to verify tool integrity and authentication:
python tests\smoke_test.py :: Server HTTP verification, auth & tool manifests
python tests\tools_test.py :: FastMCP tool behavior verification
python tests\jobs_test.py :: Background process management
python tests\backups_test.py :: File undo and backup history
python tests\test_notifier.py :: User notificationsContributing & License
Contributions, issues, and feature suggestions are welcome! Please review CONTRIBUTING.md before submitting pull requests.
Distributed under the MIT License.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Remote desktop MCP: let AI see, click, type and run terminal commands on your own Windows or Mac.
Remote desktop control, files, and terminal tools for AI assistants on paired Windows PCs.
Connect ChatGPT, Claude, Cursor or VS Code to your Windows PC: files, terminal, browser, apps.
Remote MCP access to user-authorized Linux, Windows and Intel Mac devices for AI assistants.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI clients to execute Windows commands, manage files, query system information, and perform code checks via MCP protocol.241Business Source 1.1
- AlicenseAqualityDmaintenanceEnables AI assistants to control Windows PCs by executing shell commands, managing files, capturing screenshots, and monitoring system information through a comprehensive set of MCP tools.181MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI clients to securely control and interact with a local Windows machine through 218 configurable tools for files, Git, processes, Windows UI, browser automation, WSL, Office, recovery, skills, and child MCP servers.MIT
- AlicenseNot gradedqualityCmaintenanceEnables ChatGPT on Windows to securely access codebases, Git, terminals, language servers, debuggers, SQLite, local HTTP services, adaptive project memory, engineering skills, checkpoints, audit logs, and sandboxed command execution through MCP tools.MIT