Ags MCP
MCP server: Ags MCP
Installation
npx ags-mcpAsk AI about Ags MCP
Powered by Claude Β· Grounded in docs
I know everything about Ags MCP. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
AgentSandbox MCP
Tencent Cloud AI Agent Sandbox Service - MCP Protocol Implementation
Features β’ Structure β’ Quick Start β’ Guide β’ Contributing β’ License
Introduction
Agent Sandbox (AGS) is Tencent Cloud's next-generation sandbox execution environment for AI agents, featuring secure isolation, extreme performance, and scalability. It supports multiple sandbox types including browser, code, and custom sandboxes, enabling agents to run in controlled environments and interact safely with the digital world.
This project provides an open-source implementation based on the Model Context Protocol (MCP), including browser sandbox and code sandbox capabilities, supporting seamless integration with any MCP-compatible AI client.
Key Features
π Secure Isolation
- Fully isolated sandbox execution environment
- Prevents malicious code from affecting the host system
- Resource usage limits and monitoring
β‘ Extreme Performance
- Millisecond-level sandbox startup
- High concurrency support, single machine can host numerous sandbox instances
- Intelligent resource scheduling and optimization
π§ Extensible Architecture
- Supports multiple sandbox types (browser, code, custom)
- Based on standard MCP protocol, easy to integrate
- Flexible configuration and extension mechanisms
π Browser MCP - Browser Sandbox
Playwright-based browser automation MCP server (TypeScript implementation)
- β Fast and lightweight headless browser control
- β Based on structured accessibility snapshots, no vision models needed
- β Supports page navigation, element interaction, form filling
- β Screenshots, PDF generation, JavaScript execution
- β Network monitoring, console capture, tab management
- β Optional browser extension support
π Code MCP - Code Sandbox
Python code execution MCP server (Python implementation)
- β Secure code sandbox execution environment
- β Supports real-time Python code execution
- β File system access and management
- β Fully isolated runtime environment
- β Supports custom dependency installation
Project Structure
agentsandbox-mcp/
βββ browser-mcp/ # TypeScript - Browser MCP Server
β βββ src/ # Source code
β βββ tests/ # Test files
β βββ extension/ # Browser extension
β βββ examples/ # Usage examples
β βββ package.json # NPM configuration
β βββ cli.js # CLI entry point
β βββ README.md # Documentation
βββ code-mcp/ # Python - Code MCP Server
β βββ src/ # Source code
β β βββ server.py # MCP server implementation
β βββ main.py # Entry point
β βββ pyproject.toml # Python project configuration
β βββ README.md # Documentation
βββ CODE_OF_CONDUCT.md # Code of Conduct
βββ CONTRIBUTING.md # Contributing Guide
βββ LICENSE # Apache 2.0 License
βββ README.md # Project README (this file)
Quick Start
Requirements
- Browser MCP: Node.js 18+
- Code MCP: Python 3.8+ and uv
Installation and Usage
Browser MCP Server
cd browser-mcp
# Install dependencies
npm install
# Run in development mode
npm run watch
# Or use npx directly
npx @tencent/agentsandbox-browser-mcp
Configure in MCP client:
{
"mcpServers": {
"agentsandbox-browser": {
"command": "npx",
"args": ["@tencent/agentsandbox-browser-mcp"]
}
}
}
Supported MCP clients: Claude Desktop, VS Code, Cursor, Windsurf, Goose, LM Studio, etc.
For detailed documentation, see browser-mcp/README.md
Code MCP Server
cd code-mcp
# Install dependencies with uv
uv sync
# Configure environment variable (required)
export E2B_API_KEY="your-e2b-api-key"
# Run server
python main.py
Get API Key: Visit Tencent Cloud Agent Sandbox to register and obtain your API key.
For detailed documentation, see code-mcp/README.md
Usage Guide
Use Cases
π Intelligent Web Analysis
Using browser sandbox, AI agents can:
- Automated information scraping and data collection
- Automatic form filling and submission
- Web content understanding and information extraction
- Automated testing and monitoring
π Data Analysis Processing
Using code sandbox, AI agents can:
- Execute complex data analysis tasks
- Generate visualization charts and reports
- File processing and format conversion
- Scientific computing and algorithm validation
π€ Agent Collaboration
Combining both sandboxes enables:
- Web data scraping + data analysis processing
- Dynamic content generation + browser preview
- End-to-end automated workflows
Browser MCP Tools
Browser MCP provides the following MCP tools:
- Navigation:
playwright_navigate,playwright_screenshot - Element Interaction:
playwright_click,playwright_fill,playwright_select,playwright_hover - JavaScript Execution:
playwright_evaluate - Page Management:
playwright_snapshot,playwright_new_page,playwright_close_page - File Operations:
playwright_upload_files,playwright_download_files - Dialog Handling:
playwright_accept_dialog,playwright_dismiss_dialog
Code MCP Features
Code MCP provides the following capabilities:
- Code Execution: Safely execute Python code in fully isolated sandboxes
- File System: Support file read/write, directory management, and other file system operations
- Environment Persistence: Sandbox environment can be persisted, supporting multiple interactions
- Dependency Management: Support dynamic installation and use of third-party Python packages
Technical Architecture
Core Tech Stack
| Module | Language | Main Dependencies | Sandbox Type |
|---|---|---|---|
| Browser MCP | TypeScript | Playwright 1.56, @modelcontextprotocol/sdk, commander, zod | Browser Sandbox |
| Code MCP | Python | @e2b/code-interpreter 2.0, @modelcontextprotocol/sdk | Code Sandbox |
AGS Core Features
- Standard MCP Protocol: Fully compatible with Model Context Protocol specification, ensuring seamless integration with mainstream AI clients
- Independent Deployment: Two MCP servers can be used independently or combined, flexibly meeting different scenario needs
- Secure Isolation: Both browser and code execution run in strictly isolated sandbox environments, ensuring system security
- High Performance: Uses lightweight container technology, achieving millisecond-level startup and high concurrency support
- Easy to Extend: Open architecture design, supporting custom sandbox types and tool extensions
Sandbox Types
Tencent Cloud AGS supports multiple sandbox types:
- Browser Sandbox: Enables AI agents to browse web pages, fill forms, and extract information like humans
- Code Sandbox: Provides AI agents with secure code execution environment, supporting data analysis, file processing, and other tasks
- Custom Sandbox: Supports customizing specific sandbox environments based on business needs (planned)
Documentation
Contributing
We welcome contributions of all kinds! Whether it's bug reports, feature suggestions, documentation improvements, or code contributions.
How to Contribute
- Fork this project
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'feat: add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
For detailed guidelines, see CONTRIBUTING.md
Code of Conduct
Please note that this project follows the Contributor Covenant Code of Conduct. By participating in this project, you agree to abide by its terms.
License
This project is open-sourced under the Apache License 2.0. See LICENSE file for details.
Copyright 2024-2025 AgentSandbox MCP Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Related Links
- Tencent Cloud AGS Official Documentation - Learn more about AGS service details
- Model Context Protocol - MCP official protocol specification
- Playwright - Browser automation framework
Contact
- Submit Issue: GitHub Issues
- Tencent Cloud Official Support: Contact Us
About Tencent Cloud AGS
Agent Sandbox (AGS) is Tencent Cloud's enterprise-grade AI agent sandbox service, providing developers with:
- βοΈ Cloud Deployment: No need to build infrastructure, ready to use out of the box
- π Enterprise Security: Meets enterprise security and compliance requirements
- π Elastic Scaling: Automatically scales based on business needs
- πΌ Professional Support: Provides 24/7 technical support services
This open-source project provides a localized implementation based on the MCP protocol, helping developers quickly experience and integrate AGS capabilities.
βοΈ If this project helps you, please give us a Star!
