/ Annuaire / Playground / Nanobot
● Communauté HKUDS ⚡ Instantané

Nanobot

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

Pourquoi l'utiliser

Fonctionnalités clés

Démo en direct

Aperçu en pratique

prêt

Installer

Choisissez votre 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"
      ]
    }
  }
}

Ouvrez Claude Desktop → Settings → Developer → Edit Config. Redémarrez après avoir enregistré.

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

Cursor utilise le même schéma mcpServers que Claude Desktop. La config projet l'emporte sur la globale.

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

Cliquez sur l'icône MCP Servers dans la barre latérale Cline, puis "Edit Configuration".

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

Même format que Claude Desktop. Redémarrez Windsurf pour appliquer.

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

Continue utilise un tableau d'objets serveur plutôt qu'une map.

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

Ajoutez dans context_servers. Zed recharge à chaud à la sauvegarde.

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

Une seule ligne. Vérifiez avec claude mcp list. Supprimez avec claude mcp remove.

Cas d'usage

Usages concrets : Nanobot

Learn the agent loop by reading the source

👤 Developers ⏱ ~15 min intermediate

Quand l'utiliser : You want to understand what FastMCP / Upsonic do under the hood.

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

Résultat : Working hackable baseline for your own agent.

Combinaisons

Associez-le à d'autres MCPs pour un effet X10

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✓ Copié

Outils

Ce que ce MCP expose

OutilEntréesQuand appelerCoût
run (see docs) Run a task through the nanobot loop 1 call

Coût et limites

Coût d'exécution

Quota d'API
Bound by LLM
Tokens par appel
Normal
Monétaire
Free OSS
Astuce
Keep tool sets small — Nanobot is minimal, not magical

Sécurité

Permissions, secrets, portée

Stockage des identifiants : LLM keys in env
Sortie de données : Configured provider

Dépannage

Erreurs courantes et correctifs

Planner gets stuck

Add a step budget; minimal planners need explicit halts

Alternatives

Nanobot vs autres

AlternativeQuand l'utiliserCompromis
FastMCPProduction serverMore framework

Plus

Ressources

📖 Lire le README officiel sur GitHub

🐙 Voir les issues ouvertes

🔍 Parcourir les 400+ serveurs MCP et Skills