An open API service indexing awesome lists of open source software.

https://github.com/ejfox/smallbot-mcp

MCP server that generates small websites from natural language prompts
https://github.com/ejfox/smallbot-mcp

Last synced: 9 months ago
JSON representation

MCP server that generates small websites from natural language prompts

Awesome Lists containing this project

README

          

# 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

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

## Usage

```javascript
// 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.