mcpField
9
9router-web-fetch

9router-web-fetch

github.com/decoluaProductivity31.6k158 installsUpdated today
Repository

About 9router-web-fetch

9router-web-fetch is a skill for retrieving webpage content through 9Router providers. It supports provider discovery, multiple output formats, character limits, and fetch-combo provider fallback.

Key features

  1. 01Discover available web-fetch models
  2. 02Extract webpage content from a URL
  3. 03Choose Markdown, text, or HTML output
  4. 04Set an output character limit
  5. 05Use fetch-combo for provider fallback

Use cases

  1. 01Retrieve pages for later processing
  2. 02Select Firecrawl for JavaScript-rendered pages
  3. 03Extract raw content from bulk-fetch providers
  4. 04Obtain page titles and discovered links

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/decolua/9router --skill 9router-web-fetch

After installing, type/9router-web-fetchin Claude Code to confirm it loaded.

Details

From the project README

9Router — Web Fetch

Requires NINEROUTER_URL (and NINEROUTER_KEY if auth enabled). See https://raw.githubusercontent.com/decolua/9router/refs/heads/master/skills/9router/SKILL.md for setup.

Discover

curl $NINEROUTER_URL/v1/models/web | jq '.data[] | select(.kind=="webFetch") | .id'
# Per-provider params
curl "$NINEROUTER_URL/v1/models/info?id=firecrawl/fetch"

IDs end in /fetch (e.g. firecrawl/fetch, jina/fetch). fetch-combo chains providers with auto-fallback.

Endpoint

POST $NINEROUTER_URL/v1/web/fetch

FieldRequiredNotes
model (or provider)yesfrom /v1/models/web (e.g. firecrawl or jina-reader)
urlyesURL to extract
formatnomarkdown (default) / text / html
max_charactersnotruncate output

Examples

Jina Reader
curl -X POST $NINEROUTER_URL/v1/web/fetch \
  -H "Authorization: Bearer $NINEROUTER_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"jina-reader","url":"https://9router.com","format":"markdown"}'
Exa
curl -X POST $NINEROUTER_URL/v1/web/fetch \
  -H "Authorization: Bearer $NINEROUTER_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"exa","url":"https://example.com","format":"markdown","max_characters":0}'
Firecrawl
curl -X POST $NINEROUTER_URL/v1/web/fetch \
  -H "Authorization: Bearer $NINEROUTER_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"firecrawl","url":"https://example.com","format":"markdown","max_characters":0}'
Tavily
curl -X POST $NINEROUTER_URL/v1/web/fetch \
  -H "Authorization: Bearer $NINEROUTER_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"tavily","url":"https://example.com","format":"markdown","max_characters":0}'
Ollama Cloud

Uses the API key from the existing ollama connection.

curl -X POST $NINEROUTER_URL/v1/web/fetch \
  -H "Authorization: Bearer $NINEROUTER_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"ollama","url":"https://example.com","format":"markdown"}'

JS:

const r = await fetch(`${process.env.NINEROUTER_URL}/v1/web/fetch`, {
  method: "POST",
  headers: { "Authorization": `Bearer ${process.env.NINEROUTER_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({ model: "fetch-combo", url: "https://example.com", format: "markdown", max_characters: 5000 }),
});
const { data } = await r.json();
console.log(data.title, data.content.length);

Response shape

{
  "provider": "jina-reader",
  "url": "...",
  "title": "...",
  "content": { "format": "markdown", "text": "...", "length": 1234 },
  "links": ["https://example.com/related"],
  "metadata": { "author": null, "published_at": null, "language": null },
  "usage": { "fetch_cost_usd": 0 },
  "metrics": { "response_time_ms": 850, "upstream_latency_ms": 700 }
}

links is included when the upstream provider returns discovered page links (currently Ollama Cloud).

Provider quirks

ProviderAuthBest for
firecrawlBearerJS-rendered pages, format=markdown/html
jina-readerBearer (optional)Free tier (~1M chars/mo); fastest plain markdown
tavilyBearerBulk extract; returns raw_content
exax-api-keyPre-indexed pages; fast text extraction
ollamaBearerMarkdown plus page title and discovered links; uses the Ollama Cloud key

Comments

Markdown supported