Contextfetch MCP logo

Contextfetch MCP

by lachy3433

Searches the web and returns query-focused Markdown, extractive answers, research packs, crawls, and site maps through MCP.

Install Contextfetch MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "lachy3433-contextfetch-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@contextfetch/mcp"
      ],
      "env": {
        "CONTEXTFETCH_API_KEY": "YOUR_VALUE_HERE",
        "CONTEXTFETCH_API_BASE": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Automated check passed— started and listed 12 tools correctly (Today).

Overview

lachy3433/contextfetch-mcp connects MCP clients to ContextFetch for web search, public-page extraction, relevance-pruned Markdown, and cited evidence. Its tools cover targeted searches, similar-page discovery, extractive answers, multi-query research, site crawling, and URL mapping. Results are quoted or converted from fetched pages rather than generated, making it suitable for research workflows where source passages and citations matter. It runs as a Node.js stdio server and offers a keyless free tier alongside paid API usage.

Use cases

  • Search technical documentation and return relevant passages
  • Extract query-focused Markdown from public pages
  • Assemble cited evidence from several research angles
  • Crawl a documentation site and rank pages by relevance
  • Map a website before selecting pages to fetch

Key features

  • Cross-encoder-pruned search and page results
  • Quoted answers with numbered source markers
  • Concurrent multi-query research evidence packs
  • Same-site crawling with robots.txt support
  • Sitemap and link-based URL mapping
  • Keyless free tier with optional paid credits

Tools12

What Contextfetch MCP lets your agent do. Expand a tool for its parameters.

Verified live~2.6k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

What it can do

From the 12 tools this server returned when we ran it; 12 declare their own safety hints.

Can delete or modify data · 1Handles credentials · 3Makes network requests · 12Read-only tools · 11
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age15 days
Maintainers1

Observed 2026-11-02 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 5d ago via OSV.dev · @contextfetch/mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads1.1kPackage downloads in the last 30 days.
Last commit6d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed12Callable tools this server registers over MCP.

How Contextfetch MCP works

What lachy3433/contextfetch-mcp does

lachy3433/contextfetch-mcp exposes ContextFetch web retrieval features through the Model Context Protocol. It can search the web, fetch public pages as clean Markdown, identify related pages, assemble research evidence, answer factual questions with quoted passages, crawl sites, and enumerate site URLs.

Search results contain titles, URLs, and passages selected for relevance by a cross-encoder. Page extraction preserves tables and can also return only passages relevant to a supplied query. Research responses combine concurrent sub-queries into one evidence pack, deduplicate URLs, rank the collected pages, and label quoted source passages with numbered markers.

How it works

The package runs as a stdio MCP process and sends requests to the ContextFetch API. Install-time execution uses npx -y @contextfetch/mcp, so an MCP client launches the package and communicates with it over standard input and output.

Research can use caller-supplied sub-queries or derive up to five angles from the main query. The compatibility tool, contextfetch_deep_research, retains the earlier research interface and supports up to three sub-queries. Crawling stays on the starting site, follows robots.txt, and can limit depth, result count, and URL paths. Mapping discovers URLs from sitemaps and links on the starting page without fetching the pages.

All tools return Markdown text. Free-tier responses show the remaining daily search count, while API responses can include latency, cache, and token-pruning details. Connection failures, rate limits, and server errors receive bounded retries with backoff; tool errors are returned as MCP results instead of terminating the server.

Setup and configuration

Node.js 18 or newer is required. Claude Code can add the server with:

Terminal
claude mcp add contextfetch -- npx -y @contextfetch/mcp

A paid account can be configured with CONTEXTFETCH_API_KEY. Leaving the variable unset or empty uses the keyless tier, which provides 25 searches per day per network without signup. The contextfetch_get_free_key tool can claim a network free key with 2,500 searches and use it for the session; the returned key can then be stored in CONTEXTFETCH_API_KEY.

CONTEXTFETCH_API_BASE defaults to https://api.contextfetch.dev and can point to another engine when self-hosting. Cursor, Windsurf, and Claude Desktop use the same stdio configuration pattern with npx, package arguments, and an optional environment block.

Tools and capabilities

  • contextfetch_search searches the web with optional domain inclusion and exclusion filters.
  • contextfetch_extract_url converts public documentation, articles, GitHub files, and arXiv pages into Markdown.
  • contextfetch_find_similar finds related pages while excluding the input page's domain.
  • contextfetch_research and contextfetch_deep_research produce source-numbered evidence packs from multiple queries.
  • contextfetch_answer returns extractive, quoted passages with a numbered source list.
  • contextfetch_crawl retrieves same-site pages with depth and optional relevance pruning.
  • contextfetch_map lists sitemap and start-page URLs without fetching page contents.
  • contextfetch_balance reports credits, recent burn rate, and reload settings.
  • contextfetch_auto_reload manages threshold-based purchases when a saved card is available.

Search, extraction, answers, similar-page discovery, and mapping cost $1 per 1,000 operations. Crawling costs $1 per 1,000 returned pages, and research costs $1 per 1,000 sub-queries. The balance does not expire.

Limitations and notes

Retrieval tools accept public HTTP(S) URLs. The free keyless tier has a daily network limit, while the claimed free key provides 2,500 searches per network. Paid requests require available credits; depleted balances return a top-up link. Auto-reload requires an API key and saved payment card, with a maximum monthly cap of $500.

contextfetch_answer is extractive and therefore better suited to factual lookups than open-ended responses. Research and answer passages are quoted from sources, so an agent remains responsible for interpreting the evidence. The project is MIT licensed.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Contextfetch MCP

lachy3433/contextfetch-mcp is an MCP server that connects AI clients to the ContextFetch web search and extraction API. Its main tools search the web, convert public pages to Markdown, return quoted answers, assemble research evidence packs, find similar pages, crawl sites, and map URLs, with optional credit and auto-reload management.

Install it with `claude mcp add contextfetch -- npx -y @contextfetch/mcp` in Claude Code. Other stdio clients can launch `npx -y @contextfetch/mcp` with an optional `CONTEXTFETCH_API_KEY` environment variable. Node.js 18 or newer is required.

Yes, lachy3433/contextfetch-mcp works with Cursor through its stdio MCP configuration. Add a `contextfetch` entry to the global `~/.cursor/mcp.json` or project `.cursor/mcp.json`, using `npx` with `-y @contextfetch/mcp` and an optional API-key environment value.

Yes, it can use a keyless free tier that provides 25 searches per day per network without signup. You can also call `contextfetch_get_free_key` to claim a free key with 2,500 searches per network and store that key in `CONTEXTFETCH_API_KEY`.

It returns a Markdown evidence pack assembled from concurrent sub-queries. Results are deduplicated by URL, ranked against the main query, and labeled with numbered sources and quoted, query-pruned passages. The research tool supports up to five sub-queries; its legacy alias supports up to three.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewContextfetch MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/lachy3433-contextfetch-mcp?style=directory)](https://allmcps.com/mcp/lachy3433-contextfetch-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/lachy3433-contextfetch-mcp"><img src="https://allmcps.com/api/badge/lachy3433-contextfetch-mcp?style=directory" alt="Contextfetch MCP on AllMCPs" /></a>