MCP Server with web search and filesystem tools

MCP Server with web search and filesystem tools

mcp-server-avinash539•byavinash539

A Model Context Protocol server that exposes web search via SearXNG and secure filesystem operations to AI agents and LLMs.

License: MIT License•Runtime: Awaiting documentation review•Category: search web

WHAT IT DOES

  • •Performs web searches through SearXNG with options for result count, language, time range and category.
  • •Reads, writes and lists files with secure access controls, supporting encodings, binary mode and append.
  • •Supports MCP resources and prompts in addition to tools.

BEST FOR

  • •Giving an LLM assistant web search capability via a self-hosted SearXNG instance.
  • •Enabling agents to read, write and list files under controlled access.

ABOUT MCP-SERVER-AVINASH539

MCP Server with web search and filesystem tools is cataloged as an MCP server attributed to avinash539. A Model Context Protocol server that exposes web search via SearXNG and secure filesystem operations to AI agents and LLMs. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP Server with web search and filesystem tools are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does the server require a separate SearXNG instance?

Yes, the README states you need to run a SearXNG instance separately and configure its URL.

Can custom tools be added to the server?

Yes, custom tools can be added using FastMCP decorators or the original architecture.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 176cdd15d12a · 采集于 2026-11-13 13:19:25 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

MCP Server

A Model Context Protocol (MCP) server implementation that provides various tools for AI agents and LLMs, including search capabilities powered by SearXNG and file system operations.

Features

  • Web Search: Perform web searches with customizable parameters using SearXNG
  • File System Operations: Read, write, and manage files with security controls
  • Extensible Architecture: Add custom tools following the MCP protocol
  • Docker Support: Easy deployment with Docker and docker-compose
  • Command-line Interface: Simple management through CLI
  • Resources and Prompts: Full MCP specification support for resources and prompts

Requirements

  • Python 3.13 (required)
  • MCP SDK ≥ 1.6.0
  • UV package manager for dependency management
  • Docker (optional, for containerized deployment)

Implementation Approaches

This project demonstrates two approaches to implementing MCP servers:

The simplified approach using FastMCP decorators in mcp_server/server.py:

from mcp.server.fastmcp import FastMCP

# Create server
mcp = FastMCP("MCP Server")

# Add a tool using decorator
@mcp.tool()
def search(query: str, num_results: int = 5) -> dict:
    """Search the web"""
    # Implementation...
    return results

# Add a resource
@mcp.resource("greeting://{name}")
def get_greeting(name: str) -> str:
    """Get a greeting"""
    return f"Hello, {name}!"

# Add a prompt
@mcp.prompt()
def search_prompt(query: str) -> str:
    """Create a search prompt"""
    return f"Please search for: {query}"

2. Original Architecture (Advanced)

The original architecture in mcp_server/core/ provides a more complex implementation with:

  • ToolRegistry for managing tool registration
  • MCPTool abstract base class for tool implementation
  • Singleton MCPServer for server management

This approach offers more flexibility for complex applications but requires more boilerplate code.

Tools

Execute web searches through SearXNG with customizable filtering.

Inputs:

  • query (string): Search terms
  • num_results (number, optional): Number of results to return (default: 5, max: 20)
  • language (string, optional): Language code for results (e.g., "en", "fr")
  • time_range (string, optional): Time range for results (day, week, month, year)
  • search_category (string, optional): Category to search in (general, images, news, videos)

filesystem

Read, write, and manage files with secure access controls.

Operations:

  • Read File

    • path (string): Path to the file to read
    • encoding (string, optional): Encoding to use (default: "utf-8")
    • binary (boolean, optional): Whether to read in binary mode (default: false)
  • Write File

    • path (string): Path to write the file
    • content (string): Content to write
    • encoding (string, optional): Encoding to use (default: "utf-8")
    • binary (boolean, optional): Whether to write in binary mode (default: false)
    • append (boolean, optional): Whether to append to file (default: false)
  • List Files

    • path (string, optional): Directory to list (default: current directory)
    • recursive (boolean, optional): Whether to list recursively (default: false)
    • pattern (string, optional): Pattern to match filenames

Configuration

Environment Variables

Configure your MCP server using environment variables:

# Server settings
MCP_SERVER__HOST=0.0.0.0
MCP_SERVER__PORT=8000

# SearXNG settings
MCP_SEARXNG__INSTANCE_URL=http://localhost:8080
MCP_SEARXNG__TIMEOUT=5

# Logging settings
MCP_LOG__LEVEL=INFO

# Data directory
MCP_DATA_DIR=./data

Usage with Claude Desktop

Option 1: Install Simple Example Server

# Install the simple example server directly
mcp install examples/server.py

# Or test with the MCP Inspector
mcp dev examples/server.py

Option 2: Docker Configuration

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "mcp-server": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-p",
        "8000:8000",
        "-e",
        "MCP_SEARXNG__INSTANCE_URL=http://host.docker.internal:8080",
        "mcp-server"
      ]
    }
  }
}

You'll need to run a SearXNG instance separately:

{
  "mcpServers": {
    "searxng": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-p",
        "8080:8080",
        "-e", 
        "BASE_URL=http://localhost:8080/",
        "searxng/searxng"
      ]
    }
  }
}

Installation

# Build the Docker image
docker build -t mcp-server .

# Run the server and SearXNG
docker-compose up

Direct Installation

# Ensure you have Python 3.13 installed
python --version  # Should show Python 3.13.x

# Install uv if you don't have it
pip install uv

# Create a virtual environment and install dependencies
uv venv --python=python3.13
uv install

# Run the server
python -m mcp_server start

Client Examples

See the examples/ directory for client examples:

  • examples/client.py: Modern client using ClientSession API
  • examples/simple_client.py: Simple client using direct API calls

Extending with Custom Tools

Using the FastMCP Approach

from mcp_server.server import mcp

@mcp.tool()
def my_custom_tool(param1: str, param2: int = 10) -> dict:
    """My custom tool description"""
    # Implement tool functionality
    return {"result": f"Processed {param1} with {param2}"}

Using the Original Architecture

See the Developer Guide for instructions on adding custom tools with the original architecture.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

Command to run the project

python -m mcp_server start --config config.env

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP Server with web search and filesystem tools from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-server-avinash539)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related search web MCP Servers

Alternative and complementary servers in the same category

View all in search web →

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Repository stats unavailable
Search & Web Research

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.

94
Search & Web Research