npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@fussymonkey-dev/searxng-mcp-server

v1.0.0

Published

Privacy-focused web search MCP server using SearXNG metasearch engine

Readme

SearXNG MCP Server

Privacy-focused web search for Model Context Protocol using SearXNG metasearch engine.

By FussyMonkey.dev

Features

  • 🔒 Privacy-focused - No tracking, self-hosted search
  • 🌐 Meta-search - Aggregates 70+ search engines
  • 🚀 Fast & lightweight - Minimal dependencies
  • 🎯 Flexible filtering - Categories, languages, time ranges
  • 🔑 No API keys - Works with your own SearXNG instance
  • MCP native - Built for Model Context Protocol

Quick Start

1. Install SearXNG

Using Docker (recommended):

docker run -d -p 8888:8080 searxng/searxng

Or see SearXNG installation docs for other methods.

2. Install the MCP Server

npm install -g @fussymonkey-dev/searxng-mcp-server

3. Configure Your MCP Client

Add to your MCP settings (e.g., Claude Desktop, Cline, etc.):

{
  "mcpServers": {
    "searxng": {
      "command": "searxng-mcp-server",
      "env": {
        "SEARXNG_URL": "http://localhost:8888"
      }
    }
  }
}

Configuration

Environment variables:

| Variable | Description | Default | |----------|-------------|---------| | SEARXNG_URL | SearXNG instance URL | http://localhost:8888 | | SEARXNG_MAX_RESULTS | Max results per search (1-50) | 10 | | SEARXNG_TIMEOUT | Request timeout (ms) | 30000 | | SEARXNG_CATEGORIES | Default categories (comma-separated) | general | | SEARXNG_SAFESEARCH | Safe search level (0-2) | 0 |

Usage

The server provides one tool:

search_web

Search the web using SearXNG.

Parameters:

  • query (required) - Search query
  • max_results (optional) - Number of results (1-50)
  • categories (optional) - Array of categories: general, news, images, videos, files, music, science, social_media
  • language (optional) - Language code (e.g., en, es, fr)
  • time_range (optional) - Filter by time: day, week, month, year

Example:

Search for "machine learning tutorials" with news from the past week

Docker Compose Setup

See examples/docker-compose.yml for a complete setup with SearXNG and the MCP server.

Development

# Clone the repo
git clone https://github.com/fussymonkey-dev/searxng-mcp-server
cd searxng-mcp-server

# Install dependencies
npm install

# Set up environment
cp .env.example .env

# Run locally
npm start

# Run tests
npm test

Troubleshooting

Connection errors?

  • Verify SearXNG is running: curl http://localhost:8888
  • Check SEARXNG_URL environment variable
  • Run health check: npm run health-check

Timeout errors?

  • Increase SEARXNG_TIMEOUT
  • Check SearXNG instance performance
  • Reduce max_results

Empty results?

  • Try different search categories
  • Check SearXNG engine configuration
  • Verify engines are enabled in SearXNG settings

Contributing

Contributions welcome! Please:

  1. Fork the repo
  2. Create a feature branch
  3. Keep code clean, DRY, and KISS
  4. Submit a PR

License

MIT - See LICENSE

Credits

Created by FussyMonkey.dev

Built with:


Questions or issues? Open an issue on GitHub