DeepSeek Tool APIs MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DEEPSEEK_API_KEY | Yes | DeepSeek API Key. Required; only read from the environment. | |
| DEEPSEEK_API_BASE | No | DeepSeek API base URL. | https://api.deepseek.com |
| DEEPSEEK_AUDIO_DIR | No | Default output directory for TTS audio. | ~/.deepseek-tool-apis-mcp/tts |
| DEEPSEEK_ALLOWED_DIRS | No | Whitelist directories for OCR/ASR reads and TTS writes; separator is the same as PATH. Empty means unrestricted. | |
| DEEPSEEK_ENABLED_TOOLS | No | Comma-separated short tool names to enable: search, fetch, ocr, tts, asr. Empty enables all tools; unknown names cause startup failure. | |
| DEEPSEEK_MAX_OUTPUT_CHARS | No | Maximum output budget per tool call in characters. | 24000 |
| DEEPSEEK_CACHE_MAX_ENTRIES | No | Maximum number of entries for each of the two caches. | 200 |
| DEEPSEEK_FETCH_CACHE_TTL_MS | No | Fetch cache TTL in milliseconds. Set to 0 to disable caching. | 3600000 |
| DEEPSEEK_SEARCH_CACHE_TTL_MS | No | Search cache TTL in milliseconds. Set to 0 to disable caching. | 300000 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
DeepSeek 官方独立工具接口(不调用模型):deepseek_search 多查询并行去重、deepseek_fetch 读网页正文、deepseek_ocr 识别本地文档、deepseek_tts 合成语音、deepseek_asr 转写音频。Search/Fetch 按成功请求计费,无结果不计费。
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| deepseek_searchA | 用 DeepSeek 官方独立搜索接口检索网页,返回标题、URL、相关性分数、权威度、发布日期与摘要。支持一次提交多个查询并行执行,跨查询自动合并去重。不调用任何模型,按成功请求计费(5 元/1000 次,无结果不计费)。查询语法支持 site:、-site:、"精确短语"、-排除词、lang:zh,en、after:2025-01-01、before:2026-06-01。 |
| deepseek_fetchA | 用 DeepSeek 官方独立抓取接口读取 1-10 个公开 HTTP/HTTPS 页面,返回 Markdown 正文与标题。不调用任何模型,按成功请求计费(5 元/1000 次,未取到正文不计费)。支持并行。长页面可配合 offset 分次读取(每次都会重新抓取并计费)。 |
| deepseek_ttsA | 把文字合成为语音(wav 或 pcm),音频落盘并返回路径。不调用对话模型,按计费字符计费(3 元/万字符,限时 5 折 1.5 元;汉字算 2 个字符)。注意:MCP 内容块不含 audio,无法直接播放,需用播放器打开返回的路径。长文本单次调用可能阻塞数分钟,建议每段 ≤2000 字符。 |
| deepseek_asrA | 把本地音频文件转写为文字(16 位 PCM WAV 或 Ogg Opus,≤8 MiB、≤120 秒)。不调用对话模型,按音频时长计费(0.78 元/小时,限时 5 折 0.39 元)。语种自动识别,支持 21 种语言。 |
| deepseek_ocrA | 用 DeepSeek 官方 OCR 接口识别本地 PDF/Word/PowerPoint/图片中的文字,按页返回。不调用对话模型,按成功页数计费(1.5 元/1000 页)。text_recognition 丢弃文档中的图、只要文字;rich_layout_recognition 会裁出图表并保留坐标标记(如 <|ref|>标题<|/ref|><|box|>[[52,40,948,96]]<|/box|>,坐标按页宽高归一化到 0–1000)。page_range 与 max_chars 都只在客户端生效,整篇仍会识别并按页计费。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 5 tools
Each tool targets a clearly different modality: web search, page fetching, text-to-speech, speech-to-text, and OCR. The only plausible overlap is search vs. fetch, but the descriptions make the boundary explicit (result listing vs. full-page Markdown extraction).
All tools use the same deepseek_ prefix followed by a short snake_case action token (search, fetch, tts, asr, ocr). The acronyms for the audio/OCR endpoints are still consistently patterned and readable.
Five tools map cleanly onto five distinct DeepSeek API capabilities, with no filler or redundant operations. This is a well-scoped, compact surface for the stated purpose.
The set covers the core input/output modalities (search, fetch, TTS, ASR, OCR) without obvious dead ends. Minor gaps exist, such as no voice/format enumeration for TTS or pagination/count controls described for search, but agents can work around these.