Basic MCP Tools

Basic MCP Tools

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.

Category
Visit Server

README

Basic MCP Tools

A small, self-hosted MCP (Model Context Protocol) server that gives your LLM a few essential tools: private web search, web page fetching, current weather, and the current date/time. It ships with its own SearXNG instance via Docker Compose, so search stays local and doesn't require any API keys.

Tools

Tool Description
search Search the web through the bundled SearXNG instance. Returns titles, URLs, and snippets.
fetch_page Fetch a URL and return its cleaned, readable text (scripts, nav, footers, etc. stripped out).
get_date Get the current date (YYYY-MM-DD).
get_time Get the current local time with timezone.
get_weather Get the current weather for a town or city via Open-Meteo (no API key needed).

Quick start (Docker Compose)

Requires Docker with the Compose plugin.

git clone https://github.com/Tyguy047/Basic-MCP-Tools.git
cd Basic-MCP-Tools
docker compose up -d --build

This starts two containers:

  • searxng — the search backend. It is only reachable from inside the Compose network (not published to your host).
  • basic-mcp-tools — the MCP server, listening on port 8080 using the streamable HTTP transport.

The MCP endpoint is:

http://localhost:8080/mcp

Connect a client

Any MCP client that supports streamable HTTP will work. For example, with Claude Code:

claude mcp add --transport http basic-tools http://localhost:8080/mcp

Or in a JSON-based client config:

{
  "mcpServers": {
    "basic-tools": {
      "type": "http",
      "url": "http://localhost:8080/mcp"
    }
  }
}

Configuration

  • Timezone — get_date/get_time use the container's timezone. Set TZ in docker-compose.yml (defaults to America/New_York).
  • SearXNG — settings live in searxng/settings.yml. The one requirement for the search tool is that the json output format stays enabled. The container generates a random SEARXNG_SECRET on each start.
  • Search backend location — the MCP server finds SearXNG through the SEARXNG_IP and SEARXNG_PORT environment variables (set in docker-compose.yml).
  • Weather units — get_weather reports imperial units (°F, mph, in) by default. Set WEATHER_UNITS to metric in docker-compose.yml for °C, km/h, and mm.

Running without Docker

You can run the server directly if you point it at an existing SearXNG instance (one with the json format enabled):

pip install -r requirements.txt
export SEARXNG_IP=<searxng-host>
export SEARXNG_PORT=<searxng-port>
python main.py

The server listens on 0.0.0.0:8080. Python 3.14 is used in the Docker image; other recent versions should work too.

Project layout

main.py                 # FastMCP server; registers the tools
functions/
  searxng.py            # search — queries SearXNG's JSON API
  fetch.py              # fetch_page — httpx + BeautifulSoup text extraction
  date.py               # get_date
  time.py               # get_time
  weather.py            # get_weather — Open-Meteo geocoding + forecast
searxng/settings.yml    # SearXNG config (enables JSON output)
docker-compose.yml      # searxng + mcp-tools services
Dockerfile              # Python 3.14 slim image for the MCP server

Notes

  • The server is unauthenticated and intended for local or trusted-network use. Don't expose port 8080 to the public internet as-is.
  • Adding a new tool is two steps: write a function in functions/ (its docstring becomes the tool description) and register it in main.py with mcp.tool()(your_function).

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured