mcp.andreglegg.no

mcp.andreglegg.no

Remote MCP tool host serving tree generation tools over Streamable HTTP, returning short-lived download URLs for artifacts.

Category
Visit Server

README

mcp.andreglegg.no

Remote MCP tool host. Serves my own tools over Streamable HTTP so any MCP client can use them without a local install.

Route Auth Tools
/treegen none generate_tree, random_tree, list_presets
/assetcut Cloudflare Access service token ping only — real tools pending
/dl/<id> none artifact downloads, 30 min TTL

Use it

claude mcp add --transport http treegen https://mcp.andreglegg.no/treegen

Tools return a short-lived download URL rather than the file itself — a detail-2 tree GLB is ~664 KB, which has no business inside a model's context window.

Run locally

npm install
npm test
PUBLIC_BASE_URL=http://localhost:8787 npm start

Environment: PORT (default 8787), ARTIFACT_DIR, PUBLIC_BASE_URL.

Architecture

Design and rationale — including why Cloudflare Workers was rejected and why binaries are never returned inline — live in docs/superpowers/specs/2026-08-03-mcp-subdomain-design.md.

The host runs on a self-hosted Windows machine behind a free Cloudflare Tunnel, so the public endpoint is only up when that machine is.

Adding a tool

  1. Write src/tools/<name>/index.js exporting register<Name>Tools(server, { store }).
  2. Add it to the route's array in src/registry.js. That's the only file that changes.
  3. Return store.put(bytes, ext)'s URL — never raw bytes.

Deploying to a host machine

The scripts take paths as parameters and default to the current user's profile, so nothing here is tied to a particular machine.

First-time setup, from the checkout directory:

npm ci --omit=dev
powershell -File install.ps1

install.ps1 registers mcp-host as a Scheduled Task at boot. The Node path is absolute inside it because the task runs as SYSTEM, whose PATH excludes the Node install directory; a bare node there fails with 0x80070002 while the task still reports Ready and nothing listens.

The tunnel. cloudflared tunnel login needs a browser and cannot be scripted. It can run on any machine, with the resulting credentials JSON copied to the host:

cloudflared tunnel login                                    # writes cert.pem
cloudflared tunnel create <tunnel-name>                     # writes <UUID>.json
cloudflared tunnel route dns <tunnel-name> mcp.andreglegg.no

Then on the host machine, copy <UUID>.json into the cloudflared directory, copy tunnel/config.example.yml to config.yml there and fill in the tunnel UUID, and run:

powershell -File install-tunnel.ps1

Do not use cloudflared service install. On Windows it registers the service with no arguments and drops the --config flag, so the service runs as LocalSystem, finds no config, and sits there connecting to nothing while reporting RUNNING. Copying the config into the LocalSystem profile does not fix it either. The scheduled task in install-tunnel.ps1 pins the full command line and works.

Redeploying after a push — run update.ps1 on the host machine:

powershell -File update.ps1

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured