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
- Host: GitHub
- URL: https://github.com/ejfox/smallbot-mcp
- Owner: ejfox
- Created: 2025-08-02T14:31:10.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-08-02T14:31:12.000Z (11 months ago)
- Last Synced: 2025-09-06T18:00:18.231Z (9 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.