Skip to main content
Glama
yoloyash

web-basics-mcp

by yoloyash

web-basics-mcp

Small, dependable web tools for agents. No API keys and no bundled infrastructure.

Tools

Tool

What it does

web_search

Searches one query through an existing SearXNG instance

fetch_url

Fetches one page, text document, PDF, image, or Reddit post

fetch_url returns clean Markdown for HTML pages and Reddit posts, selectable text for PDFs, direct content for text/Markdown/JSON/XML responses, and native MCP image content for PNG, JPEG, WebP, and GIF images.

Long text is read in bounded chunks. Call the same URL again with the returned next_start_index:

{
  "url": "https://example.com/long-page",
  "start_index": 8000,
  "max_length": 8000
}

Successful fetches are cached in memory for five minutes so offset reads normally use the same extracted document. Search results are cached for two minutes to avoid repeating identical SearXNG work during an agent run. Both caches are bounded, coalesce concurrent duplicate requests, and may be discarded at any time; tool correctness never depends on them.

Related MCP server: Basic MCP Tools

Requirements

  • Node.js 20.18.1 or newer

  • An existing SearXNG instance with JSON responses enabled

Set its base URL in the environment or in this package's .env file:

SEARXNG_URL=http://127.0.0.1:8088

The server starts even when SearXNG is unavailable so fetch_url remains usable. Calls to web_search return a clear connection error until SearXNG is reachable.

Install

git clone https://github.com/yoloyash/web-basics-mcp.git
cd web-basics-mcp
npm install
npm run build

Configure an MCP client to run build/index.js over stdio. For example:

codex mcp add web-basics -- node /absolute/path/to/web-basics-mcp/build/index.js

Tool Inputs

{
  "query": "Model Context Protocol",
  "limit": 5
}

limit defaults to 5 and accepts values from 1 through 10. Results use the stable shape {link, title, snippet}.

fetch_url

{
  "url": "https://example.com",
  "start_index": 0,
  "max_length": 8000
}
  • start_index defaults to 0.

  • max_length defaults to 8000 and is capped at 20000.

  • Text responses report total_chars, returned_chars, truncated, and, when more content remains, next_start_index.

  • HTML uses Defuddle first and Mozilla Readability as a gated fallback. The response reports the selected extractor and the fallback reason when applicable.

  • Defuddle's optional network-backed extractors are disabled. Every remote request stays in this server's validated HTTP path.

  • Reddit post URLs are fetched through Reddit's RSS feed and include the post plus comments available in that feed. RSS may contain fewer comments than the website.

Safety And Limits

  • Only public HTTP(S) URLs are accepted.

  • URL credentials, private hostnames, private DNS results, and unsafe redirects are rejected.

  • Each redirect is validated independently.

  • Requests use timeouts, bounded retries, response-size limits, and a stable user agent.

  • Standard responses and images are capped at 5 MiB; PDFs are capped at 15 MiB.

  • Fetch caching respects Cache-Control: no-store, no-cache, and max-age=0.

This server intentionally does not provide browser automation, JavaScript rendering, crawling, authentication, cookies, proxy/VPN routing, or answer synthesis.

Development

npm test
npm pack --dry-run

Tests use saved fixtures and local stubs rather than repeatedly querying public services.

Install Server
A
license - permissive license
B
quality
A
maintenance

Maintenance

Maintainers
Response time
1dRelease cycle
2Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    A
    quality
    C
    maintenance
    MCP server that provides a search_web tool to query a self-hosted SearXNG instance and return structured web search results.
    1
  • F
    license
    Not graded
    quality
    B
    maintenance
    A self-hosted MCP server providing private web search, web page fetching, and current date/time tools, powered by a bundled SearXNG instance for API-key-free local search.
    2

View all related MCP servers

Related MCP Connectors

  • Free remote MCP server for fetching public web pages through a rotating proxy pool.

  • Serper MCP — wraps the Serper Google Search API (serper.dev)

  • MCP server for Google search results via SERP API

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yoloyash/web-basics-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server