Skip to main content
Glama

Manus MCP

CI Live

Un servidor MCP que proporciona a Claude Code control programático total sobre Manus.im a través de la API oficial de Manus v2. Implementa los 30 endpoints documentados, 3 herramientas compuestas para flujos de trabajo comunes y un receptor de webhooks local con verificación de firma RSA-SHA256.

  • Estado: listo para producción (usuario único) — v0.1.1

  • Lenguaje: Python 3.11+

  • Transporte: stdio (nativo de Claude Code)

  • URL base: https://api.manus.ai

Cobertura verificada (v0.1.1)

Capa

Métrica

Pruebas unitarias

60+ (despacho en server.py, aplicación ASGI de webhook, protección contra fugas de secretos, estabilidad del esquema)

Pruebas e2e en vivo

23 (incluyendo task.update / sendMessage / confirmAction / agent.update / website.publish)

Compuestas en vivo

4 (incluyendo la comprobación de rechazo F2)

Webhook e2e en vivo

1 (túnel cloudflared + receptor + entrega de Manus)

Endpoints de la API de Manus ejercitados en vivo

30/30 (omisión elegante solo cuando la cuenta carece del prerrequisito — sin agentes / sin sitio web)

Cobertura

≥ 80% (limitado en CI)

mypy --strict

0 errores

ruff check

0 errores

Consulta docs/SECURITY.md y docs/RELEASE.md para conocer el flujo de producción.

Related MCP server: claudecode-mcp

Qué incluye

30 envoltorios de API directos

Categoría

Herramientas

Tareas (9)

manus_task_create, manus_task_detail, manus_task_list, manus_task_update, manus_task_stop, manus_task_delete, manus_task_send_message, manus_task_list_messages, manus_task_confirm_action

Proyectos (2)

manus_project_create, manus_project_list

Habilidades (1)

manus_skill_list

Agentes (3)

manus_agent_list, manus_agent_detail, manus_agent_update

Archivos (3)

manus_file_create, manus_file_detail, manus_file_delete

Webhooks (4)

manus_webhook_create, manus_webhook_list, manus_webhook_delete, manus_webhook_public_key

Uso (3)

manus_usage_list, manus_usage_team_statistic, manus_usage_team_log

Conectores (1)

manus_connector_list

Navegador (1)

manus_browser_online_list

Sitio web (3)

manus_website_status, manus_website_list_checkpoints, manus_website_publish

3 herramientas compuestas

  • manus_file_upload — crea una URL prefirmada, sube los bytes y espera a status=uploaded. Acepta path, base64 o una url pública.

  • manus_task_wait — sondea una tarea hasta que alcanza un estado terminal (stopped / waiting / error) y devuelve nuevos mensajes además de detalles de espera (event_id + esquema de respuesta).

  • manus_website_publish_and_wait — publica un sitio y espera hasta que esté published o failed.

3 herramientas de webhook (leídas desde la base de datos SQLite local)

  • manus_webhook_events_list — lista los eventos recibidos con filtros.

  • manus_webhook_events_get — obtiene un evento por event_id.

  • manus_webhook_events_clear — elimina los eventos recibidos.

Total: 36 herramientas MCP.

Instalación

cd path/to/Manus-MCP
python -m venv .venv
# Windows:
.venv\Scripts\activate
# macOS/Linux:
# source .venv/bin/activate

pip install -e ".[dev]"

Configuración de la clave de API

Coloca un archivo .env en la raíz del proyecto (se proporciona una plantilla .env.example). Se aceptan ambos nombres de variable:

MANUS_API_KEY=sk-...
# or, for backwards compatibility:
# ManusAPI=sk-...

Prioridad: process.env > .env.

Configuraciones opcionales:

MANUS_BASE_URL=https://api.manus.ai
MANUS_HTTP_TIMEOUT=60
MANUS_LOG_LEVEL=INFO

Registro en Claude Code

Añade lo siguiente a .claude/settings.json (a nivel de proyecto) o ~/.claude/settings.json (global):

{
  "mcpServers": {
    "manus": {
      "command": "python",
      "args": ["-m", "manus_mcp"],
      "cwd": "path/to/Manus-MCP"
    }
  }
}

