Skip to main content
Glama

sitewise

Give your AI agent the web, as tools that return clean JSON. 50 sites as deterministic commands, browser control, and a native MCP server. Also a great CLI.

npm version adapter health ci license

Add it to Claude Code in one line, nothing to install:

claude mcp add sitewise -- npx -y sitewise mcp

Your agent can now search GitHub, npm, arXiv, Hacker News, Stack Overflow, Wikipedia and 40+ more sites, read any article as Markdown, and drive a real browser, all as structured tool calls instead of screen-scraping.

sitewise demo

sitewise hackernews top
sitewise github search "language:rust cli"
sitewise weather now "San Francisco"
sitewise read https://some-article.com

What is sitewise?

One clean surface over the web, three ways:

  1. A native MCP server. sitewise mcp gives AI agents (Claude Code, Cursor, or any MCP client) dedicated tools like search_github, search_npm and hacker_news, each described so the agent knows when it beats a web search, plus every other site via run_command. Results are exact, compact JSON from the source's own API, not a paraphrased web page.

  2. Site commands. 40 sites over their public APIs: no keys, no browser, no setup. sitewise hackernews top just works, even on a server or in CI.

  3. Browser automation. Drive a real Chrome-family browser over the DevTools Protocol (no extension), with a persistent profile where your logins stick. This also powers adapters for sites without a usable API.

Human output is tables; machine output is JSON with --json (or automatically when piped).

It tells you when a site breaks, and fixes what it can

Websites change. sitewise is built to notice:

  • Live health, in public. A nightly canary runs every adapter and publishes the result: that is the badge above (full report). A broken adapter gets an issue automatically, which closes itself when it recovers.

  • Check it yourself. sitewise doctor --adapters runs every command's example and prints a health table.

  • Self-repair. When a browser adapter's selectors drift and you have an ANTHROPIC_API_KEY, sitewise repairs them inline, verifies the fix against the live page, and saves it. Unverified repairs are never saved.

  • Errors that say what to do. A failure explains itself in plain words (rate-limited, blocked, down) and prints a prefilled issue link. Nothing is sent unless you submit it; sitewise has no telemetry.


Related MCP server: PyScrappy

Install

Requires Node.js ≥ 20. For agents, the npx line above is all you need. For the CLI:

npm install -g sitewise
sitewise doctor              # verifies node, network, and browser
sitewise doctor --adapters   # checks every site

Quick start

sitewise list                          # every site + command, with its mode
sitewise hackernews top --limit 5
sitewise npm search "web framework" --limit 50
sitewise crypto top
sitewise read https://example.com/post # any article → clean Markdown
sitewise npm search --help             # every command shows an example

