HM

huyouare/manus-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

41 stars 12 forks 质量 56 趋势 0

huyouare/manus-mcp 是从 https://github.com/huyouare/manus-mcp. 导入的 MCP 服务器候选。

概览

huyouare/manus-mcp 是从 https://github.com/huyouare/manus-mcp. 导入的 MCP 服务器候选。

概述(AI 翻译)

一个模型上下文协议(MCP)服务器实现,可以浏览网页、执行搜索查询和执行代码。

当前功能

  • “google_search”工具,可进行谷歌搜索并返回相关链接
  • “browse_web”工具,允许浏览网站、点击元素和提取内容
  • “code_interpreter”工具,允许在沙盒环境中读取、写入和执行代码
  • 允许在沙盒目录中运行 shell 命令的“bash_tool”工具

桌面版使用 Claude

要在桌面端使用 Manus MCP 配合 Claude:

  1. 创建或编辑 Claude for Desktop 配置文件:
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  1. 添加以下构型:

  2. 重启桌面版Claude

  3. 你现在应该能看到 Claude 桌面版中可用的 Manus MCP 工具

可用工具

hello_world

一个简单的问候工具,可以返回欢迎信息。

google_search

进行谷歌搜索并返回相关链接列表。

browse_web

通过与网页浏览器交互以导航网站并提取信息。支持的操作:

  • navigate:访问特定网址

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Manus MCP

A Model Context Protocol (MCP) server implementation that can browse the web, perform search queries, and execute code.

Current Features

  • “google_search” tool that performs Google searches and returns relevant links
  • “browse_web” tool that allows browsing websites, clicking elements, and extracting content
  • “code_interpreter” tool that allows reading, writing, and executing code in a sandbox environment
  • “bash_tool” tool that allows running shell commands in the sandbox directory

Using with Claude for Desktop

To use Manus MCP with Claude for Desktop:

  1. Create or edit the Claude for Desktop configuration file:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  2. Add the following configuration:

    {
      "mcpServers": {
        "manus-mcp": {
          "command": "uv",
          "args": [
            "--directory",
            "/ABSOLUTE/PATH/TO/manus-mcp",
            "run",
            "mcp_server.py"
          ]
        }
      }
    }
    
  3. Restart Claude for Desktop

  4. You should now see the Manus MCP tools available in Claude for Desktop

Available Tools

hello_world

A simple greeting tool that returns a welcome message.

google_search

Performs Google searches and returns a list of relevant links.

browse_web

Interacts with a web browser to navigate websites and extract information. Supported actions:

  • navigate: Go to a specific URL
  • click: Click an element by index
  • input_text: Input text into an element
  • get_content: Get the page content
  • execute_js: Execute JavaScript code
  • scroll: Scroll the page
  • refresh: Refresh the current page

code_interpreter

Allows reading, writing, and executing code files in a sandboxed environment. Supported actions:

  • read: Read the contents of a file
  • write: Write content to a file
  • execute: Execute a file or code snippet
  • list: List files in the sandbox

Supports multiple programming languages including Python, JavaScript (Node.js), Bash, Ruby, Perl, and R.

bash_tool

Executes bash commands in the sandbox directory. Features:

  • Run commands in foreground or background mode
  • Start web servers and other long-running processes
  • Install packages and dependencies
  • Manage files and processes

Environment Variables

The following environment variables can be configured:

  • SANDBOX_DIR: Path to the sandbox directory (default: ~/manus-sandbox)
  • GLOBAL_TIMEOUT: Global timeout for all operations in seconds (default: 60)
  • BROWSER_HEADLESS: Whether to run the browser in headless mode (default: false)
  • GOOGLE_SEARCH_MAX_RESULTS: Maximum number of search results to return (default: 10)
  • LOG_LEVEL: Logging level (default: INFO)

Development Guide

Prerequisites

  • Python 3.11+
  • uv - Fast Python package installer and resolver

Installation

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "manus-mcp": { "command": "uv", "args": [ "--directory", "/ABSOLUTE/PATH/TO/manus-mcp", "run", "mcp_server.py" ] } } }