Dsh Balanced Search logo

Dsh Balanced Search

Round-robins six web search and fetch APIs with failover, normalized results, and MCP or DeepSeek Harness interfaces.

Install Dsh Balanced Search

Run the project’s own setup commands, in order.

Setup steps from the project

dsh-balanced-search installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Run
    dsh plugin --profile web add github:tianmingwan/dsh-balanced-search
    
  2. 2. Configure
    python -m venv .venv
    
  3. 3. Install
    .venv\Scripts\python.exe -m pip install -r requirements.txt
    
  4. 4. Install
    .venv/bin/python -m pip install -r requirements.txt
    
  5. 5. Start the server
    python server.py
    
  6. 6. Start the server
    .venv\Scripts\python.exe server.py   # Windows
    

Overview

The dsh-balanced-search MCP server distributes web searches and URL fetching across Keenable, Exa, Tavily, Firecrawl, AnySearch, and TinyFish. It rotates between configured providers, skips providers without API keys, and fails over when a provider errors. Use the native DeepSeek Harness plugin for automatic web tool takeover, or run the generic Python MCP server over stdio for other MCP clients. Search supports result-count and time-range controls, while fetch supports output limits and optional live retrieval where the provider supports it.

Use cases

  • Search the web across multiple providers with automatic failover
  • Fetch web pages as clean Markdown text
  • Route DeepSeek Harness web tools through balanced providers
  • Connect an MCP client to search and fetch tools over stdio

Key features

  • Round-robin selection across six search and fetch providers
  • Automatic failover after provider errors
  • Normalized titles, links, and content summaries
  • Optional time-range filtering and live retrieval
  • DeepSeek Harness web tool takeover
  • Generic Python MCP server over stdio

Tools9

What Dsh Balanced Search lets your agent do. Expand a tool for its parameters.

Self-reported~328 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

11/11 checks healthy over the last 39d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars5Stargazers on the source repository.
Last commit1mo agoMost recent push to the default branch.
Tools exposed9Callable tools this server registers over MCP.

How Dsh Balanced Search works

What dsh-balanced-search does

The dsh-balanced-search MCP server provides web search and page retrieval through six vendor APIs: Keenable, Exa, Tavily, Firecrawl, AnySearch, and TinyFish. It belongs in the Search & Data Extraction category and returns normalized search results with titles, links, and content summaries. URL retrieval produces clean Markdown text.

Two deployment forms are available. The DeepSeek Harness plugin registers balanced_search and balanced_fetch, and also assigns its provider to dsh's built-in web_search and web_fetch. The generic implementation exposes search and fetch through a Python MCP server using stdio, allowing MCP clients to launch it as a subprocess.

How it works

The dsh-balanced-search MCP server uses round-robin selection among configured providers. A provider without its environment variable is left out, and a failed request moves to the next available provider. At least one provider key must be configured for the balanced provider to be available.

Search accepts a query, a result limit from 1 to 20, and an optional day, week, month, or year time range. The time filter is translated differently for each backend; AnySearch does not support recency filtering and is skipped for time-filtered searches. Fetch accepts a URL, a character limit, and a live option. The default output limit is 30,000 characters and the maximum is 50,000. Live retrieval bypasses indexes or caches only for providers that implement an equivalent control.

Setup and configuration

For DeepSeek Harness, install Node.js 20 or later and run:

sh
dsh plugin --profile web add github:tianmingwan/dsh-balanced-search

Restarting dsh --profile web adds the balanced tools and routes the built-in web tools through the balanced provider. This form does not require Python dependencies. A user-level dsh patch can later override or remove that routing while retaining the additional balanced tools.

For generic MCP use, create a Python virtual environment, install requirements.txt, and start server.py. The Python server reads process environment variables and also loads a .env file from its own directory. Configure one or more of KEENABLE_API_KEY, EXA_API_KEY, TAVILY_API_KEY, FIRECRAWL_API_KEY, ANYSEARCH_API_KEY, and TINYFISH_API_KEY.

Tools and capabilities

The dsh-balanced-search MCP server exposes these MCP-facing tools:

  • balanced_search and search: query the web with result-count and time-range options.
  • balanced_fetch and fetch: retrieve a URL with an optional character cap and live-fetch setting.
  • web_fetch: the dsh takeover form, accepting only a URL; timeout and output limits are deployment policy.

All six backends use REST APIs. Fetching occurs through vendor services rather than the local machine's HTTP provider, which can make vendor-side retrieval available in environments where that local provider cannot operate.

Limitations and notes

Provider features are not identical. AnySearch has a hard limit of 10 results and no recency parameter. AnySearch and TinyFish do not accept a length parameter, so the client applies the character cap after retrieval. Tavily and AnySearch extraction do not expose an equivalent to the live control; the setting is honored only where the selected provider supports it.

The built-in dsh takeover fails when no provider key is configured. Vendor quotas, pricing, and rate limits vary and can change, so they should be checked in the providers' current documentation. The generic server is documented for stdio operation; the repository does not describe an HTTP transport mode.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Dsh Balanced Search

dsh-balanced-search is an MCP server that connects AI clients to Keenable, Exa, Tavily, Firecrawl, AnySearch, and TinyFish for web search and URL fetching. Its main tools are `search` and `fetch` in generic MCP mode, plus `balanced_search` and `balanced_fetch` in DeepSeek Harness, with round-robin selection and failover.

Install it either as a DeepSeek Harness plugin with `dsh plugin --profile web add github:tianmingwan/dsh-balanced-search`, or run the generic Python server after installing `requirements.txt` in a virtual environment. The generic server starts with `python server.py` and uses stdio.

It supports `KEENABLE_API_KEY`, `EXA_API_KEY`, `TAVILY_API_KEY`, `FIRECRAWL_API_KEY`, `ANYSEARCH_API_KEY`, and `TINYFISH_API_KEY`. Configure at least one key; providers without keys are skipped, and all six can be configured for broader rotation and failover.

Yes. The generic server runs over stdio and can be configured as an MCP server in Cursor. The repository provides a command and environment-variable configuration pattern, but does not specify a Cursor-specific setup file beyond the standard MCP client configuration.

Search accepts 1 to 20 results, with 8 as the default. Fetch returns up to 50,000 characters, with a default of 30,000. Time ranges are `day`, `week`, `month`, or `year`; AnySearch does not support them, and its result count is capped at 10.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewDsh Balanced Search AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/dsh-balanced-search?style=directory)](https://allmcps.com/mcp/dsh-balanced-search)
HTML Embed
<a href="https://allmcps.com/mcp/dsh-balanced-search"><img src="https://allmcps.com/api/badge/dsh-balanced-search?style=directory" alt="Dsh Balanced Search on AllMCPs" /></a>