/ Directorio / Playground / Nanobot
● Comunidad HKUDS ⚡ Instantáneo

Nanobot

por HKUDS · HKUDS/nanobot

If FastMCP and Upsonic feel heavy: Nanobot is a few hundred lines of Python that gives you a working personal agent with MCP support.

Nanobot is an academic-style minimal agent framework. Strips most abstraction; you bring tools and an LLM, it gives you the loop. Use it when you want a teachable, hackable baseline for an MCP-aware agent.

Por qué usarlo

Características clave

Demo en vivo

Cómo se ve en la práctica

listo

Instalar

Elige tu cliente

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "nanobot-mcp": {
      "command": "uvx",
      "args": [
        "nanobot",
        "serve",
        "--mcp"
      ]
    }
  }
}

Abre Claude Desktop → Settings → Developer → Edit Config. Reinicia después de guardar.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "nanobot-mcp": {
      "command": "uvx",
      "args": [
        "nanobot",
        "serve",
        "--mcp"
      ]
    }
  }
}

Cursor usa el mismo esquema mcpServers que Claude Desktop. La configuración del proyecto prevalece sobre la global.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "nanobot-mcp": {
      "command": "uvx",
      "args": [
        "nanobot",
        "serve",
        "--mcp"
      ]
    }
  }
}

Haz clic en el icono MCP Servers de la barra lateral de Cline y luego en "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "nanobot-mcp": {
      "command": "uvx",
      "args": [
        "nanobot",
        "serve",
        "--mcp"
      ]
    }
  }
}

Mismo formato que Claude Desktop. Reinicia Windsurf para aplicar.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "nanobot-mcp",
      "command": "uvx",
      "args": [
        "nanobot",
        "serve",
        "--mcp"
      ]
    }
  ]
}

Continue usa un array de objetos de servidor en lugar de un mapa.

~/.config/zed/settings.json
{
  "context_servers": {
    "nanobot-mcp": {
      "command": {
        "path": "uvx",
        "args": [
          "nanobot",
          "serve",
          "--mcp"
        ]
      }
    }
  }
}

Añádelo a context_servers. Zed recarga en caliente al guardar.

claude mcp add nanobot-mcp -- uvx nanobot serve --mcp

Un solo comando. Verifica con claude mcp list. Quita con claude mcp remove.

Casos de uso

Usos del mundo real: Nanobot

Learn the agent loop by reading the source

👤 Developers ⏱ ~15 min intermediate

Cuándo usarlo: You want to understand what FastMCP / Upsonic do under the hood.

Flujo
  1. Read
    Open the main module — single-file core.✓ Copiado
    → Mental model
  2. Run
    Start the bot; call its MCP tools from Claude.✓ Copiado
    → Works
  3. Modify
    Add a tool or change the planner.✓ Copiado
    → Fork ready

Resultado: Working hackable baseline for your own agent.

Combinaciones

Combínalo con otros MCPs para multiplicar por 10

nanobot-mcp + fastmcp-prefect

Prototype with Nanobot; harden with FastMCP for production

Combine nanobot-mcp with fastmcp-prefect: Prototype with Nanobot; harden with FastMCP for production✓ Copiado

Herramientas

Lo que expone este MCP

HerramientaEntradasCuándo llamarCoste
run (see docs) Run a task through the nanobot loop 1 call

Coste y límites

Lo que cuesta ejecutarlo

Cuota de API
Bound by LLM
Tokens por llamada
Normal
Monetario
Free OSS
Consejo
Keep tool sets small — Nanobot is minimal, not magical

Seguridad

Permisos, secretos, alcance

Almacenamiento de credenciales: LLM keys in env
Salida de datos: Configured provider

Resolución de problemas

Errores comunes y soluciones

Planner gets stuck

Add a step budget; minimal planners need explicit halts

Alternativas

Nanobot vs otros

AlternativaCuándo usarlaContrapartida
FastMCPProduction serverMore framework

Más

Recursos

📖 Lee el README oficial en GitHub

🐙 Ver issues abiertas

🔍 Ver todos los 400+ servidores MCP y Skills