Si MANUS_API_KEY no está configurada globalmente, pásala explícitamente:

{
  "mcpServers": {
    "manus": {
      "command": "python",
      "args": ["-m", "manus_mcp"],
      "cwd": "path/to/Manus-MCP",
      "env": { "MANUS_API_KEY": "sk-..." }
    }
  }
}

Reinicia Claude Code: las herramientas manus_* aparecerán en la lista de herramientas.

Verificación

Sin iniciar el servidor:

python scripts/list_tools.py

Contra la API real:

python scripts/smoke.py

Pruebas unitarias:

pytest

Lint y tipos:

ruff check .
mypy manus_mcp

Ejemplos de uso desde Claude Code

manus_task_create { "message": { "content": "Give me a 5-bullet summary of today's AI news" } }

La respuesta contiene un task_id. Luego:

manus_task_wait { "task_id": "<id>", "timeout_sec": 600 }

Cuando termina, obtienes last_assistant_message con la respuesta final y new_messages con el historial de la conversación.

Subir un archivo y adjuntarlo a una tarea:

manus_file_upload { "source": { "path": "C:/docs/report.pdf" } }
manus_task_create {
  "message": {
    "content": [
      { "type": "text", "text": "Summarize this report" },
      { "type": "file", "file_id": "<file_id>" }
    ]
  }
}

Receptor de webhooks (opcional)

Un receptor local para eventos task_created / task_stopped con verificación completa de firma RSA-SHA256 según ManusAPIDocs/webhooks/security.md.

1. Configurar variables de entorno

MANUS_WEBHOOK_PUBLIC_URL=https://your-tunnel.example.com/manus/webhook
MANUS_WEBHOOK_HOST=127.0.0.1
MANUS_WEBHOOK_PORT=8787
# MANUS_WEBHOOK_DB_PATH=...  # defaults to %LOCALAPPDATA%\manus-mcp\events.db on Windows

MANUS_WEBHOOK_PUBLIC_URL debe coincidir exactamente con la URL a la que llama Manus. La carga útil de firma de Manus incluye esta URL, por lo que incluso un error tipográfico hará que cada evento sea rechazado.

2. Iniciar un túnel

Por ejemplo, con Cloudflare Tunnel:

cloudflared tunnel --url http://localhost:8787

o ngrok:

ngrok http 8787

3. Ejecutar el receptor

python -m manus_mcp.webhook_receiver
# or: manus-mcp-webhook --host 127.0.0.1 --port 8787

4. Registrar el webhook con Manus

En Claude Code:

manus_webhook_create { "url": "https://your-tunnel.example.com/manus/webhook" }

5. Leer eventos

manus_webhook_events_list { "event_type": "task_stopped", "limit": 20 }
manus_webhook_events_get { "event_id": "..." }
manus_webhook_events_clear { "before_received_at": 1704000000 }

Arquitectura

manus_mcp/
├── __main__.py          # stdio entrypoint
├── server.py            # MCP Server bootstrap
├── config.py            # pydantic-settings
├── logger.py            # stderr-only logger
├── client/
│   ├── manus_client.py  # async httpx client + retry
│   ├── rate_limiter.py  # per-endpoint token bucket (from rate-limits.md)
│   ├── retry.py         # exponential backoff + jitter
│   └── errors.py        # ManusApiError / ManusNetworkError
├── schemas/             # pydantic models for each resource (tasks, projects, ...)
├── tools/               # @manus_tool registration for all 36 tools
│   ├── tasks.py projects.py skills.py agents.py
│   ├── files.py webhooks.py usage.py connectors.py
│   ├── browser.py website.py
│   └── composite.py     # task_wait / file_upload / website_publish_and_wait
└── webhook_receiver/
    ├── signature.py     # RSA-SHA256 verification using {ts}.{url}.{sha256_hex(body)}
    ├── storage.py       # SQLite WAL
    ├── server.py        # Starlette + uvicorn
    ├── tools.py         # events_list / events_get / events_clear
    └── __main__.py

Límites de tasa

