dstools
Enables web search using DuckDuckGo, returning ranked results with titles, URLs, and snippets.
Enables image analysis using local vision models served via Ollama.
Enables image analysis using OpenAI's multimodal models (e.g., GPT-4o) to convert images into structured text.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@dstools research quantum computing breakthroughs"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
dstools — DeepSeek-V4 MCP Toolkit
Give DeepSeek-V4 models eyes and a research desk.
An MCP (Model Context Protocol) server that augments DeepSeek's text models with two capabilities they don't have natively:
Image content understanding — DeepSeek-V4 is a text-only model.
dstoolsadds a vision tool that turns any image into rich, structured text the V4 model can reason over (leveraging its 1M-token context and world-class reasoning).Deep Research — a multi-step, citation-backed research pipeline that uses V4 as the planning + synthesis brain over live web search and page extraction.
dstools is a productizable, installable Python package. It speaks MCP over stdio and
Streamable HTTP, so any MCP-capable host (Claude Code, Claude Desktop, Cherry Studio, a
custom agent, …) can connect a DeepSeek-V4 backend to it and immediately call these tools.
Why this exists
DeepSeek-V4 (deepseek-v4-flash / deepseek-v4-pro, released 2026-04-24) is an outstanding
text model with 1M context, strong agentic/tool-calling ability, and an automatic context
cache — but the official chat API is text-only (no multimodal vision). dstools closes
exactly that gap:
DeepSeek-V4 strength | What's missing | What |
1M context, top reasoning | Can't see images |
|
Agentic, tool-calling | No live web access |
|
Automatic prompt caching | — | Stable-prefix prompts to maximise cache hits |
Thinking mode ( | — | Used selectively for hard synthesis steps |
The toolkit is deeply adapted to V4: it defaults to deepseek-v4-pro for synthesis and
deepseek-v4-flash for cheap sub-steps, toggles V4's native thinking mode per call, structures
prompts for cache hits, and uses V4's JSON-output mode for structured extraction.
Related MCP server: vision-bridge-mcp
Tools exposed
Tool | Description | Needs a key? |
| Describe/understand an image (path, URL, or base64). Returns structured text. | Vision provider key (or local model) |
| Extract text from an image (OCR). | Optional |
| Run a web search, return ranked results (title, url, snippet). | No (DuckDuckGo, keyless) |
| Fetch a URL and return clean, readable Markdown. | No |
| Full pipeline: plan → search → fetch → select → synthesize, with citations. | DeepSeek API key |
Granular tools (web_search, fetch_page, analyze_image) let the host agent run its own
agentic loop; deep_research is a one-shot orchestrator for when you just want a cited report.
Quick start
# 1. Install (Python 3.10+)
uv sync # or: pip install -e .
# 2. Configure
cp .env.example .env # then edit: set DEEPSEEK_API_KEY and a vision provider
# 3. Run the MCP server (stdio — for local hosts like Claude Code/Desktop)
uv run dstools serve
# …or over Streamable HTTP (for remote hosts)
uv run dstools serve --transport http --port 8000Connect from Claude Code:
claude mcp add --transport stdio dstools -- uv run --directory /path/to/dstools dstools serveA ready-made examples/claude_desktop_config.json is included for Claude Desktop.
Docker
Run the server over Streamable HTTP in a container:
docker build -t dstools .
docker run --rm -p 8000:8000 \
-e DEEPSEEK_API_KEY=sk-... \
-e VISION_BASE_URL=... -e VISION_API_KEY=... -e VISION_MODEL=... \
dstools
# → http://localhost:8000/mcpConfiguration
All settings are environment variables (.env supported). Sensible defaults mean the
keyless parts (search + fetch) work out of the box.
Variable | Default | Purpose |
| — | DeepSeek API key (required for |
|
| OpenAI-compatible endpoint |
|
| Synthesis / heavy model |
|
| Cheap sub-step model |
|
|
|
|
|
|
| — | OpenAI-compatible vision endpoint (any multimodal model) |
| — | Key for the vision endpoint |
| — | e.g. |
|
|
|
| — | Required if |
| — | Required if |
|
| Retries with backoff when keyless DDG rate-limits |
|
| Sub-queries generated per round |
|
| Research rounds (rounds >1 trigger query refinement) |
|
| Pages fetched, reranked & synthesised |
|
| Per-step model override (empty = flash for light steps, pro for synth) |
|
| Logging verbosity |
deep_research pipeline (v0.2)
deep_research is a smart, multi-round pipeline (DeepSeek-V4 as the brain):
Plan (V4-flash, JSON) →
breadthsearch queries.Round loop (
depthrounds): search → fetch → refine — V4-flash reads findings-so-far and generates next-round queries for uncovered facets.Rerank — V4-flash extracts the passages most relevant to the question from each page (always-on; quality over raw stuffing).
Synthesize (V4-pro + thinking) → cited markdown report.
Per-step models are tunable; set all RESEARCH_*_MODEL to deepseek-v4-flash
for the cheapest runs. dstools doctor prints a per-research cost estimate.
Vision providers (for analyze_image)
Since DeepSeek-V4 can't see images, point VISION_* at any OpenAI-compatible multimodal model:
OpenAI:
VISION_BASE_URL=https://api.openai.com/v1,VISION_MODEL=gpt-4o/gpt-4o-miniAlibaba Qwen-VL (DashScope, OpenAI-compat):
VISION_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1,VISION_MODEL=qwen-vl-maxZhipu GLM-4V:
VISION_BASE_URL=https://open.bigmodel.cn/api/paas/v4,VISION_MODEL=glm-4vLocal (Ollama):
VISION_BASE_URL=http://localhost:11434/v1,VISION_MODEL=qwen2.5-vl(no key needed)
Without a vision provider, analyze_image degrades to image metadata + OCR (if pytesseract
is installed) and returns a clear note — it never crashes.
Development
uv sync --extra dev
make lint # ruff
make typecheck # mypy
make test # pytest
make serve # run the server (stdio)Project layout
src/dstools/
server.py # FastMCP server + tool registration
cli.py # `dstools` CLI (serve / inspect / doctor)
config.py # pydantic-settings config
llm/ # DeepSeek (OpenAI-compat) + vision clients, V4 thinking-aware
search/ # pluggable search providers (DuckDuckGo default, Tavily optional)
web/ # async page fetcher + HTML→Markdown extraction
tools/ # image / search / fetch / research tools
utils/ # image I/O & encoding, text chunking
tests/ # pytest suite (network & LLM mocked)
examples/ # claude_desktop_config.json, mcp client demoLicense
MIT.
Available Tools
5 toolsanalyze_imageA
Understand an image and return a detailed text description.
Use this when you need to "see" an image — DeepSeek-V4 cannot read images
directly. Accepts an image as a local file path, an HTTP(S) URL, a data URI,
or a base64 string. Optionally pass question to focus the analysis
(e.g. "What error is shown in this screenshot?", "Read the chart values.").
Returns structured text you can reason over. Requires a configured vision
provider (VISION_*); degrades to metadata + OCR without one.
Inputs: image (required), question. Returns: result
deep_researchA
Run a multi-step deep-research investigation and return a cited report.
Pipeline: decompose query into search queries -> search the web -> fetch &
read pages -> (between rounds) refine queries from findings -> extract the
most relevant passages -> synthesise a structured markdown report with inline
[n] citations and a numbered source list. Uses DeepSeek-V4 (flash for
plan/refine/rerank, pro for synthesis).
Tunables (0 = use defaults from config): breadth sub-queries per round
(default 3), depth rounds (default 2), max_sources pages read
(default 8). Higher = more thorough but slower/costlier.
Requires DEEPSEEK_API_KEY; search/fetch are keyless (DuckDuckGo).
Inputs: query (required), depth, breadth, max_sources. Returns: result
fetch_pageA
Fetch a web page and return clean, readable Markdown.
Use this to read the full content of a URL (e.g. a search result). Strips
navigation/ads and extracts the main article text. Output is capped to
max_chars characters. Works without any API key.
Inputs: url (required), max_chars. Returns: result
ocr_imageA
Extract readable text from an image (OCR).
Accepts a file path, URL, data URI, or base64 string. Uses local Tesseract
when installed; otherwise falls back to the configured vision provider.
lang is a Tesseract language code (e.g. 'eng', 'chi_sim', 'eng+chi_sim').
Inputs: image (required), lang. Returns: result
web_searchA
Search the web and return ranked results (title, URL, snippet).
Use this for live, up-to-date information. Returns up to max_results
hits as a numbered markdown list. Follow up with fetch_page to read any
result in full. Works without any API key (DuckDuckGo).
Inputs: query (required), max_results. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose: analyzing images, deep research, fetching web pages, OCR, and web search. Even the two image-related tools (analyze_image and ocr_image) are differentiated by their function (understanding vs. text extraction).
All tool names follow a consistent verb_noun pattern using underscores (e.g., analyze_image, deep_research, fetch_page, ocr_image, web_search). No mixing of conventions.
With 5 tools, the server is well-scoped for its purpose as a utility toolkit covering image analysis, OCR, web search, web fetching, and deep research. The count is neither too thin nor excessive.
The tool set covers core image and web tasks comprehensively, though it might benefit from a summarization or comparison tool. No major gaps for its stated domain.
Maintenance
Related MCP Connectors
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Official Exa MCP for web search, content fetching, and multi-step research.
AI, Synapse Work Royalties, Agent KV Memory, Deep Research, LLM, Vision, OCR & PDF MCP.
214 tools for AI agents over one MCP endpoint: image, video, audio, 3D, data, storage, mail, GPUs.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables real-time web search via DeepSeek's search-enhanced dialogue, providing search results as answers through MCP tools.1MIT
- AlicenseAqualityDmaintenanceBridges a vision model to enable text-only models like DeepSeek to describe images, extract text, and compare images via MCP tools.541 npm9MIT
- AlicenseAqualityBmaintenanceBridges DeepSeek (text-only) with vision models via MCP, enabling image description and compression using any OpenAI-compatible visual API.321 npm1MIT
- FlicenseNot gradedqualityBmaintenanceAutomates image analysis and coordinate-level visual reasoning through DeepSeek's web interface, with multi-round voting, image comparison, and follow-up Q&A via MCP tools.6-