/ Verzeichnis / Playground / Nanobot
● Community HKUDS ⚡ Sofort

Nanobot

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

Warum nutzen

Hauptfunktionen

Live-Demo

In der Praxis

bereit

Installieren

Wählen Sie Ihren Client

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

Öffne Claude Desktop → Settings → Developer → Edit Config. Nach dem Speichern neu starten.

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

Cursor nutzt das gleiche mcpServers-Schema wie Claude Desktop. Projektkonfiguration schlägt die globale.

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

Klicken Sie auf das MCP-Servers-Symbol in der Cline-Seitenleiste, dann "Edit Configuration".

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

Gleiche Struktur wie Claude Desktop. Windsurf neu starten zum Übernehmen.

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

Continue nutzt ein Array von Serverobjekten statt einer Map.

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

In context_servers hinzufügen. Zed lädt beim Speichern neu.

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

Einzeiler. Prüfen mit claude mcp list. Entfernen mit claude mcp remove.

Anwendungsfälle

Praxisnahe Nutzung: Nanobot

Learn the agent loop by reading the source

👤 Developers ⏱ ~15 min intermediate

Wann einsetzen: You want to understand what FastMCP / Upsonic do under the hood.

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

Ergebnis: Working hackable baseline for your own agent.

Kombinationen

Mit anderen MCPs für 10-fache Wirkung

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✓ Kopiert

Werkzeuge

Was dieses MCP bereitstellt

WerkzeugEingabenWann aufrufenKosten
run (see docs) Run a task through the nanobot loop 1 call

Kosten & Limits

Was der Betrieb kostet

API-Kontingent
Bound by LLM
Tokens pro Aufruf
Normal
Kosten in €
Free OSS
Tipp
Keep tool sets small — Nanobot is minimal, not magical

Sicherheit

Rechte, Secrets, Reichweite

Credential-Speicherung: LLM keys in env
Datenabfluss: Configured provider

Fehlerbehebung

Häufige Fehler und Lösungen

Planner gets stuck

Add a step budget; minimal planners need explicit halts

Alternativen

Nanobot vs. andere

AlternativeWann stattdessenKompromiss
FastMCPProduction serverMore framework

Mehr

Ressourcen

📖 Offizielle README auf GitHub lesen

🐙 Offene Issues ansehen

🔍 Alle 400+ MCP-Server und Skills durchsuchen