Every command takes --json for structured output and --limit <n> where it applies (the limit is passed to the site's API, so you get the rows you asked for).


Site commands

50 sites, 64 commands. Two kinds:

API adapters: instant, no browser, work anywhere (40 sites)

Category

Sites

Dev & packages

github · gitlab · npm · pypi · crates · stackoverflow · devto

News & knowledge

hackernews · arxiv · wikipedia · wikidata · rss

Books & words

openlibrary · dictionary · urban · words · quotes

Media

itunes · tvmaze · anime · musicbrainz · rickandmorty · pokemon

Finance & crypto

crypto · coinpaprika · coinlore · defillama · trending · fx

Food, world & fun

cocktail · meal · brewery · weather · ip · nasa · worldtime · art · trivia · joke · lyrics

nasa uses NASA's shared DEMO_KEY, which is often rate-limited; set NASA_API_KEY (free) for reliable use.

Browser adapters: run through your own browser (10 sites)

Site

Commands

Login

youtube

search

no

githubtrending

today

no

producthunt

today

no

lobsters

hot

no

steam

search

no

imdb

search

no

amazon

search

no

reddit

hot, new, top, search

yes · experimental

twitter

search, profile

yes · experimental

linkedin

search

yes · experimental

Experimental adapters need you to log in once in the sitewise browser (sitewise browser start), and their selectors have not yet been verified against a logged-in session. Some sites show a bot check to automated or headless browsers; sitewise says so plainly and never tries to get past one.

sitewise arxiv recent cs.AI
sitewise stackoverflow search "async rust"
sitewise youtube search "svelte 5" --limit 5
sitewise reddit top programming --time week   # uses your logged-in session

Run sitewise list to see them all, each tagged api or browser.


Read any page as Markdown

sitewise read https://example.com/some-article

Extracts the main article (title, byline, body) and prints clean Markdown — perfect for piping into an LLM or saving notes. Add --json for structured fields.


Browser control

sitewise launches and drives a dedicated Chrome-family browser (Chrome, Chromium, Brave, or Edge) over the DevTools Protocol. It uses its own profile at ~/.sitewise/browser-profile, so it never touches your everyday browser — log into a site once there and the session persists across runs.

sitewise browser start                 # launch the managed browser
sitewise browser goto news.ycombinator.com
sitewise browser text                  # visible text of the page
sitewise browser read                  # main article as Markdown
sitewise browser click 'a.morelink'
sitewise browser fill 'input[name=q]' "query"
sitewise browser eval "document.title"
sitewise browser screenshot -o page.png
sitewise browser tabs                  # list tabs; target one with -t <index|substring>

For AI agents (MCP)

sitewise is an MCP server out of the box. Claude Code, with nothing installed:

claude mcp add sitewise -- npx -y sitewise mcp

If you installed it globally: claude mcp add -s user sitewise -- sitewise mcp. For any other MCP client, run the command npx -y sitewise mcp over stdio.

Your agent then gets dedicated tools for the questions it gets most. Each one says in its description when it beats a general web search, so agents reach for it on their own:

Tool

What it returns

search_github · get_github_repo · get_github_releases

repos ranked by stars; one repo's stars, issues, license, last push; latest releases

search_npm · get_pypi_package · search_crates

packages with current versions, downloads, descriptions

search_stackoverflow

top-voted questions for an error or how-to

hacker_news

the front page, or stories matching a query

search_arxiv · latest_arxiv_papers

papers on a topic; newest papers in a category

wikipedia_summary

the lead summary of an article

get_weather · get_crypto_prices · convert_currency

current conditions, live prices, ECB exchange rates

Results are compact JSON rows (or a short summary for single items), so they cost few tokens. All data tools are marked read-only. Everything else is one step away:

Tool

What it does

list_commands

every site command with its arguments, options, defaults and an example

run_command

run any site command with args and any of its options (e.g. {"time": "week"}); returns JSON

read_url

fetch a URL as clean Markdown

author_adapter

create a new adapter from selectors the agent found (verified against the live page before saving)

browser_start / browser_tabs

launch and inspect the browser

browser_goto / browser_read / browser_text

navigate and extract

browser_click / browser_fill / browser_eval

interact with pages

The API tools work immediately with no browser; the browser_* tools launch the managed browser on first use.

Intelligence & habit features

Powerful without a key; even better with one. The LLM-backed commands (heal, ask, author) use the official Anthropic SDK — set ANTHROPIC_API_KEY (model via SITEWISE_LLM_MODEL), or run via MCP so your agent supplies the intelligence. Everything else needs no key.

Self-healing adapters. When a browser adapter stops returning data, an LLM proposes new selectors; sitewise verifies them against the live page and only saves the fix if it actually extracts data. With a key set this happens automatically, mid-command (turn it off with SITEWISE_AUTOHEAL=0); you can also run it by hand:

sitewise heal producthunt today       # repair a broken adapter, save the fix

Ask in plain English.

sitewise ask "top hacker news stories"
sitewise ask "cheapest usb-c cable on amazon" --dry-run

Author a new site — no code.

sitewise author mysite list https://mysite.com --want title,price,url

Your daily briefing.

sitewise dash init --city "San Francisco"
sitewise dash                          # HN + weather + crypto + DEV, one command

Watch the web; get pinged anywhere.

sitewise watch add crypto price bitcoin --field price --below 60000 --webhook <slack-url>
sitewise watch add hackernews top      # notify when the top story changes
sitewise watch daemon                  # keep checking on an interval

Keep a local data trail.

export SITEWISE_HISTORY=1              # capture every run to ~/.sitewise/history
sitewise history crypto top --grep bitcoin

Write your own adapter — no code

Adapters are plain data. Drop a YAML file into ~/.sitewise/adapters/ and it shows up in sitewise list.

A browser adapter is a URL, an optional wait selector, and CSS field selectors:

name: news
description: "[browser] Example news site"
commands:
  - name: top
    description: Top headlines
    url: https://example.com/news
    waitFor: article.story
    columns: [headline, section]
    list:
      selector: article.story
      limit: 20
      fields:
        headline: { selector: h2 }
        section: { selector: .section }
        url: { selector: a, attr: href, absolute: true }
  • {query} in a url is replaced by the command's arguments; {0}, {1} are positional, and {0|all} gives a default.

  • {limit} is the requested row count; any option you declare under options: fills {its-name}.

  • example: [rust] gives the arguments shown in --help and used by sitewise doctor --adapters.

  • attr reads an attribute (e.g. href) instead of text; absolute: true resolves relative URLs.

  • No selector on a field means "use the matched item element itself."

Because adapters are data, a selector that drifts is a one-line fix — and an AI agent can author new adapters through the MCP server.


Environment variables

Variable

Effect

ANTHROPIC_API_KEY

enables ask, author, heal and inline auto-heal

SITEWISE_LLM_MODEL

model for those features

SITEWISE_AUTOHEAL=0

turn off inline auto-heal

SITEWISE_HEADLESS=1

run the managed browser without a window (servers, CI)

SITEWISE_HISTORY=1

record every run to ~/.sitewise/history

NASA_API_KEY

your own key for nasa apod


Scripting & JSON

Output switches to JSON automatically when piped, or force it with --json:

sitewise crypto top --json | jq '.[0].symbol'
sitewise github search "stars:>10000 language:go" --json > repos.json

How it works

Two small, declarative engines share one output layer:

  • API engine — fetches a no-key JSON endpoint and maps it to rows via dot-paths.

  • Browser engine — connects to the DevTools Protocol, opens a throwaway tab, waits for content, and runs a dependency-free extractor injected into the page (the same extractor is unit-tested against real DOM).

Adding a site touches data, not engine code — which is why the library grows fast and stays maintainable.


Development

git clone https://github.com/MeHalogen/sitewise
cd sitewise
npm install
npm run dev -- hackernews top     # run from source
npm test                          # unit tests
npm run build                     # compile to dist/

Contributions welcome. A new site is usually ten lines of data: see CONTRIBUTING.md. Found a broken site? Open an issue; the CLI prints a prefilled link when a command fails.


License

MIT © Mehal Srivastava

Available Tools

26 tools
author_adapterA

Create a new sitewise browser adapter for a site you have inspected. Provide the CSS selectors you found (use browser_goto + browser_text/browser_eval to inspect first). sitewise navigates the URL, VERIFIES your selectors extract data, and saves the adapter — so it appears in list_commands and works for everyone. Returns the extracted sample rows, or an error if the selectors matched nothing.

Inputs: url (required), site (required), fields (required), command (required), +2 more.

browser_clickC

Click the first element matching a CSS selector.

Inputs: selector (required), tab.

browser_evalC

Evaluate a JavaScript expression in the page and return its JSON-serialized value.

Inputs: expression (required), tab.

browser_fillA

Fill an input/textarea matching a CSS selector with a value (fires input/change events).

Inputs: value (required), selector (required), tab.

browser_gotoC

Navigate a tab to a URL and wait for it to load.

Inputs: url (required), tab.

browser_readB

Extract the main article of the current page as Markdown.

Inputs: tab.

browser_startA

Launch (or confirm) the sitewise-managed Chrome with DevTools control enabled.

Inputs: no named parameters.

browser_tabsB

List open browser tabs with their indexes.

Inputs: no named parameters.

browser_textC

Get visible text of the page (or of a CSS selector).

Inputs: tab, selector.

convert_currencyConvert currencyA
Read-only

Convert an amount between currencies at the latest European Central Bank rate. Use instead of web search for exchange rates.

Inputs: to (required), from (required), amount (required).

get_crypto_pricesCrypto pricesA
Read-only

Live USD prices and 24h change for cryptocurrencies. Use instead of web search for current crypto prices.

Inputs: coins (required).

get_github_releasesGitHub releasesA
Read-only

A repository's latest releases with tags and dates. Use when asked for the newest version of a project or what changed recently.

Inputs: repo (required), limit.

get_github_repoGitHub repository statsA
Read-only

Current stats for one GitHub repository: stars, forks, open issues, language, license and last push. Use instead of web search when asked how popular, active or maintained a project is.

Inputs: repo (required).

get_pypi_packagePyPI package infoA
Read-only

A Python package from PyPI: current version, summary, author, license and homepage. Use instead of web search for the latest version or details of a Python library.

Inputs: package (required).

get_weatherCurrent weatherA
Read-only

Current weather for a city: temperature, conditions, wind and humidity. Use instead of web search for weather right now.

Inputs: city (required).

hacker_newsHacker NewsA
Read-only

Hacker News stories with points, comment counts and links. Without a query: the current front page. With a query: matching stories. Use for what developers are discussing right now.

Inputs: limit, query.

latest_arxiv_papersLatest arXiv papersA
Read-only

The newest papers in an arXiv category, e.g. cs.AI, cs.CL, cs.LG. Use when asked what was just published in a field.

Inputs: category (required), limit.

list_commandsList all site commandsA
Read-only

Every sitewise site command (about 64 across 50 sites: packages, news, papers, media, food, finance, and browser-driven sites like YouTube and Amazon) with its args, options, defaults and an example. Call once when no dedicated tool fits, then use run_command.

Inputs: no named parameters.

read_urlRead a page as MarkdownA
Read-only

Fetch a URL and return its main article as clean Markdown (title, byline, body), without navigation, ads or scripts.

Inputs: url (required).

run_commandRun a site commandA
Read-only

Run any sitewise site command from list_commands, e.g. site="devto" command="top", or site="tvmaze" command="search" args=["severance"]. Returns structured JSON.

Inputs: site (required), command (required), args, limit, +1 more.

search_arxivSearch arXiv papersA
Read-only

Search arXiv research papers: titles, authors, dates and links. Use instead of web search to find papers on a topic.

Inputs: query (required), limit.

search_cratesSearch Rust cratesA
Read-only

Search crates.io for Rust crates with current versions and download counts. Use to find or compare Rust libraries.

Inputs: query (required), limit.

search_githubSearch GitHub repositoriesA
Read-only

Search GitHub repositories, ranked by stars, with exact star counts, language and description. Use instead of web search to find, compare or rank open-source projects and libraries. Supports GitHub qualifiers, e.g. "mcp server language:typescript stars:>100".

Inputs: query (required), limit.

search_npmSearch npm packagesA
Read-only

Search the npm registry: package names, current versions and descriptions. Use instead of web search to find or compare JavaScript/TypeScript packages or check the latest published version.

Inputs: query (required), limit.

search_stackoverflowSearch Stack OverflowA
Read-only

Search Stack Overflow questions ranked by votes, with score, answer count and link. Use to find established answers to a programming error or how-to question.

Inputs: query (required), limit.

wikipedia_summaryWikipedia summaryB
Read-only

The lead summary of a Wikipedia article. Use for a quick, sourced overview of a person, place, concept or event.

Inputs: title (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 26 tools

    Disambiguation4/5

    The data-fetching tools each map to a distinct source and action (weather, crypto, GitHub repo vs releases, npm, PyPI, crates, StackOverflow, HN, arXiv search vs latest, Wikipedia, currency), so misselection is unlikely. The main soft spots are read_url vs browser_read vs browser_goto+browser_text (three ways to get page content), and run_command, which overlaps with every dedicated tool, though the 'use only when no dedicated tool fits' wording mostly resolves it.

    Naming Consistency4/5

    The dominant pattern is verb_noun (get_weather, search_github, convert_currency, list_commands, run_command), and the browser_* family is internally consistent with its prefix. Deviations are hacker_news, wikipedia_summary, latest_arxiv_papers, and author_adapter, plus a verb_noun vs noun_verb ordering flip between the data tools and the browser group, but nothing that impedes reading.

    Tool Count3/5

    26 tools sits at the heavy end of the guidance, driven by eight browser-automation primitives alongside a broad multi-domain aggregator surface. Most tools earn their place, but browser_start/browser_tabs/browser_goto/browser_text/browser_read are thin enough that a few could be folded together, and many dedicated search tools are redundant with run_command.

    Completeness4/5

    Coverage is genuinely wide: a generic list_commands/run_command fallback plus read_url means an agent is rarely dead-ended even for domains without a dedicated tool. Remaining gaps are lifecycle-level — no browser tab open/close/back, no screenshot, and no way to update or delete an adapter once authored.

    Maintenance

    ActivityMaintained
    ResponsivenessUsually handled

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Web tools for AI agents. Search the web for full page content, fetch URLs as clean markdown including PDFs, extract structured data from a page with a prompt, and run multi-source deep research that returns a cited report.
      4
      2
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      A Python web-scraping toolkit that exposes 22 tools for fetching structured web data (from any URL to search, finance, e-commerce, and reference sources) as validated JSON for AI agents.
      24
      179 PyPI
      265
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI agents to extract structured content from URLs, search the web via DuckDuckGo, monitor site availability, and convert HTML to markdown without requiring API keys.
      5
      38 npm
      MIT