/ Diretório / Playground / Nanobot
● Comunidade 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 que usar

Principais recursos

Demo ao vivo

Como fica na prática

pronto

Instalar

Escolha seu 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"
      ]
    }
  }
}

Abra Claude Desktop → Settings → Developer → Edit Config. Reinicie após salvar.

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

Cursor usa o mesmo esquema mcpServers que o Claude Desktop. Config de projeto vence a global.

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

Clique no ícone MCP Servers na barra lateral do Cline, depois "Edit Configuration".

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

Mesmo formato do Claude Desktop. Reinicie o Windsurf para aplicar.

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

O Continue usa um array de objetos de servidor em vez de um map.

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

Adicione em context_servers. Zed recarrega automaticamente ao salvar.

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

Uma linha só. Verifique com claude mcp list. Remova com claude mcp remove.

Casos de uso

Usos do mundo real: Nanobot

Learn the agent loop by reading the source

👤 Developers ⏱ ~15 min intermediate

Quando usar: You want to understand what FastMCP / Upsonic do under the hood.

Fluxo
  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.

Combinações

Combine com outros MCPs para 10× de alavancagem

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

Ferramentas

O que este MCP expõe

FerramentaEntradasQuando chamarCusto
run (see docs) Run a task through the nanobot loop 1 call

Custo e limites

O que custa rodar

Cota de API
Bound by LLM
Tokens por chamada
Normal
Monetário
Free OSS
Dica
Keep tool sets small — Nanobot is minimal, not magical

Segurança

Permissões, segredos, alcance

Armazenamento de credenciais: LLM keys in env
Saída de dados: Configured provider

Solução de problemas

Erros comuns e correções

Planner gets stuck

Add a step budget; minimal planners need explicit halts

Alternativas

Nanobot vs. outros

AlternativaQuando usarTroca
FastMCPProduction serverMore framework

Mais

Recursos

📖 Leia o README oficial no GitHub

🐙 Ver issues abertas

🔍 Ver todos os 400+ servidores MCP e Skills