El cliente respeta los límites de la API (ventana deslizante de 60 segundos) y reintenta de forma transparente las respuestas 429 con retroceso + jitter. Los límites provienen de ManusAPIDocs/getting-started/rate-limits.md:

  • 10/min: task.create, task.sendMessage

  • 40/min: todas las mutaciones

  • 100/min: todas las llamadas de solo lectura

  • 600/min: usage.*

Seguridad

  • La clave de API nunca se registra.

  • El receptor de webhooks verifica las firmas y rechaza las marcas de tiempo con más de 5 minutos de antigüedad.

  • La clave pública se almacena en caché durante 1 hora.

  • SQLite se abre en modo WAL con check_same_thread=False para un acceso seguro de múltiples lectores.

Licencia

MIT.

Available Tools

36 tools
manus_agent_detailA

Get an agent's details including nickname and description. The 'agent-default' shortcut works only when your account has a configured IM agent; otherwise this returns 'not_found'. Use manus_agent_list to discover real agent_ids if 'agent-default' is rejected.

Inputs: agent_id (required).

manus_agent_listA

List all agents in the account.

Inputs: no named parameters.

manus_agent_updateB

Update an agent's nickname and/or description.

Inputs: agent_id (required), about, nickname.

manus_browser_online_listA

List online browser clients. Use the returned client_id with manus_task_confirm_action when the agent triggers a needConnectMyBrowser waiting event. Empty list means you need to install/enable the Manus Browser Extension.

Inputs: no named parameters.

manus_connector_listA

List all connectors installed in the account. Use the returned IDs in the connectors array of manus_task_create / manus_task_send_message.

Inputs: no named parameters.

manus_file_createA

Create a file record and get a presigned S3 upload URL. You must PUT the bytes to upload_url within 3 minutes. Prefer manus_file_upload which performs the full flow (create + PUT + wait-until-uploaded) in one call.

Inputs: filename (required).

manus_file_deleteB

Delete a file. Files auto-delete 48 hours after upload, so manual deletion is optional.

Inputs: file_id (required).

manus_file_detailB

Get a file's metadata including upload status, size, and expiration.

Inputs: file_id (required).

manus_file_uploadA

Upload a file end-to-end: create presigned URL, PUT bytes, and (by default) wait until status=uploaded. Accepts one of: local path, base64-encoded bytes, or a public URL to fetch first. Returns the final file record ready to reference as file_id in tasks.

Inputs: source (required), filename, content_type, wait_timeout_sec, +2 more.

manus_project_createA

Create a new project with an optional default instruction that will be applied to every task created with this project_id.

Inputs: name (required), instruction.

manus_project_listA

List all projects visible to the current user.

Inputs: no named parameters.

manus_skill_listA

List available skills. Provide project_id to include project-specific skills in addition to global user skills.

Inputs: project_id.

manus_task_confirm_actionA

Confirm a pending action. Use when a status_update event reports agent_status='waiting' with waiting_for_event_type != 'messageAskUser'. Pass event_id from the event and an input dict matching the event's confirm_input_schema (e.g. {'accept': true} for most events, {'action': 'select', 'client_id': '...'} for needConnectMyBrowser).

Inputs: task_id (required), event_id (required), input.

manus_task_createA

Create a new Manus task. Runs asynchronously; poll manus_task_list_messages or use manus_task_wait for completion. Supports text/file/voice content parts, connectors, skills, project scoping, and interactive mode.

Inputs: message (required), title, locale, project_id, +4 more.

manus_task_deleteA

Permanently delete a task. Agent-related tasks (main tasks, subtasks) cannot be deleted.

Inputs: task_id (required).

manus_task_detailA

Get a task's status and metadata. Use manus_task_list_messages for the full conversation history. Accepts the IM shortcut 'agent-default-main_task'.

Inputs: task_id (required).

manus_task_listB

List tasks with cursor pagination. scope='agent_subtask' requires agent_id; scope='project' requires project_id.

Inputs: limit, order, scope, cursor, +2 more.

manus_task_list_messagesC

List task events with cursor pagination. verbose=true includes tool_used, plan_update, new_plan_step, and explanation events. Inspect status_update events for agent_status.

Inputs: task_id (required), limit, order, cursor, +2 more.

manus_task_send_messageA

