Skip to main content
JavaScript

smallbot-mcp

MCP server that generates small websites from natural language prompts

Commits
2
Files
6
Size
6.2 KB
Langs
1
Created
Aug 2, 2025
Last push
about 1 year ago
README.md

smallbot-mcp

MCP server that generates small websites from natural language prompts using LLMs.

What it does

Takes prompts like "Make a site that returns a random number" and creates a working website at https://[slug].ejfox.tools

Features

  • Natural language → working website
  • Auto-generates HTML or JS based on prompt
  • Creates unique subdomains on smallweb
  • Uses OpenRouter API for code generation

Setup

export OPENROUTER_API_KEY=your-key
export SMALLWEB_ROOT=~/smallweb  # optional

Usage

// Via MCP
await createSite({
  prompt: "Make an API that returns the current time",
  slug: "time-api"  // optional
})
// → https://time-api.ejfox.tools

How it works

  1. Accepts natural language prompt
  2. Uses GPT-4 to generate minimal code
  3. Writes to ~/smallweb/[slug]/
  4. Returns live URL on *.ejfox.tools

Status

Early draft - basic functionality implemented.