@runthispage/mcp-server
v1.2.0
Published
MCP server for RunThis.page — publish and manage HTML pages from AI tools
Readme
@runthispage/mcp-server
MCP server for RunThis.page — publish and manage hosted HTML pages from AI tools like Claude.
Setup
1. Get an API key
Sign up at runthis.page with a Pro or Business plan, then generate an API key at /settings.
2. Configure Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"runthispage": {
"command": "npx",
"args": ["@runthispage/mcp-server"],
"env": {
"RUNTHISPAGE_API_KEY": "rtp_your_key_here"
}
}
}
}3. Use it
Ask Claude to publish HTML:
"Create a simple landing page and publish it to RunThis.page"
Tools
| Tool | Description |
|---|---|
| publish_page | Publish new HTML, get a live URL |
| update_page | Replace an existing page's HTML |
| list_pages | List all your pages with IDs and URLs |
| delete_page | Soft-delete a page |
| get_page_analytics | View counts, referrers, trends |
Providing HTML content
publish_page and update_page accept HTML via exactly one of:
| Parameter | Best for | Example |
|---|---|---|
| file_path | Publishing existing HTML files from disk | "file_path": "./build/index.html" |
| html | Small pages or AI-generated HTML | "html": "<!DOCTYPE html>..." |
| html_base64 | Programmatic use when content is already base64 | "html_base64": "PCFET0NUW..." |
Environment variables
| Variable | Required | Description |
|---|---|---|
| RUNTHISPAGE_API_KEY | Yes | API key starting with rtp_ |
| RUNTHISPAGE_BASE_URL | No | Defaults to https://runthis.page |
Development
npm install
npm run build
RUNTHISPAGE_API_KEY=rtp_... npm run dev