Guion Web MCP server
Enables web research through multi-provider search, documentation lookup, public code search, and clean Markdown extraction from static or JavaScript-rendered pages via five read-only tools.
README
Guion Web
Guion Web is a Node.js web research toolkit. It provides Exa or Brave search,
Context7 library documentation lookup, Sourcegraph public code search, and two
page-fetch backends through a CLI, stdio MCP server, Pi extension, and DeepSeek
Harness (DSH) integration: direct HTML-to-Markdown extraction and explicit
agent-browser rendering for client-rendered pages on supported hosts.
Install and configure
Node.js 20 or later is required. @guionai/web intentionally exposes only
its web executable and stdio MCP server; it does not provide a root
JavaScript or TypeScript SDK. Use the Pi or DSH packages for those host
integrations.
npm install --global @guionai/web
# or run without a global install
npx @guionai/web --help
Search needs one provider credential. If both are present, Exa is selected by
default; select a provider explicitly with --provider exa or --provider brave.
Context7 works anonymously when its key is absent.
export EXA_API_KEY="..."
# or
export BRAVE_API_KEY="..."
# optional, for authenticated Context7 requests
export CONTEXT7_API_KEY="..."
Do not put credentials in command arguments or commit them. The CLI reads these environment variables directly; it does not load a dotenv file or an older application configuration path.
CLI
web has human-readable output by default. Add --json for exactly one JSON
document on stdout, which is useful for automation.
web search --provider exa -- "Node AbortSignal"
web fetch https://example.com/article --tree
web fetch https://example.com/article --section introduction
web docs resolve react
web docs fetch /facebook/react --topic hooks --tokens 2000
web sgraph --count 10 -- "repo:^github\\.com/nodejs/node$ AbortSignal"
Use -- before a search or Sourcegraph query that begins with a hyphen. fetch
supports --full, --tree, and --section; long extracted documents default to
a heading tree so a later request can retrieve a stable section ID.
MCP
Run the stdio server with the same credential environment:
web mcp
# Pin search selection for the lifetime of this MCP process:
web mcp --provider brave
The server exposes five read-only tools: search, fetch, docs_resolve,
docs_fetch, and source_search. Its stdout is reserved for MCP protocol
messages; diagnostics go to stderr. For a client-rendered page, explicitly call
fetch with render: "agent-browser" and an integer waitMs; this optional
retry requires a host-installed executable and never happens automatically.
Pi
Install the independently bundled Pi extension:
pi install npm:@guionai/pi-web
It registers web_search, web_fetch, web_docs, and web_source_search and calls
the bundled core in-process. Pi and TypeBox are peer dependencies supplied by
the host; no CLI executable or MCP configuration is required. web_fetch uses
direct fetch by default and can explicitly use render: "agent-browser" with
an integer waitMs when its host provides that optional executable.
DSH
Install the DSH bundle in the existing Web profile:
dsh plugin --profile web add @guionai/dsh-web
The included profile patch routes stock PTC web search through the selected Exa
or Brave provider. Its settings UI stores provider selection and manages
namespaced write-only credentials. Fetch, documentation, and Sourcegraph tools
also run in-process. The host DSH packages and React are peers supplied by DSH.
web_fetch uses direct fetch by default and can explicitly use
render: "agent-browser" with an integer waitMs on a host that supplies the
optional executable.
Page-fetch backends
web fetch has two backends. fetch (the default) uses Node fetch,
linkedom, and Defuddle for direct HTML-to-Markdown extraction from static,
SSR, and pre-rendered pages. agent-browser renders client-side pages through
a separately installed host executable. Direct fetch is used by default; choose
agent-browser explicitly when needed. The implementation never falls back
automatically:
web fetch https://example.com/app --render=agent-browser --wait=2000
# If it is still incomplete, retry explicitly with more time, or abandon it:
web fetch https://example.com/app --render=agent-browser --wait=10000
--wait is mandatory with --render=agent-browser, including --wait=0, and
accepts only an integer from 0 through 30,000 milliseconds. Direct fetch
requests must not provide --wait. The same render: "agent-browser" and required
waitMs fields are available on the MCP fetch, Pi web_fetch, and DSH
web_fetch tools. A direct-fetch failure may return the structured
javascript_rendering_may_be_required hint with the 2,000 ms suggestion; the
agent decides whether to retry with a longer wait or abandon the page.
Rendering is an optional host capability. If you choose to use it, install agent-browser separately on the host:
npm install --global agent-browser
agent-browser install
agent-browser install manages its own browser runtime; Guion packages never
run it, bundle it, or reuse browser credentials. A compatible executable must be
directly runnable from PATH without a shell. The renderer is supported on
macOS and Linux hosts. Direct fetch remains available, and the three npm
packages remain installable when agent-browser is absent.
A rendered session is fresh and non-persistent. Before launch, the target must
be an HTTP(S) public hostname or address. The browser allowlist then contains
only the requested hostname, *.<requested-hostname> (the target and its
subdomains), and this fixed common-CDN set:
cdn.jsdelivr.netunpkg.comcdnjs.cloudflare.comajax.googleapis.comfonts.googleapis.comfonts.gstatic.comesm.sh
The caller cannot widen this list. Redirects, APIs, frames, workers, sockets,
or other dependencies on unknown domains fail closed as
render_domain_not_allowed; increasing waitMs will not help. Report a likely
missing first-party or common-CDN domain at
https://github.com/guionai/web/issues/new, including the page URL and blocked
domain. Do not include credentials or page secrets in an issue.
This is a browser-level hostname boundary, not complete SSRF protection or a host egress firewall. Literal and DNS-resolved private/reserved targets are rejected before launch, but an allowlisted malicious hostname can change its DNS answer to a private address after validation (DNS rebinding), and there is no operating-system host-egress isolation here. Do not use this backend for arbitrary untrusted URLs in a public or multi-tenant service without a per-connection SSRF-filtering proxy or container/microVM egress isolation.
Development
This is a pnpm workspace. Install dependencies and run the same local gates used by CI:
pnpm install --frozen-lockfile
pnpm format:check
pnpm typecheck
pnpm build
pnpm test
pnpm test:release
pnpm test:pack
test:release uses disposable manifests to exercise tag-version
synchronization. test:pack runs each public package's packed installation or
host-loading contract in test-owned temporary directories.
Releases
A v<semver> tag is the release source of truth for all three public packages:
@guionai/web, @guionai/pi-web, and @guionai/dsh-web. The release preflight
synchronizes its checkout manifests from that tag, then completes formatting,
typechecking, build, tests, release-version checks, and packed smoke tests
before any publication begins.
Three independent, non-fail-fast protected npm Environment matrix cells then
publish one package each through npm Trusted Publishing with provenance. The
synchronized version selects npm's latest tag for stable SemVer and beta for
a prerelease. After all three cells succeed, the workflow creates the GitHub
release with generated notes and source archives. It publishes no binaries or
platform archives.
If publication partially fails, use GitHub Actions Re-run failed jobs. Never use Re-run all jobs: npm versions are immutable, so the jobs that already published successfully must not run again.
First beta bootstrap and Trusted Publishing
Do this once after the release commit is merged, before enabling routine OIDC releases:
- Check out a clean intended release commit and choose a synchronized beta
version such as
0.1.0-beta.1. - With a maintainer npm account that has
@guionaipublish permission and 2FA, runnode scripts/sync-version.mjs 0.1.0-beta.1, then run the build, test, pack, andnode scripts/release-dry-run.mjs 0.1.0-beta.1gates. - From each public package directory, publish the synchronized beta with
npm publish --access public --tag beta. This bootstrap is authenticated by the maintainer; do not pass provenance outside the GitHub OIDC release job. - In npm package settings, create one GitHub Trusted Publisher relationship
for each of
@guionai/web,@guionai/pi-web, and@guionai/dsh-web. Each must target repositoryguionai/web, workflow.github/workflows/release.yaml, and the protectednpmEnvironment. - Verify all three relationships and npm publishing-access policies in npm, then enable/tag the routine release workflow. It uses GitHub OIDC with no npm token and requests provenance for every normal publication.
Never overwrite or unpublish a version. For a partial GitHub release, rerun only its failed publish cells.
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.