Send a follow-up message to a task. Use this when waiting_for_event_type='messageAskUser' (NOT manus_task_confirm_action). Accepts the same content structure as manus_task_create.

Inputs: message (required), task_id (required).

manus_task_stopA

Stop a running task. The task can be resumed with manus_task_send_message.

Inputs: task_id (required).

manus_task_updateC

Rename a task or change share visibility / task-list visibility.

Inputs: task_id (required), title, share_visibility, enable_visible_in_task_list.

manus_task_waitA

Poll a task until it reaches a terminal state (stopped / waiting / error) or times out. Returns the final status, new messages, and — if waiting — the event_id and input schema needed for manus_task_confirm_action or the body needed for manus_task_send_message.

Inputs: task_id (required), timeout_sec, include_verbose, since_message_id, +2 more.

manus_usage_listC

List the current user's credit history at session granularity (newest first).

Inputs: limit, cursor.

manus_usage_team_logA

Per-user team statistics (task counts + credit totals). Team accounts only; members see only their own row. Enterprise teams have T+1 latency.

Inputs: limit, cursor, is_asc, sort_by, +2 more.

manus_usage_team_statisticA

Daily team credit consumption totals. Team accounts only; members see only their own totals. Optional start_date / end_date filter (Unix seconds).

Inputs: end_date, start_date.

manus_webhook_createA

Register an HTTPS webhook URL to receive task_created and task_stopped events. Manus sends a test request before activation; endpoint must return 2xx within 10 seconds.

Inputs: url (required).

manus_webhook_deleteA

Delete a webhook. The endpoint will stop receiving notifications immediately.

Inputs: webhook_id (required).

manus_webhook_events_clearA

Delete webhook events from the local store. Provide any combination of filters; no filters = delete everything.

Inputs: task_id, event_type, before_received_at.

manus_webhook_events_getB

Fetch a single webhook event by event_id.

Inputs: event_id (required).

manus_webhook_events_listA

List webhook events received by the local webhook receiver. Filter by event_type ('task_created' / 'task_stopped') and/or task_id. Requires the webhook receiver to be running (see manus-mcp-webhook).

Inputs: limit, order, task_id, event_type, +1 more.

manus_webhook_listA

List all registered webhooks.

Inputs: no named parameters.

manus_webhook_public_keyA

Get the RSA public key used to sign webhook deliveries. Cache this (1 hour recommended).

Inputs: no named parameters.

manus_website_list_checkpointsB

List all checkpoints of a website (newest first). Match published_version_id against data[].version_id to find the live checkpoint.

Inputs: task_id, website_id.

manus_website_publishA

Deploy the latest checkpoint of a website. Async — poll manus_website_status until publish_status becomes 'published' or 'failed', or use manus_website_publish_and_wait for an all-in-one call.

Inputs: task_id, visibility, website_id.

manus_website_publish_and_waitA

Deploy the latest checkpoint and poll until the website is published or the deployment fails. Returns the final website status with site URLs.

Inputs: task_id, visibility, website_id, timeout_sec, +1 more.

manus_website_statusB

Get a website's publish status, live URLs, and visibility. Provide exactly one of task_id or website_id.

Inputs: task_id, website_id.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 36 tools

    Disambiguation5/5

    Each tool targets a distinct resource and action within well-defined domains (agent, file, task, webhook, website, etc.). There is no overlap in purpose; for example, manus_task_create, manus_task_send_message, and manus_task_stop are clearly different operations.

    Naming Consistency5/5

    All tools follow a consistent 'manus_<domain>_<action>' pattern (e.g., manus_agent_list, manus_file_upload, manus_task_wait). Even compound names like manus_task_list_messages adhere to this structure, making tool names predictable and easy to parse.

    Tool Count4/5

    With 36 tools, the server covers a broad set of features (agents, browsers, connectors, files, projects, skills, tasks, usage, webhooks, websites). While this is on the higher side, each tool is justified by the complexity of the platform and no obvious bloat is present.

    Completeness4/5

    The tool surface provides CRUD-like coverage for most domains: task management includes create, read, list, update, delete, stop, wait, confirm; files have create, upload, detail, delete; webhooks have full lifecycle. Minor gaps exist (no file update or project update), but these are acceptable given the domain.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers