2026-11-26 15:39 UTC

Machine Internet packages observed website APIs as MCP tools

state: seedheat: mediumuncertainty: mediumrelevance: mediummcp web-automation agent-toolsChetan Ty

What is this?

Machine Internet is an open-source Python tool by Chetan Ty, a University of Alberta CS student. Announced in a Show HN post on Nov. 18, 2026, it is available to run locally or try through a hosted demo. It checks for an OpenAPI spec or opens a site in a headless browser, observes same-site JSON requests, and uses an LLM to infer and package read-only tools as an MCP server. The repository documents five bundled examples and reports full success on roughly one-third of 51 tested sites; that is the creator’s own evaluation, not an independent benchmark. It also notes that some bundled tools needed manual fixes, and that server-rendered pages, bot protection, and changing internal APIs limit reliability.

Why it matters

This lowers the effort needed to give AI agents structured access to data on sites without official APIs: an agent can call a live endpoint rather than repeatedly scrape or navigate pages. That could broaden the web services agents can query, but the tool’s reported one-in-three success rate, reliance on undocumented APIs, and site terms and rate limits make this a promising convenience for compatible sites, not a general web-access solution.

Current assessment

New: Machine Internet is presented as an available URL-to-MCP workflow, with local installation and a hosted browser demo. The creator says wrapping takes one to three minutes, costs a few cents of LLM usage (or may use Gemini’s free tier), and subsequent serving requires no LLM. The README reports full success on about one in three of 51 tested sites, with better results on single-page apps, directories, and search pages; some examples were hand-tidied, so this rate does not establish turnkey reliability. It is read-only by design, sees only requests triggered during the captured page interactions, and may break when sites change their internal APIs. The opportunity is easier, lower-friction agent access to otherwise undocumented data endpoints; constraints include compatibility, bot blocking, authentication and rate limits, and site terms. Evidence here is the creator’s Show HN post and linked project documentation; no independent validation or adoption evidence is supplied. Web results include a PyPI listing, but the supplied result does not establish publication timing or independent use.

Measured heat

now 0 pts/hpeak 5 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 218h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-17 13:00⭐ origin echo-reconstructedThe repository is the primary artifact, not an intermediary: its README introduces Machine Internet as “Turn web apps with hidden APIs into
Chetan Tyagi (@ChetanTy) on github (echo) · attributed from hn.story.50534582
—
11-17 17:09first on hacker news · published · +4.2hShow HN: Machine Internet: turn a site's hidden JSON API into MCP tools
ChetanTy
—
11-17 17:09amplified on hacker news 👑hn.story.50534582
ChetanTy
peak 3 · 2 comments · 100% of case engagement
11-17 17:21our radar first saw it · +4.3hdiscovery anchor: hn.story.50534582—
pace: p47 vs 2096 stories at the 168h mark (now 218h old) — ahead of 42loop-agent-operated-product-experiment (1.2x), behind 5dive-self-hosted-coding-agents (0.8x)

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnShow HN: Machine Internet: turn a site's hidden JSON API into MCP tools
Retrieved article excerpt

Open article · Retrieved 2026-11-17T17:22:36.895971+00:00

[Machine Internet logo](https://raw.githubusercontent.com/chetanty/machine_internet/main/assets/logo.png)

# Machine Internet

**Turn web apps with hidden APIs into MCP servers. No official API needed.**

```
uvx machine-internet wrap https://www.ycombinator.com/companies
```

Machine Internet opens the site in a headless browser, watches the hidden API calls the page makes, and turns them into a small set of clean tools that Claude, Cursor or any MCP client can call directly.

[Demo: wrapping the YC company directory and calling the new tool](https://raw.githubusercontent.com/chetanty/machine_internet/main/assets/demo.gif)

**Try it in your browser, nothing to install:** [machine-internet.vercel.app](https://machine-internet.vercel.app) runs every tool below against the real site.

[CI](https://github.com/chetanty/machine_internet/actions/workflows/ci.yml)
[License](https://camo.githubusercontent.com/13450a3464aba788d632d0254485f072375c0332baecbcefb8f1b7d27898fb22/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d417061636865253230322e302d626c7565)
[Python](https://camo.githubusercontent.com/3b57acae22b9039970d3eaa48a9a82fcb9e56a528d7aba2826ba9638a0dacee7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f707974686f6e2d332e31302532422d626c7565)
[MCP](https://camo.githubusercontent.com/955e9c16bfcf36c23d994c0df63bf5345072a52047277d7e19344a461ab4c71f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d43502d636f6d70617469626c652d6f72616e6765)

---

## Try it in 30 seconds (no API key)

Five sites come pre-wrapped. None has an official public API or MCP server for this data; the tools hit the same endpoints the site's own page uses. Add one to your Claude Desktop or Cursor config:

```
{
  "mcpServers": {
    "yc": {
      "command": "uvx",
      "args": ["machine-internet", "serve", "yc_companies"]
    }
  }
}
```

Restart your client and ask: *"Which YC companies from the last two batches are building robotics, and what do they do?"*

| Example | Site | Tools |
| --- | --- | --- |
| `yc_companies` | [YC company directory](https://www.ycombinator.com/companies) | search every YC company by keyword, batch, industry, status, team size |
| `spotify_podcasts` | [Spotify Podcast Charts](https://podcastcharts.byspotify.com) | top shows, top episodes and trending shows in any country |
| `substack` | [Substack search](https://substack.com) | search posts and writers across every Substack |
| `vscode_marketplace` | [VS Code Marketplace](https://marketplace.visualstudio.com/vscode) | search extensions with install counts and ratings |
| `bundlephobia` | [bundlephobia.com](https://bundlephobia.com) | 6: package size, tree-shaking check, size history, similar packages, per-export sizes |

Each one was made with `wrap`, then tidied by hand: the VS Code request body, parameter defaults, and for Spotify and Substack merged or renamed tools, one broken tool removed and responses trimmed to the useful fields. The table under "What it works on" is honest about what `wrap` gets right on its own.

You need [uv](https://docs.astral.sh/uv/) for `uvx`. Or install it once with `pip install machine-internet` (or straight from GitHub: `pip install git+https://github.com/chetanty/machine_internet`) and use `machine-internet` as the command.

**Hosted, nothing to install:** every example is also live at [machine-internet.vercel.app](https://machine-internet.vercel.app) as a remote MCP endpoint, e.g. `https://machine-internet.vercel.app/mcp/yc_companies`. Clients with remote MCP support take the URL directly; others can use `npx mcp-remote <url>`. Some sites rate-limit requests from cloud servers, so for heavy use run `serve` locally, which calls the site from your own connection.

---

## Wrap your own site

**What you need:** [uv](https://docs.astral.sh/uv/) and one LLM API key. That's it. The headless browser downloads itself on the first run.

The easiest key is Gemini's: [get one free at aistudio.google.com/apikey](https://aistudio.google.com/apikey) (free tier, no credit card). Anthropic and OpenAI keys work too.

```
export GEMINI_API_KEY=your-key        # Windows PowerShell: $env:GEMINI_API_KEY="your-key"
```

Then point it at a page that loads data as you use it:

```
uvx machine-internet wrap https://www.ycombinator.com/companies --name yc
```

```
Wrapping https://www.ycombinator.com/companies
  Checking for an OpenAPI spec ...
  Sniffing network traffic in a headless browser ...
  [traffic] 6 same-domain XHR calls captured
  [traffic] replaying public keys the site sends: x-algolia-agent, x-algolia-api-key, x-algolia-application-id
  [OK] Inferred 1 endpoints
  Condensing into agent tools ...
  [OK] 1 tools:
       search_companies: Searches for Y Combinator companies using keywords, filters, and facets. ...

Add this to your MCP client config (Claude Desktop, Cursor, ...):
{ "mcpServers": { "yc": { "command": "uvx", "args": ["machine-internet", "serve", "yc"] } } }
```

Then try it straight from the terminal:

```
uvx machine-internet call yc search_companies query=robotics 'filters=batch:"Winter 2025"'
```

The first run downloads headless Chromium automatically (one time, about 120 MB). Wrapping takes 1 to 3 minutes and costs a few cents of LLM usage, or nothing on Gemini's free tier. Serving afterwards needs no LLM at all.

Gemini's free tier has a small daily quota per model, enough for roughly 20 wraps a day in our testing. When it runs out, Machine Internet falls back to Gemini Flash-Lite automatically; if that is out too, wait a day or add an Anthropic or OpenAI key.

**Tips**

- Pick a page that fetches data: a search results page or an item page works better than a static landing page.
- If the site publishes an OpenAPI spec, it is used automatically and nothing is sniffed. Point at one directly with `--spec <url>`.
- Large specs: keep only some areas with `--tags repos,issues`.

---

## How it works

1. **Spec check.** Probes about 20 standard locations (`/openapi.json`, `/swagger.json`, ...). If a real spec exists, it is parsed directly.
2. **Traffic sniffing.** Otherwise, launches headless Chromium, loads the page, scrolls and clicks through it, and records every same-site JSON request. Analytics and ad trackers are filtered out.
3. **Inference.** An LLM reads the captured requests and responses and infers each endpoint's path, parameters and types.
4. **Condensation.** An LLM collapses the endpoints into at most 15 `verb_noun` tools, with descriptions written so an agent knows when to use each one.
5. **Serving.** The result is a small JSON file. `machine-internet serve` exposes it as a standard MCP server (stdio by default, SSE with `--sse`) that makes real calls to the real site.

---

## Commands

```
machine-internet wrap <url> [--name NAME] [--spec URL] [--tags a,b] [--sniff] [-o FILE]
machine-internet serve <name-or-file.json> [--sse --port 8000]
machine-internet list                  # bundled examples and servers you have wrapped
machine-internet tools <name>          # show a server's tools and parameters
machine-internet call <name> <tool> key=value ...   # call a tool from the terminal
machine-internet config <name>         # print the MCP client config block
```

Wrapped servers are saved to `~/.machine-internet/schemas/`.

**APIs that need auth:** credentials are read from the environment when the server runs: `MI_TOKEN` (bearer), `MI_API_KEY` (plus `MI_API_KEY_NAME`, `MI_API_KEY_IN=header|query`), `MI_USERNAME` / `MI_PASSWORD`, or `MI_TOKEN_URL` / `MI_CLIENT_ID` / `MI_CLIENT_SECRET` for OAuth2 client credentials. Put them in the `env` block of your MCP client config.

---

## What it works on

It works on sites whose pages load their data with API calls from the browser: most single-page apps, search pages, dashboards and developer tools. It does not work on sites that render pages on the server, or that block headless browsers.

Results from pointing `wrap` at 51 sites, with each generated tool then called for real:

| Result | Sites |
| --- | --- |
| Works | YC company directory, Spotify Podcast Charts, Substack search, Fontshare, OpenRouter rankings, Luma, crates.io, deps.dev, Hugging Face, archive.org, HN Search, OSS Insight, bundlephobia, npm trends, regex101 |
| Works after a hand fix | VS Code Marketplace (nested request body), caniuse (form-encoded body) |
| Wrong data found | IKEA (only the category tree; search runs on another domain), Raycast Store and Rotten Tomatoes (only session or layout calls), Nike, Target and Coursera (only privacy, store-picker or cart calls, mostly locked) |
| Search key locked to the site | Michelin Guide (its Algolia key only works from guide.michelin.com, so it is left alone) |
| Partly works | Open Library (1 of 2 tools), ESPN (side data only; the scores are server-rendered), Steam (search works but returns ready-made HTML) |
| No data API found (server-rendered) | Docker Hub, IMDb, Reddit, GitHub Trending, npmjs.com, Metacritic, Resident Advisor, HowLongToBeat, JSR, Figma Community |
| Data on another service | a16z portfolio (Google and LinkedIn embeds), Sequoia (served by Framer) |
| Blocked by bot protection | Devpost, LMArena, Printables, Product Hunt, lichess, packagephobia, Bandcamp, Kickstarter, Goodreads |
| Unusable internal format | Google Fonts (Google's batchexecute RPC), dev.to (only a session-token call), Chrome Web Store (same Google format) |

So about 1 in 3 arbitrary sites work fully. Developer tools, directories and search pages built as single-page apps do much better; big retail sites and Google products rarely work. When it fails, it says why: server-rendered, blocked, or data on another service. A server-rendered page is caught in about 15 seconds, before any LLM call, so a miss costs nothing.

## Limitations

- **Read-only by design.** `wrap` leaves out anything that would change data on the site (carts, logins, posting, tracking), even if the page made such a call while it was being sniffed.
- **Internal APIs change without notice.** A wrapped site can break when it ships a new frontend. Re-run `wrap` to refresh it.
- **It only sees what the page does while loading and being clicked.** Actions behind logins, multi-step forms or heavy anti-bot protection usually are not captured.
- **LLM output varies.** If the tools look wrong, run `wrap` again or narrow the page you point it at.

## Use responsibly

Undocumented APIs are still someone else's service. Check the site's terms before wrapping it, keep request volume reasonable, and do not use this to get around access controls or rate limits.

---

## How it compares

|  | Machine Internet | OpenAPI-to-MCP converters | Browser agents |
| --- | --- | --- | --- |
| Works without an API spec | Yes | No | Yes |
| Agent calls the API directly (fast, cheap per call) | Yes | Yes | No, drives a browser every time |
| One command from URL to MCP server | Yes | Needs a spec | No |

Related work worth knowing: [Integuru](https://github.com/Integuru-AI/Integuru) generates integration code from captured traffic, and [mitmproxy2swagger](https://github.com/alufers/mitmproxy2swagger) builds OpenAPI specs from recorded traffic. Machine Internet's focus is going straight from a URL to a running MCP server.

---

## Development

```
git clone https://github.com/chetanty/machine_internet
cd machine_internet
pip install -e ".[dev]"
pytest
python evals/score.py      # condensation quality evals (needs an LLM key)
```

## License

Apache 2.0
ChetanTy32
🟧 echo.github ⭐The repository is the primary artifact, not an intermediary: its README introduces Machine Internet as “Turn web apps with hidden APIs into Chetan Tyagi (@ChetanTy)——

Interpretation history

Decision trace