web-access
Provides GitHub search capabilities for repositories, code, issues, commits, and topics, enabling AI agents to discover and research GitHub content.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
web-access
Bahasa Indonesia · Changelog · MIT licensed ·
A zero-dependency local MCP server, packaged as a Claude Code plugin, that gives AI coding agents web access through Exa and Tavily:
Web search: one provider, automatic fallback, or both merged with rank fusion. Supports domain, date and category filters, AI answers and compact snippets.
API key rotation for both providers, with persistent cooldowns for exhausted, rate-limited or invalid keys
Reading the web: a direct page fetch with paging for long pages, Tavily Extract for PDFs and JS-rendered pages, and Tavily Map/Crawl for whole sites
Safe by default: internal and private network addresses are refused, downloads are size-capped, and no telemetry is sent
GitHub search for repositories, code, issues, commits and topics
It works out of the box, because Exa is used keyless when no key is configured. Keys unlock more:
No keys | + Exa key(s) | + Tavily key(s) | |
Web search | ✅ Exa (anonymous) | ✅ Exa REST: native filters, | ✅ Tavily search: news/finance topics |
Fallback between providers | — | — | ✅ |
| Exa only | Exa only | ✅ Exa + Tavily |
AI answer ( | — | ✅ Exa | ✅ Tavily answer |
| ✅ HTML/text | ✅ | ✅ plus PDFs and JS pages |
| — | — | ✅ |
Contents
Related MCP server: Web Search MCP Server
Requirements
Node.js 18.17 or newer on your
PATH. Check withnode -v. Nonpm installis needed, because there are no dependencies.Claude Code for plugin install, or any MCP client that supports stdio servers.
Optional: Tavily API key(s) (free tier: 1,000 credits/month), Exa API key(s), and the GitHub CLI (
gh auth login) for GitHub code search.
Works on Windows, macOS and Linux. CI covers Node 18, 20 and 22 on Linux and Windows.
Install
Claude Code plugin (recommended)
/plugin marketplace add mahdyarief/web-access
/plugin install web-access@mahdyariefOn Claude Code 2.1.275 or later, a single command does both:
/plugin install web-access --marketplace mahdyarief/web-accessDuring install, Claude Code asks for the plugin options. All of them are optional:
Option | Key | Meaning |
Tavily API keys |
|
|
Exa API keys |
| Comma separated. Leave empty to use Exa keyless. |
Default search provider |
|
|
The key fields are marked sensitive. Claude Code stores them in your OS credential store, not in settings.json, and they never pass through the chat. To change them later, run /plugin configure web-access@mahdyarief and then restart Claude Code (or reconnect web-access in /mcp).
From a shell (for scripts or CI):
claude plugin marketplace add mahdyarief/web-access
claude plugin install web-access@mahdyarief
echo '{"tavily_api_keys":"tvly-aaa,tvly-bbb","search_provider":"auto"}' \
| claude plugin configure web-access@mahdyarief --values-stdinThe plugin bundles:
Component | Name | Purpose |
MCP server |
| The tools below, exposed as |
Skill |
| Teaches Claude which tool and mode to use for each kind of question. |
Skill |
| Guided key setup, a status check and diagnosis. |
Any other MCP client
The server is client-agnostic. Its config and state live in plain files, not in any client-specific folder. Clone the repo and point your client at server.js:
git clone https://github.com/mahdyarief/web-access.git{
"mcpServers": {
"web-access": {
"command": "node",
"args": ["/absolute/path/to/web-access/server.js"],
"env": {
"TAVILY_API_KEYS": "tvly-aaa,tvly-bbb",
"EXA_API_KEYS": ""
}
}
}
}You can leave env out and use the config file instead.
Quick start
After installing, just ask Claude:
"What changed in the latest Node.js release?" →
web_searchwithrecency"Read https://example.com/docs/api and summarize the auth section" →
web_get_contents, paging withoffsetif the page is long"Which pages does docs.tavily.com have about the API?" →
web_map"Read all the API reference pages of this docs site" →
web_crawlwithselectPaths"Find popular MCP server repos written in TypeScript" →
github_search"Research Bun vs Deno, give me a short answer and cite sources" →
web_searchwithprovider: "both"andincludeAnswer: true
To check the setup, run /web-access:setup or ask "run web_access_status":
## web-access status
**Config file:** `~/.openclaude/web-access.json`
**Default provider:** auto
**Exa:** 2 key(s) from env / plugin settings · REST API · keyless fallback on
- `3f2a91c0…7d1e` — ready
- `b81e44aa…02cf` — cooling (HTTP 402, 1380 min left)
- spend this session: $0.0350 over 7 request(s)
**Tavily:** 1 key(s) from env / plugin settings
- `tvly-13T…bbqN` — ready · credits 150 / 1000 used
- account plan: Researcher · plan 150 / 1000 used
**Cooldown state:** `~/.openclaude/web-access-state.json`
**Cache:** 5 entries, TTL 600s, 3 hit(s) / 5 miss(es)Example web_search result with provider: "both" and includeAnswer: true:
**Answer (Tavily):** The Model Context Protocol (MCP) is an open standard …
**Answer (Exa):** MCP is an open-source protocol … Sources: [1](https://…) [2](https://…)
---
### [What is the Model Context Protocol (MCP)?](https://modelcontextprotocol.io/docs/getting-started/intro)
_2025-11-25 · via exa + tavily_
MCP (Model Context Protocol) is an open-source standard for connecting AI applications to external …Tools reference
Every tool returns Markdown text. If a tool fails, the result is marked isError and the error message says what to fix. All search, extract, map and crawl tools accept fresh: true to bypass the cache.
web_search
Searches the web with the configured provider strategy.
Parameter | Type | Default | Notes |
| string | required | Be specific: include product names, versions or error text. |
| number |
| 1–10. In |
| string | Limits results to one domain, e.g. | |
|
| Only results published in that period. | |
|
| Exa category. Mapped to a Tavily topic on fallback ( | |
|
| config, else | See provider modes. |
| boolean |
| Adds an AI answer: the Tavily answer and/or Exa |
| number |
| Snippet length per result (100–10000). |
|
|
| Exa freshness ( |
| boolean |
| Skips the result cache. |
web_search_exa
Exa only. Without a key it uses Exa's anonymous MCP endpoint. With keys it uses the REST API with native filters and key rotation.
Parameter | Type | Default | Notes |
| string | required | |
| number |
| 1–10 |
| As in | ||
|
|
|
|
| number |
| Sent to Exa as the highlights budget, so snippets are compact at the source. |
|
|
| Mapped to Exa |
| boolean |
|
web_search_tavily
Tavily only. Requires a Tavily key.
Parameter | Type | Default | Notes |
| string | required | |
| number |
| 1–20 |
| Sent as Tavily | ||
|
|
| |
|
|
|
|
| boolean |
| Adds a short AI answer. |
| number |
| |
| boolean |
|
web_get_contents
Returns the readable content of one URL. Works without any key. See reading pages.
Parameter | Type | Default | Notes |
| string | required |
|
| number |
| Characters returned per call (500–50000). |
| number |
| Continues a long page. Each truncated result ends with |
| boolean |
| Re-downloads the page. Otherwise the document is cached, so paging does not re-fetch it. |
web_extract_tavily
Extracts several URLs in one call with Tavily Extract. Requires a Tavily key.
Parameter | Type | Default | Notes |
| string[] | required | Up to 20 |
|
|
|
|
| number |
| |
| boolean |
|
URLs that fail are listed under ## Failed: along with the reason.
web_map
Lists the URLs of a website (no content) with Tavily Map. Use it to find the right pages of a docs site before reading them. Requires a Tavily key.
Parameter | Type | Default | Notes |
| string | required | Root URL to start from. |
| number |
| 1–500 URLs. |
| number |
| 1–5 link levels. |
| string[] | Regex path filters, e.g. | |
| string | Natural-language focus. Costs 2× credits. | |
| boolean |
| Follow links to other domains. |
| boolean |
|
web_crawl
Crawls a website and returns several pages' content in one call with Tavily Crawl. Requires a Tavily key. Takes the same parameters as web_map, plus:
Parameter | Type | Default | Notes |
| number |
| 1–50 pages. |
|
|
| |
| number |
| Per-page text in the output. Read any page in full with |
github_search
Searches GitHub through the REST API.
Parameter | Type | Default | Notes |
| string | required | Same syntax as github.com/search, e.g. |
|
|
| Code search requires auth. |
| string | Repos: | |
|
|
| |
| number |
| 1–30 |
Authentication is optional and improves rate limits. The token is taken from GITHUB_TOKEN, then GH_TOKEN, then gh auth token.
web_access_status
No parameters. Shows:
the config file and the default provider
key counts and where they came from, with masked keys and their cooldown state
remaining Tavily credits per key and for the account (from Tavily's
/usageendpoint, cached for 10 minutes)Exa spend this session (summed from Exa's
costDollars)the cooldown state file and cache stats
Full keys are never shown.
How it works
Provider modes
Mode | Behaviour | Best for |
| Exa first, Tavily on error. Exception: when Exa has no key and the query uses | Everyday use |
| Exa only. | Saving Tavily credits |
| Tavily, with Exa on error. Without a Tavily key it uses Exa directly and adds a note. | News, recent events |
| Exa and Tavily run in parallel. Results are merged with Reciprocal Rank Fusion and deduplicated by normalized URL (ignoring | Research, thin results, cross-checking |
How the both ranking works: each result scores Σ 1/(60 + rank) over the providers that returned it. Hits found by both providers therefore rank first and are tagged via exa + tavily. Single-provider hits follow, interleaved fairly by rank. If one provider fails, you still get the other's results plus a note.
Exa: REST vs keyless
With Exa keys, requests go to the REST API at
api.exa.ai. You get nativeincludeDomains,startPublishedDateandcategoryfilters, atypechoice, highlight-based compact snippets,/answer, and exact per-request cost.Without keys, requests go to Exa's hosted MCP endpoint, which works anonymously with rate limits. The REST API has no free keyless mode.
When every key is rejected or cooling down, one keyless attempt is made, unless
exa.keylessFallbackisfalse.
Reading pages
web_get_contents tries the cheapest method that works:
Direct fetch, which is free.
It refuses internal and private addresses, including on every redirect hop.
It stops downloading after 25 MB.
It decodes the page using its declared charset.
It prefers
<article>/<main>content, drops navigation, header, footer, forms and scripts, and keeps headings and lists.
Tavily Extract, used only with a Tavily key, when the direct fetch fails (blocked, timeout, HTTP error), when the URL is a PDF or other document, or when the page yields under ~300 characters (usually JS-rendered). Internal URLs are never sent to Tavily.
The full document is cached, so reading a long page with offset costs one download.
Caching
Successful results are kept in memory for cacheTtlSeconds (600 by default) and keyed by tool plus arguments, ignoring argument order and surrounding whitespace. Errors are never cached. fresh: true or livecrawl: "always" bypasses the cache. Up to 200 entries are kept, and the oldest are evicted first.
Configuration
Where keys come from
Keys are loaded from the first source that has any, separately for each provider:
Environment / plugin settings:
TAVILY_API_KEYS(orTAVILY_API_KEY) andEXA_API_KEYS(orEXA_API_KEY). Separate multiple keys with commas. The Claude Code plugin fills these from its options.Config file:
~/.openclaude/web-access.json, described below.Legacy files:
~/.openclaude/exa_keys.jsonand~/.openclaude/tavily_keys.json(paths can be changed withEXA_KEYS_FILE/TAVILY_KEYS_FILE).
web_access_status shows which source is in use.
Config file
The default path is ~/.openclaude/web-access.json. Override it with WEB_ACCESS_CONFIG=/path/to/file.json. Copy web-access.example.json to get started:
{
"provider": "auto",
"cacheTtlSeconds": 600,
"exa": {
"keylessFallback": true,
"timeoutMs": 45000,
"keys": ["your-exa-key-1", "your-exa-key-2"]
},
"tavily": {
"timeoutMs": 45000,
"keys": ["tvly-your-key-1", "tvly-your-key-2"]
},
"fetch": {
"allowPrivateNetwork": false,
"maxBytes": 26214400
}
}Setting | Default | Meaning |
|
| Default mode for |
|
| Cache lifetime. |
|
| Exa API keys. With none, Exa runs keyless. |
|
| Makes one keyless attempt when every key is rejected or cooling down. Set it to |
|
| Total time budget for one Exa request across all attempts. |
|
| Tavily API keys ( |
|
| Time budget for one Tavily search (extract: 90 s, map/crawl: 160 s). |
|
| Allows |
|
| Download cap for direct fetches (25 MB). |
"exa" and "tavily" can also be plain arrays of keys. The file is re-read automatically when it changes, so you don't need to restart.
State file
Key cooldowns are saved to web-access-state.json next to the config file (default ~/.openclaude/web-access-state.json), so they survive restarts and are shared between concurrent sessions. The file contains only short SHA-256 fingerprints of keys, never the keys themselves. It is a plain file, not tied to any MCP client. Use WEB_ACCESS_STATE_FILE=/path/to/file.json to move it, or WEB_ACCESS_STATE_FILE=off to keep cooldowns in memory only.
Environment variables
Variable | Purpose |
| Tavily keys (comma separated). |
| Exa keys (comma separated). |
| Default provider ( |
| Path to the config file. |
| Path to the cooldown state file, or |
| Paths to the legacy key files. |
| GitHub token for |
Empty values and unfilled placeholders such as ${user_config.tavily_api_keys} are ignored.
Legacy key file formats
These are still supported for existing setups:
["key-1", "key-2"] // plain array
{ "keys": ["key-1", "key-2"] } // object with keys
{ "account1": "key-1", "acc2": "key-2" } // named values (Exa: UUID keys only)Key rotation and cooldowns
Round-robin: each request starts on the next key, so usage spreads evenly across keys.
Retry on key problems: when a key is rejected, the same request moves on to the next key, and the rejected key is put on cooldown:
Status
Meaning
Cooldown
429
Rate limited
1 minute, or longer if the response's
Retry-Afterasks (max 1 h)402 / 432 / 433
Out of credits, or over the budget, plan or pay-as-you-go limit
24 hours
401
Invalid key
6 hours
403 does not bench a key. Tavily uses 403 for "URL not supported" and Exa uses it for prohibited content or disabled features. Neither is the key's fault, so the request fails instead of burning through keys.
Other failures: network errors and 5xx responses also move on to the next attempt, without a cooldown. Other errors (for example a 400 bad request) fail fast.
Deadline: all attempts share one time budget (
timeoutMs), so a request never hangs for minutes.Persistence: cooldowns are written to the state file.
Credits and cost
Action | Exa | Tavily |
| 1 search (free when keyless) | only used as a fallback |
| 1 search | 1 search |
| +1 | answer included in the search |
| none |
|
| none | only used as a fallback: 1 credit per 5 pages |
| none | 1 credit per 5 URLs (basic), 2 per 5 (advanced); failed URLs are free |
| none | 1 credit per 10 pages (2 with |
| none | map plus extract, e.g. 10 pages basic ≈ 3 credits |
Cached repeat | none | none |
Credit numbers come from Tavily's credits documentation at the time of writing, and Exa bills per request in dollars. Both can change, so check Tavily's credits page and Exa's billing page. web_access_status shows your actual Tavily usage and Exa spend.
Privacy and security
What leaves your machine:
search queries go to Exa (
api.exa.aiormcp.exa.ai) and/or Tavily (api.tavily.com)URLs you read are fetched directly from your machine, or sent to Tavily Extract when the fallback is used
GitHub queries go to
api.github.com
No telemetry: nothing is sent anywhere else. The only file written is the cooldown state file, which holds fingerprints, not keys.
Keys: plugin keys are stored by Claude Code in your OS credential store. Keys are never logged, and
web_access_statusonly shows masked keys.SSRF protection: fetched pages are untrusted and can try to steer the model into requesting internal services. By default,
web_get_contentsrefuses:localhostprivate and link-local ranges, including the cloud metadata address
169.254.169.254.local/.internalhostshostnames that resolve to any of these, checked again on every redirect
Internal URLs are never forwarded to Tavily. This reduces risk but is not a full network sandbox (DNS rebinding could still race the check).
Resource limits: direct downloads stop at 25 MB (
fetch.maxBytes).Config file:
~/.openclaude/web-access.jsonis plain text. Keep it private and never commit it. This repo's.gitignoreexcludes it, the state file and the legacy key files.Leaked key: if a key ever ends up in a chat, log or commit, rotate it in the provider's dashboard.
Troubleshooting
Symptom | Cause and fix |
| Node.js isn't on |
| Tavily is optional. Use |
You set keys but | Restart Claude Code after |
| Every key hit a rate or credit limit. Check |
| You hit the anonymous rate limit. Add an Exa key, or configure Tavily so |
| Keyless Exa requires a direct IPv4 connection. It is refused over IPv6 or proxies. Add an Exa key. |
| This is the SSRF protection. To read local or intranet docs, set |
| Slow network or provider. Retry, or raise |
| Add a Tavily key. PDFs are then extracted automatically. |
A page returns almost no text | The page is probably JS-rendered. With a Tavily key this is retried automatically. Otherwise, find another source. |
| Tavily does not support that URL. Use |
| Code search always needs auth. Run |
Results look stale | Pass |
Server logs go to stderr, so they appear in your MCP client's server log. They include the startup summary, key rotations and fallbacks.
Updating and uninstalling
/plugin marketplace update mahdyarief
/plugin update web-access@mahdyariefRestart Claude Code after updating. To remove the plugin:
/plugin uninstall web-access@mahdyarief
/plugin marketplace remove mahdyariefYour config and state files (~/.openclaude/web-access*.json) are left untouched. Delete them yourself if you no longer need them.
Project structure
.claude-plugin/
plugin.json plugin manifest + userConfig (keys, provider)
marketplace.json "mahdyarief" marketplace listing this plugin
icon.png
.github/workflows/ CI: tests on Node 18/20/22 × Linux/Windows, manifest checks
.mcp.json MCP server definition (passes plugin options as env)
skills/
web-research/ when to use which tool
setup/ /web-access:setup
server.js stdio JSON-RPC / MCP entry point
tools.js tool schemas, provider routing, answers, map/crawl, status
config.js config file + env helpers (hot reload)
exa-client.js Exa REST (keyed) + MCP (keyless) client, rotation, spend
exa-rotator.js Exa key loading + round-robin
tavily-client.js Tavily search/extract/map/crawl/usage client
tavily-rotator.js Tavily key loading + round-robin
key-health.js per-key cooldowns, persisted state file, masking
cache.js in-memory TTL cache
formatter.js shared result model, compact snippets, rank fusion
web-fetcher.js direct fetch: redirects, size cap, HTML → text, paging
url-guard.js SSRF protection (private/loopback/link-local refusal)
github-client.js GitHub search
test/ node:test suite (fully mocked)Development and releasing
git clone https://github.com/mahdyarief/web-access.git
cd web-access
npm test # fully mocked: no network, no keys
claude plugin validate . # validate the plugin manifest
claude plugin validate .claude-plugin/marketplace.jsonTo try local changes in Claude Code, add the folder as a marketplace: /plugin marketplace add ./path/to/web-access.
Releasing a new version:
Bump
versionin both.claude-plugin/plugin.jsonandpackage.json. Claude Code uses the plugin version to detect updates, and CI checks that the two match.Add an entry to
CHANGELOG.md.Run
npm testandclaude plugin validate ..Commit, push, and optionally tag with
claude plugin tag ..
Issues and pull requests are welcome at github.com/mahdyarief/web-access.
License
MIT © mahdyarief
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Web search and page reading for AI agents, including JSON APIs, RSS feeds and YouTube.
Web data for agents. Extract web pages, crawl websites, discover URLs, and search the web.
Web search and page reading for AI agents: search, fetch, scrape, map and crawl, with sources.
Web data for agents: YouTube transcripts, screenshots, Google News, WHOIS, jobs, tech stack, more.
Related MCP Servers
AlicenseAqualityDmaintenanceProvides coding agents with live web capabilities including web search, scraping to Markdown, structured extraction, crawling, screenshots, and company lookup, all with zero dependencies.85MIT- FlicenseNot gradedqualityDmaintenanceEnables AI agents to perform web searches, extract webpage content, and conduct end-to-end search-and-extract operations using multiple search providers and content extraction methods.-
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to run local multi-engine web searches, fetch pages through anti-bot fallback chains, and query site-specific sources such as GitHub, npm, PyPI, Docker Hub, and Twitter/X for structured results.3MIT
- FlicenseNot gradedqualityAmaintenanceEnables AI agents to run web searches across configured providers and crawl individual pages or entire sites into deduplicated Markdown or JSON, including options for authenticated pages and CLI/API access.-