web-basics-mcp
A self-hosted MCP server providing web search and URL fetching tools, running locally without external API keys or accounts.
README
web-basics-mcp
A tiny MCP server that gives agents basic web tools without API keys.
It can search the web through SearXNG, fetch readable page content, and pull Reddit threads from RSS.
Tools
web_search- Search the web with SearXNG.fetch_url- Fetch a page and turn it into readable markdown.reddit_search- Find Reddit posts.reddit_fetch- Fetch a Reddit post and its comments.
Requirements
- Node.js 20 or newer
- npm
- Docker, only if you want to run the optional local SearXNG backend
Setup
git clone https://github.com/yoloyash/web-basics-mcp.git
cd web-basics-mcp
npm install
npm run build
Optional: copy the example environment file if you want to change the search backend.
cp .env.example .env
By default, the server uses http://127.0.0.1:8088 for SearXNG. You can set SEARXNG_URL in your shell, your MCP client config, or a local .env file.
Search Backend
To start the bundled local SearXNG service:
docker compose up -d
That exposes SearXNG at http://127.0.0.1:8088. Stop it with:
docker compose down
You can also point SEARXNG_URL at any existing SearXNG instance that has JSON output enabled.
Install In MCP Clients
Replace ~/web-basics-mcp with the path where you cloned this repo.
<details> <summary><strong>Claude Code</strong></summary>
claude mcp add web-basics -- node ~/web-basics-mcp/build/index.js
</details>
<details> <summary><strong>Codex</strong></summary>
codex mcp add web-basics -- node ~/web-basics-mcp/build/index.js
</details>
<details> <summary><strong>OpenCode</strong></summary>
Add this to your opencode.json, usually at ~/.config/opencode/opencode.json:
{
"mcp": {
"web-basics": {
"type": "local",
"command": ["node", "~/web-basics-mcp/build/index.js"],
"enabled": true
}
}
}
</details>
Development
npm run build
npm test
Behavior
- The server runs as a local MCP server over stdio.
- Search uses the SearXNG instance configured by
SEARXNG_URL. fetch_urlonly supports public HTTP(S) pages and blocks private/local addresses.- Reddit support uses Reddit's RSS feed, so it may return fewer comments than the full website.
- Returned webpage and Reddit content is capped to keep MCP responses manageable.
- Search quality depends on the engines enabled in your SearXNG configuration.
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.
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.
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.
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.